components.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  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. }
  180. .header .hb-item .nav .nav-item a:hover {
  181. color: #2382ff;
  182. }
  183. .header .hb-item .nav .nav-item .nav-ul {
  184. display: none;
  185. overflow: hidden;
  186. padding: 0;
  187. position: absolute;
  188. z-index: 1;
  189. background-color: #fff;
  190. overflow: auto !important;
  191. }
  192. .header .hb-item .nav .nav-item .nav-ul .nav-li {
  193. width: 100px;
  194. padding: 10px;
  195. list-style: none;
  196. }
  197. .header .hb-item .nav .nav-item .nav-ul .nav-li:hover {
  198. background-color: #2382ff;
  199. }
  200. .header .hb-item .nav .nav-item .nav-ul .nav-li:hover a {
  201. color: #fff;
  202. }
  203. .header .hb-item .nav .nav-item .nav-ul .nav-li a {
  204. color: #777;
  205. line-height: 15px;
  206. font-size: small;
  207. }
  208. #nav-sm {
  209. position: fixed;
  210. z-index: 99;
  211. width: 100vw;
  212. overflow-y: scroll;
  213. box-sizing: border-box;
  214. background-color: #fff;
  215. margin-top: 80px;
  216. padding: 0;
  217. }
  218. @media screen and (max-width: 768px) {
  219. #nav-sm {
  220. border-top: 1px solid #eee;
  221. }
  222. }
  223. #nav-sm::-webkit-scrollbar {
  224. height: 0;
  225. }
  226. #nav-sm > ul > li > a.active {
  227. color: #2382ff;
  228. }
  229. #nav-sm ul li {
  230. list-style-type: none;
  231. }
  232. #nav-sm ul li a {
  233. font-weight: bold;
  234. font-size: 20px;
  235. font-size: 16px;
  236. line-height: 40px;
  237. color: #555;
  238. text-decoration: none;
  239. }
  240. #nav-sm ul li a:hover {
  241. color: #2382ff;
  242. }
  243. #nav-sm ul li .nav-sm-ul {
  244. display: flex;
  245. justify-content: flex-start;
  246. align-items: center;
  247. flex-wrap: wrap;
  248. padding: 0;
  249. }
  250. #nav-sm ul li .nav-sm-ul .nav-sm-li {
  251. padding: 0 10px;
  252. }
  253. #nav-sm ul li .nav-sm-ul .nav-sm-li a {
  254. font-size: 14px;
  255. font-weight: normal;
  256. }
  257. .nav-sm-noheight {
  258. height: 0px;
  259. }
  260. .nav-sm-show {
  261. height: calc(100vh - 80px);
  262. animation: nav 1s;
  263. -webkit-animation: nav 1s normal;
  264. -moz-animation: nav 1s;
  265. }
  266. .nav-sm-noshow {
  267. height: 0px;
  268. animation: navc 1s;
  269. -webkit-animation: navc 1s normal;
  270. -moz-animation: navc 1s;
  271. }
  272. .body {
  273. background-color: #fff;
  274. max-width: 1200px;
  275. min-height: 700px;
  276. overflow: hidden;
  277. position: relative;
  278. padding: 10px 15px 15px;
  279. margin: 141px 20px 20px;
  280. }
  281. .body .my-loading {
  282. text-align: center ;
  283. color: #999;
  284. display: none;
  285. }
  286. .body .my-read {
  287. margin-top: 20px;
  288. text-align: center;
  289. }
  290. .body .my-read .good {
  291. border-radius: 5px;
  292. border: 1px solid #e6e6e6;
  293. display: inline-block;
  294. padding: 5px 30px;
  295. margin-bottom: 10px;
  296. }
  297. .body .my-articles ul {
  298. width: 100%;
  299. border-top: 1px solid #e6e6e6;
  300. padding: 10px 20px;
  301. list-style: square;
  302. color: #777;
  303. overflow: hidden;
  304. }
  305. .body .my-articles ul li {
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. white-space: nowrap;
  309. width: 100%;
  310. padding: 5px 0px;
  311. }
  312. .body .my-comment .h5 {
  313. display: flex;
  314. justify-content: space-between;
  315. align-content: center;
  316. }
  317. .body .my-comment .remind {
  318. text-align: center;
  319. background-color: #e6e6e6;
  320. padding: 5px;
  321. border-radius: 5px;
  322. margin: 10px 0px;
  323. }
  324. .body .my-comment .comment {
  325. border-top: 1px solid #e6e6e6;
  326. padding-top: 10px;
  327. }
  328. .body .my-comment .comment .nocomment,
  329. .body .my-comment .comment .loading,
  330. .body .my-comment .comment .nodata {
  331. display: none;
  332. text-align: center;
  333. margin: 10px;
  334. }
  335. .body .my-comment .comment .nocomment {
  336. display: block;
  337. padding-bottom: 10px;
  338. }
  339. .body .my-comment .comment .nocomment:hover {
  340. color: #2382ff;
  341. }
  342. .body .my-comment .comment .user {
  343. width: 100%;
  344. padding: 20px 0;
  345. border-bottom: 1px solid #e6e6e6;
  346. display: grid;
  347. grid-template-columns: 10% 90%;
  348. }
  349. .body .my-comment .comment .user .u-img {
  350. width: 100%;
  351. text-align: center;
  352. }
  353. .body .my-comment .comment .user .u-img .img {
  354. width: 100%;
  355. max-width: 64px;
  356. }
  357. .body .my-comment .comment .user .u-content {
  358. margin-left: 10px;
  359. text-align: justify;
  360. }
  361. .body .my-comment .comment .user .u-content .u-name {
  362. font-size: 16px;
  363. }
  364. .body .my-comment .comment .user .u-content .u-detail {
  365. padding: 5px 0px;
  366. }
  367. .body .my-comment .comment .user .u-content .u-flex {
  368. display: flex;
  369. justify-content: space-between;
  370. align-items: center;
  371. }
  372. @media screen and (max-width: 768px) {
  373. .body {
  374. padding: 0px;
  375. border-radius: 10px 10px 0 0;
  376. margin: 100px 20px 20px;
  377. }
  378. }
  379. .footer {
  380. width: 100%;
  381. box-sizing: border-box;
  382. overflow: hidden;
  383. background-color: #fff;
  384. border-top: 1px solid #f1f1f1;
  385. text-align: center;
  386. color: #777;
  387. }
  388. .footer p {
  389. margin: 0;
  390. padding: 20px 0px 0px;
  391. }
  392. .footer > p:last-child {
  393. padding-bottom: 50px;
  394. }
  395. #top {
  396. position: fixed;
  397. bottom: 80px;
  398. right: 20px;
  399. padding: 20px;
  400. color: #fff;
  401. background-color: rgba(98, 96, 96, 0.3);
  402. border-radius: 10px;
  403. }
  404. #share {
  405. position: fixed;
  406. top: 60vh;
  407. right: 0px;
  408. box-sizing: border-box;
  409. display: flex;
  410. }
  411. @media screen and (max-width: 768px) {
  412. #share {
  413. display: none;
  414. }
  415. }
  416. #share div {
  417. height: 132px;
  418. box-sizing: border-box;
  419. background-color: #2382ff;
  420. color: #fff;
  421. font-size: 15px;
  422. width: 30px;
  423. letter-spacing: 10px;
  424. text-align: center;
  425. line-height: 30px;
  426. border-radius: 5px 0 0 5px;
  427. writing-mode: vertical-lr;
  428. /*从左向右 从右向左是 writing-mode: vertical-rl;*/
  429. writing-mode: tb-lr;
  430. /*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*/
  431. }
  432. #share ul {
  433. width: 0px;
  434. height: 132px;
  435. border: 1px solid #aaa;
  436. border-right: none;
  437. list-style: none;
  438. padding: 0;
  439. box-sizing: border-box;
  440. }
  441. #share ul > li:first-child {
  442. background-color: #c6c6c6;
  443. line-height: 26px;
  444. font-weight: bold;
  445. }
  446. #share ul li {
  447. padding: 5px 10px;
  448. width: 100px;
  449. vertical-align: middle;
  450. }
  451. #share ul li img {
  452. width: 20px;
  453. vertical-align: middle;
  454. margin-right: 5px;
  455. }
  456. #share ul li:hover:not(ul>li:first-child) {
  457. background-color: #e6e6e6;
  458. }
  459. #toast {
  460. display: none;
  461. position: fixed;
  462. top: 0;
  463. left: 0;
  464. z-index: 100;
  465. width: 100vw;
  466. height: 100vh;
  467. background-color: rgba(29, 27, 27, 0.5);
  468. text-align: center;
  469. }
  470. #toast > div {
  471. background-color: #fff;
  472. position: absolute;
  473. padding: 5px;
  474. border-radius: 5px;
  475. width: 200px;
  476. left: calc(50vw - 100px);
  477. top: 30vh;
  478. }
  479. #download {
  480. position: fixed;
  481. bottom: 0px;
  482. width: 100vw;
  483. display: none;
  484. justify-content: space-between;
  485. align-items: center;
  486. background-color: rgba(1, 1, 1, 0.5);
  487. padding: 5px 10px;
  488. color: #fff;
  489. }
  490. #download .left {
  491. width: 200px;
  492. }
  493. #download .left::before {
  494. display: block;
  495. content: '';
  496. clear: both;
  497. }
  498. #download .left img,
  499. #download .left div {
  500. float: left;
  501. }
  502. #download .left img {
  503. width: 50px;
  504. }
  505. #download .left div {
  506. margin-left: 10px;
  507. }
  508. #download .left .row1 {
  509. margin-bottom: 10px;
  510. }
  511. @media screen and (max-width: 768px) {
  512. #download {
  513. display: flex;
  514. }
  515. }