components.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. textarea {
  2. resize: none;
  3. }
  4. @keyframes nav {
  5. from {
  6. height: 0;
  7. }
  8. to {
  9. height: calc(100vh - 90px);
  10. }
  11. }
  12. @-webkit-keyframes nav {
  13. /* Safari and Chrome */
  14. from {
  15. height: 0;
  16. }
  17. to {
  18. height: calc(100vh - 90px);
  19. }
  20. }
  21. @-moz-keyframes nav {
  22. /* Safari and Chrome */
  23. from {
  24. height: 0;
  25. }
  26. to {
  27. height: calc(100vh - 90px);
  28. }
  29. }
  30. @keyframes navc {
  31. from {
  32. height: calc(100vh - 90px);
  33. }
  34. to {
  35. height: 0;
  36. }
  37. }
  38. @-webkit-keyframes navc {
  39. /* Safari and Chrome */
  40. from {
  41. height: calc(100vh - 90px);
  42. }
  43. to {
  44. height: 0;
  45. }
  46. }
  47. @-moz-keyframes navc {
  48. /* Safari and Chrome */
  49. from {
  50. height: calc(100vh - 90px);
  51. }
  52. to {
  53. height: 0;
  54. }
  55. }
  56. .show {
  57. display: block !important;
  58. }
  59. .noshow {
  60. display: none !important;
  61. }
  62. body {
  63. height: 100vh;
  64. overflow-y: scroll;
  65. }
  66. body a {
  67. text-decoration: none;
  68. color: #777;
  69. }
  70. body a:hover {
  71. color: #2382ff;
  72. text-decoration: none;
  73. }
  74. body::-webkit-scrollbar {
  75. /*滚动条整体样式*/
  76. width: 5px;
  77. /*高宽分别对应横竖滚动条的尺寸*/
  78. height: 10px;
  79. }
  80. body::-webkit-scrollbar-thumb {
  81. /*滚动条里面小方块*/
  82. border-radius: 10px;
  83. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  84. background: #999;
  85. }
  86. body::-webkit-scrollbar-thumb:hover {
  87. background: #2382ff;
  88. }
  89. body::-webkit-scrollbar-track {
  90. /*滚动条里面轨道*/
  91. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  92. border-radius: 10px;
  93. background: #eee;
  94. }
  95. .header {
  96. width: 100%;
  97. border-bottom: 1px solid #f1f1f1;
  98. background-color: #fff;
  99. position: fixed;
  100. z-index: 1;
  101. }
  102. .header .ha-item {
  103. margin-top: 10px;
  104. height: 70px;
  105. }
  106. .header .ha-item .img {
  107. height: 100%;
  108. }
  109. .header .ha-item .img span {
  110. font-size: 30px;
  111. font-weight: bold;
  112. color: #2382ff;
  113. display: block;
  114. line-height: 70px;
  115. }
  116. .header .ha-item .img img {
  117. height: 100%;
  118. }
  119. .header .ha-item .button {
  120. display: none;
  121. }
  122. @media screen and (max-width: 768px) {
  123. .header .ha-item .button {
  124. display: block;
  125. }
  126. }
  127. .header .ha-item .button .button {
  128. color: #2382ff;
  129. padding: 10px;
  130. border: 2px solid #2382ff;
  131. margin-top: 13px;
  132. text-align: center;
  133. font-size: 20px;
  134. border-radius: 5px;
  135. }
  136. .header .ha-item .app {
  137. height: 100%;
  138. text-align: center;
  139. }
  140. @media screen and (max-width: 768px) {
  141. .header .ha-item .app {
  142. display: none;
  143. }
  144. }
  145. .header .ha-item .app a {
  146. text-decoration: none;
  147. color: #2382ff;
  148. }
  149. .header .ha-item .app a img {
  150. width: 50px;
  151. }
  152. .header .hb-item .nav {
  153. display: flex;
  154. justify-content: flex-start;
  155. align-content: center;
  156. }
  157. @media screen and (max-width: 768px) {
  158. .header .hb-item .nav {
  159. display: none;
  160. }
  161. }
  162. .header .hb-item .nav > .nav-item > a.active {
  163. color: #2382ff;
  164. }
  165. .header .hb-item .nav .nav-item {
  166. padding: 0 20px;
  167. }
  168. .header .hb-item .nav .nav-item a {
  169. color: #777;
  170. font-weight: bold;
  171. text-decoration: none;
  172. line-height: 40px;
  173. display: table-cell;
  174. vertical-align: bottom;
  175. font-size: 18px;
  176. }
  177. .header .hb-item .nav .nav-item a i {
  178. margin-left: 5px;
  179. font-size: 12px;
  180. color: #e6e6e6;
  181. }
  182. .header .hb-item .nav .nav-item a:hover {
  183. color: #2382ff;
  184. }
  185. .header .hb-item .nav .nav-item .nav-ul {
  186. display: none;
  187. overflow: hidden;
  188. padding: 0;
  189. position: absolute;
  190. z-index: 1;
  191. background-color: #fff;
  192. overflow: auto !important;
  193. }
  194. .header .hb-item .nav .nav-item .nav-ul .nav-li {
  195. width: 100px;
  196. padding: 10px;
  197. list-style: none;
  198. }
  199. .header .hb-item .nav .nav-item .nav-ul .nav-li:hover {
  200. background-color: #2382ff;
  201. }
  202. .header .hb-item .nav .nav-item .nav-ul .nav-li:hover a {
  203. color: #fff;
  204. }
  205. .header .hb-item .nav .nav-item .nav-ul .nav-li a {
  206. color: #777;
  207. line-height: 15px;
  208. font-size: small;
  209. }
  210. #nav-sm {
  211. position: fixed;
  212. z-index: 99;
  213. width: 100vw;
  214. overflow-y: scroll;
  215. box-sizing: border-box;
  216. background-color: #fff;
  217. margin-top: 80px;
  218. padding: 0;
  219. }
  220. @media screen and (max-width: 768px) {
  221. #nav-sm {
  222. border-top: 1px solid #eee;
  223. }
  224. }
  225. #nav-sm::-webkit-scrollbar {
  226. height: 0;
  227. }
  228. #nav-sm > ul > li > a.active {
  229. color: #2382ff;
  230. }
  231. #nav-sm ul li {
  232. list-style-type: none;
  233. }
  234. #nav-sm ul li a {
  235. font-weight: bold;
  236. font-size: 20px;
  237. font-size: 16px;
  238. line-height: 40px;
  239. color: #555;
  240. text-decoration: none;
  241. }
  242. #nav-sm ul li a:hover {
  243. color: #2382ff;
  244. }
  245. #nav-sm ul li .nav-sm-ul {
  246. display: flex;
  247. justify-content: flex-start;
  248. align-items: center;
  249. flex-wrap: wrap;
  250. padding: 0;
  251. }
  252. #nav-sm ul li .nav-sm-ul .nav-sm-li {
  253. padding: 0 10px;
  254. }
  255. #nav-sm ul li .nav-sm-ul .nav-sm-li a {
  256. font-size: 14px;
  257. font-weight: normal;
  258. }
  259. .nav-sm-noheight {
  260. height: 0px;
  261. }
  262. .nav-sm-show {
  263. height: calc(100vh - 80px);
  264. animation: nav 1s;
  265. -webkit-animation: nav 1s normal;
  266. -moz-animation: nav 1s;
  267. }
  268. .nav-sm-noshow {
  269. height: 0px;
  270. animation: navc 1s;
  271. -webkit-animation: navc 1s normal;
  272. -moz-animation: navc 1s;
  273. }
  274. .body {
  275. background-color: #fff;
  276. max-width: 1200px;
  277. min-height: 700px;
  278. overflow: hidden;
  279. position: relative;
  280. padding: 10px 15px 15px;
  281. margin: 141px 20px 20px;
  282. }
  283. .body .my-loading {
  284. text-align: center ;
  285. color: #999;
  286. display: none;
  287. }
  288. .body .my-read {
  289. margin-top: 20px;
  290. text-align: center;
  291. }
  292. .body .my-read .good {
  293. border-radius: 5px;
  294. border: 1px solid #e6e6e6;
  295. display: inline-block;
  296. padding: 5px 30px;
  297. margin-bottom: 10px;
  298. }
  299. .body .my-articles ul {
  300. width: 100%;
  301. border-top: 1px solid #e6e6e6;
  302. padding: 10px 20px;
  303. list-style: square;
  304. color: #777;
  305. overflow: hidden;
  306. }
  307. .body .my-articles ul li {
  308. overflow: hidden;
  309. text-overflow: ellipsis;
  310. white-space: nowrap;
  311. width: 100%;
  312. padding: 5px 0px;
  313. }
  314. .body .my-comment .h5 {
  315. display: flex;
  316. justify-content: space-between;
  317. align-content: center;
  318. }
  319. .body .my-comment .remind {
  320. text-align: center;
  321. background-color: #e6e6e6;
  322. padding: 5px;
  323. border-radius: 5px;
  324. margin: 10px 0px;
  325. }
  326. .body .my-comment .comment {
  327. border-top: 1px solid #e6e6e6;
  328. padding-top: 10px;
  329. }
  330. .body .my-comment .comment .nocomment,
  331. .body .my-comment .comment .loading,
  332. .body .my-comment .comment .nodata {
  333. display: none;
  334. text-align: center;
  335. margin: 10px;
  336. }
  337. .body .my-comment .comment .nocomment {
  338. display: block;
  339. padding-bottom: 10px;
  340. }
  341. .body .my-comment .comment .nocomment:hover {
  342. color: #2382ff;
  343. }
  344. .body .my-comment .comment .user {
  345. width: 100%;
  346. padding: 20px 0;
  347. border-bottom: 1px solid #e6e6e6;
  348. display: grid;
  349. grid-template-columns: 10% 90%;
  350. }
  351. .body .my-comment .comment .user .u-img {
  352. width: 100%;
  353. text-align: center;
  354. }
  355. .body .my-comment .comment .user .u-img .img {
  356. width: 100%;
  357. max-width: 64px;
  358. }
  359. .body .my-comment .comment .user .u-content {
  360. margin-left: 10px;
  361. text-align: justify;
  362. }
  363. .body .my-comment .comment .user .u-content .u-name {
  364. font-size: 16px;
  365. }
  366. .body .my-comment .comment .user .u-content .u-detail {
  367. padding: 5px 0px;
  368. }
  369. .body .my-comment .comment .user .u-content .u-flex {
  370. display: flex;
  371. justify-content: space-between;
  372. align-items: center;
  373. }
  374. .body .my-nav {
  375. border-bottom: 1px solid #e6e6e6;
  376. }
  377. .body .my-nav::after {
  378. display: block;
  379. content: '';
  380. clear: both;
  381. }
  382. .body .my-nav ul {
  383. list-style: none;
  384. padding: 0;
  385. }
  386. .body .my-nav ul li {
  387. float: left;
  388. padding: 5px;
  389. color: #777;
  390. }
  391. .body .my-nav ul .active {
  392. color: black;
  393. border-bottom: 3px solid #2382ff;
  394. font-weight: bold;
  395. }
  396. .body .my-list .list-item {
  397. text-decoration: none;
  398. color: black;
  399. display: flex;
  400. justify-content: flex-start;
  401. align-items: start;
  402. padding-bottom: 10px;
  403. margin-bottom: 10px;
  404. border-bottom: 1px solid #e6e6e6;
  405. }
  406. .body .my-list .list-item:hover {
  407. color: #2382ff;
  408. }
  409. .body .my-list .list-item .item-img {
  410. flex: 1;
  411. padding: 0 20px;
  412. }
  413. @media screen and (max-width: 768px) {
  414. .body .my-list .list-item .item-img {
  415. padding: 0 10px;
  416. }
  417. }
  418. .body .my-list .list-item .item-img img {
  419. width: 100%;
  420. border-radius: 5px;
  421. }
  422. .body .my-list .list-item .item-img img:hover {
  423. transform: scale(1.1);
  424. }
  425. .body .my-list .list-item .item-detail {
  426. flex: 4;
  427. height: 100%;
  428. position: relative;
  429. overflow: hidden;
  430. }
  431. @media screen and (max-width: 768px) {
  432. .body .my-list .list-item .item-detail {
  433. flex: 2;
  434. }
  435. }
  436. .body .my-list .list-item .item-detail .title {
  437. font-weight: 400;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. }
  442. @media screen and (max-width: 768px) {
  443. .body .my-list .list-item .item-detail .title {
  444. white-space: normal;
  445. display: -webkit-box;
  446. -webkit-box-orient: vertical;
  447. -webkit-line-clamp: 2;
  448. }
  449. }
  450. .body .my-list .list-item .item-detail .time {
  451. font-size: 12px;
  452. color: #777;
  453. margin-top: 5px;
  454. }
  455. .body .my-list .list-item .item-detail .time span {
  456. margin-left: 5px;
  457. }
  458. @media screen and (max-width: 768px) {
  459. .body {
  460. padding: 0px;
  461. border-radius: 10px 10px 0 0;
  462. margin: 100px 20px 20px;
  463. }
  464. }
  465. .footer {
  466. width: 100%;
  467. box-sizing: border-box;
  468. overflow: hidden;
  469. background-color: #fff;
  470. border-top: 1px solid #f1f1f1;
  471. text-align: center;
  472. color: #777;
  473. }
  474. .footer p {
  475. margin: 0;
  476. padding: 20px 0px 0px;
  477. }
  478. .footer > p:last-child {
  479. padding-bottom: 50px;
  480. }
  481. #top {
  482. position: fixed;
  483. bottom: 80px;
  484. right: 20px;
  485. padding: 20px;
  486. color: #fff;
  487. background-color: rgba(98, 96, 96, 0.3);
  488. border-radius: 10px;
  489. }
  490. #share {
  491. position: fixed;
  492. top: 60vh;
  493. right: 0px;
  494. box-sizing: border-box;
  495. display: flex;
  496. }
  497. @media screen and (max-width: 768px) {
  498. #share {
  499. display: none;
  500. }
  501. }
  502. #share div {
  503. height: 132px;
  504. box-sizing: border-box;
  505. background-color: #2382ff;
  506. color: #fff;
  507. font-size: 15px;
  508. width: 30px;
  509. letter-spacing: 10px;
  510. text-align: center;
  511. line-height: 30px;
  512. border-radius: 5px 0 0 5px;
  513. writing-mode: vertical-lr;
  514. /*从左向右 从右向左是 writing-mode: vertical-rl;*/
  515. writing-mode: tb-lr;
  516. /*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*/
  517. }
  518. #share ul {
  519. width: 0px;
  520. height: 132px;
  521. border: 1px solid #aaa;
  522. border-right: none;
  523. list-style: none;
  524. padding: 0;
  525. box-sizing: border-box;
  526. }
  527. #share ul > li:first-child {
  528. background-color: #c6c6c6;
  529. line-height: 26px;
  530. font-weight: bold;
  531. }
  532. #share ul li {
  533. padding: 5px 10px;
  534. width: 100px;
  535. vertical-align: middle;
  536. }
  537. #share ul li img {
  538. width: 20px;
  539. vertical-align: middle;
  540. margin-right: 5px;
  541. }
  542. #share ul li:hover:not(ul>li:first-child) {
  543. background-color: #e6e6e6;
  544. }
  545. #toast {
  546. display: none;
  547. position: fixed;
  548. top: 0;
  549. left: 0;
  550. z-index: 100;
  551. width: 100vw;
  552. height: 100vh;
  553. background-color: rgba(29, 27, 27, 0.5);
  554. text-align: center;
  555. }
  556. #toast > div {
  557. background-color: #fff;
  558. position: absolute;
  559. padding: 5px;
  560. border-radius: 5px;
  561. width: 200px;
  562. left: calc(50vw - 100px);
  563. top: 30vh;
  564. }
  565. #download {
  566. position: fixed;
  567. bottom: 0px;
  568. width: 100vw;
  569. display: none;
  570. justify-content: space-between;
  571. align-items: center;
  572. background-color: rgba(1, 1, 1, 0.5);
  573. padding: 5px 10px;
  574. color: #fff;
  575. }
  576. #download .left {
  577. width: 200px;
  578. }
  579. #download .left::before {
  580. display: block;
  581. content: '';
  582. clear: both;
  583. }
  584. #download .left img,
  585. #download .left div {
  586. float: left;
  587. }
  588. #download .left img {
  589. width: 50px;
  590. }
  591. #download .left div {
  592. margin-left: 10px;
  593. }
  594. #download .left .row1 {
  595. margin-bottom: 10px;
  596. }
  597. @media screen and (max-width: 768px) {
  598. #download {
  599. display: flex;
  600. }
  601. }