components.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. @keyframes nav {
  2. from {
  3. height: 0;
  4. }
  5. to {
  6. height: calc(100vh - 90px);
  7. }
  8. }
  9. @-webkit-keyframes nav {
  10. /* Safari and Chrome */
  11. from {
  12. height: 0;
  13. }
  14. to {
  15. height: calc(100vh - 90px);
  16. }
  17. }
  18. @-moz-keyframes nav {
  19. /* Safari and Chrome */
  20. from {
  21. height: 0;
  22. }
  23. to {
  24. height: calc(100vh - 90px);
  25. }
  26. }
  27. @keyframes navc {
  28. from {
  29. height: calc(100vh - 90px);
  30. }
  31. to {
  32. height: 0;
  33. }
  34. }
  35. @-webkit-keyframes navc {
  36. /* Safari and Chrome */
  37. from {
  38. height: calc(100vh - 90px);
  39. }
  40. to {
  41. height: 0;
  42. }
  43. }
  44. @-moz-keyframes navc {
  45. /* Safari and Chrome */
  46. from {
  47. height: calc(100vh - 90px);
  48. }
  49. to {
  50. height: 0;
  51. }
  52. }
  53. .show {
  54. display: block !important;
  55. }
  56. .noshow {
  57. display: none !important;
  58. }
  59. body {
  60. height: 100vh;
  61. overflow-y: scroll;
  62. }
  63. body a {
  64. text-decoration: none;
  65. color: #777;
  66. }
  67. body a:hover {
  68. color: #2382ff;
  69. text-decoration: none;
  70. }
  71. body::-webkit-scrollbar {
  72. /*滚动条整体样式*/
  73. width: 5px;
  74. /*高宽分别对应横竖滚动条的尺寸*/
  75. height: 10px;
  76. }
  77. @media screen and (max-width: 750px) {
  78. body::-webkit-scrollbar {
  79. /*滚动条整体样式*/
  80. width: 10px;
  81. /*高宽分别对应横竖滚动条的尺寸*/
  82. height: 10px;
  83. }
  84. }
  85. body::-webkit-scrollbar-thumb {
  86. /*滚动条里面小方块*/
  87. border-radius: 10px;
  88. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  89. background: #999;
  90. }
  91. body::-webkit-scrollbar-thumb:hover {
  92. background: #2382ff;
  93. }
  94. body::-webkit-scrollbar-track {
  95. /*滚动条里面轨道*/
  96. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  97. border-radius: 10px;
  98. background: #eee;
  99. }
  100. .header {
  101. width: 100%;
  102. border-bottom: 1px solid #f1f1f1;
  103. background-color: #fff;
  104. position: fixed;
  105. z-index: 1;
  106. }
  107. .header .ha-item {
  108. margin-top: 10px;
  109. height: 70px;
  110. }
  111. .header .ha-item .img {
  112. height: 100%;
  113. }
  114. .header .ha-item .img span {
  115. font-size: 50px;
  116. font-weight: bold;
  117. color: #2382ff;
  118. }
  119. .header .ha-item .img img {
  120. height: 100%;
  121. }
  122. .header .ha-item .button {
  123. display: none;
  124. }
  125. @media screen and (max-width: 750px) {
  126. .header .ha-item .button {
  127. display: block;
  128. }
  129. }
  130. .header .ha-item .button .button {
  131. color: #2382ff;
  132. padding: 10px;
  133. border: 2px solid #2382ff;
  134. text-align: center;
  135. font-size: 30px;
  136. border-radius: 5px;
  137. }
  138. .header .ha-item .app {
  139. height: 100%;
  140. text-align: center;
  141. }
  142. @media screen and (max-width: 750px) {
  143. .header .ha-item .app {
  144. display: none;
  145. }
  146. }
  147. .header .ha-item .app a {
  148. text-decoration: none;
  149. color: #2382ff;
  150. }
  151. .header .ha-item .app a img {
  152. width: 50px;
  153. }
  154. .header .hb-item .nav {
  155. display: flex;
  156. justify-content: flex-start;
  157. align-content: center;
  158. }
  159. @media screen and (max-width: 750px) {
  160. .header .hb-item .nav {
  161. display: none;
  162. }
  163. }
  164. .header .hb-item .nav > .nav-item > a.active {
  165. color: #2382ff;
  166. }
  167. .header .hb-item .nav .nav-item {
  168. padding: 0 20px;
  169. }
  170. .header .hb-item .nav .nav-item a {
  171. color: #777;
  172. font-weight: bold;
  173. text-decoration: none;
  174. line-height: 40px;
  175. display: table-cell;
  176. vertical-align: bottom;
  177. font-size: 18px;
  178. }
  179. .header .hb-item .nav .nav-item a i {
  180. margin-left: 5px;
  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: 600px;
  278. overflow: hidden;
  279. position: relative;
  280. padding: 10px 15px 15px;
  281. margin: 141px 20px 20px;
  282. }
  283. @media screen and (max-width: 768px) {
  284. .body {
  285. padding: 0px;
  286. border-radius: 10px 10px 0 0;
  287. margin: 100px 20px 20px;
  288. }
  289. }
  290. .footer {
  291. width: 100%;
  292. box-sizing: border-box;
  293. overflow: hidden;
  294. background-color: #fff;
  295. border-top: 1px solid #f1f1f1;
  296. text-align: center;
  297. color: #777;
  298. }
  299. .footer p {
  300. margin: 0;
  301. padding: 20px 0px 0px;
  302. }
  303. .footer > p:last-child {
  304. padding-bottom: 50px;
  305. }
  306. #top {
  307. position: fixed;
  308. bottom: 30px;
  309. right: 30px;
  310. padding: 20px;
  311. color: #fff;
  312. background-color: rgba(98, 96, 96, 0.3);
  313. border-radius: 10px;
  314. }
  315. #share {
  316. position: fixed;
  317. top: 60vh;
  318. right: 0px;
  319. box-sizing: border-box;
  320. display: flex;
  321. }
  322. @media screen and (max-width: 768px) {
  323. #share {
  324. display: none;
  325. }
  326. }
  327. #share div {
  328. height: 132px;
  329. box-sizing: border-box;
  330. background-color: #2382ff;
  331. color: #fff;
  332. font-size: 15px;
  333. width: 30px;
  334. letter-spacing: 10px;
  335. text-align: center;
  336. line-height: 30px;
  337. border-radius: 5px 0 0 5px;
  338. writing-mode: vertical-lr;
  339. /*从左向右 从右向左是 writing-mode: vertical-rl;*/
  340. writing-mode: tb-lr;
  341. /*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*/
  342. }
  343. #share ul {
  344. width: 0px;
  345. height: 132px;
  346. border: 1px solid #aaa;
  347. border-right: none;
  348. list-style: none;
  349. padding: 0;
  350. box-sizing: border-box;
  351. }
  352. #share ul > li:first-child {
  353. background-color: #c6c6c6;
  354. line-height: 26px;
  355. font-weight: bold;
  356. }
  357. #share ul li {
  358. padding: 5px 10px;
  359. width: 100px;
  360. vertical-align: middle;
  361. }
  362. #share ul li img {
  363. width: 20px;
  364. vertical-align: middle;
  365. margin-right: 5px;
  366. }
  367. #share ul li:hover:not(ul>li:first-child) {
  368. background-color: #e6e6e6;
  369. }
  370. #toast {
  371. display: none;
  372. position: fixed;
  373. top: 0;
  374. left: 0;
  375. z-index: 100;
  376. width: 100vw;
  377. height: 100vh;
  378. background-color: rgba(29, 27, 27, 0.5);
  379. text-align: center;
  380. }
  381. #toast div {
  382. background-color: #fff;
  383. position: absolute;
  384. padding: 5px;
  385. border-radius: 5px;
  386. width: 260px;
  387. left: calc(50vw - 130px);
  388. top: 30vh;
  389. }