common.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. @charset "utf-8";
  2. * {
  3. -webkit-box-sizing: border-box;
  4. box-sizing: border-box;
  5. }
  6. /**,*:before,*:after{-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-tap-highlight-color: transparent;max-height: 100000px;}*/
  7. body,
  8. h1,
  9. h2,
  10. h3,
  11. h4,
  12. h5,
  13. h6,
  14. hr,
  15. p,
  16. blockquote,
  17. dl,
  18. dt,
  19. dd,
  20. ul,
  21. ol,
  22. li,
  23. pre,
  24. form,
  25. fieldset,
  26. legend,
  27. button,
  28. input,
  29. textarea,
  30. th,
  31. td {
  32. margin: 0;
  33. padding: 0;
  34. }
  35. body,input, select, textarea /* for ie */ {
  36. font: 14px "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
  37. line-height: 1.15;
  38. color: #333; /*touch-action: none*/
  39. background: #fff;
  40. -webkit-font-smoothing: antialiased;
  41. -moz-osx-font-smoothing: grayscale;
  42. } /** 设置默认字体 **/
  43. header,
  44. section,
  45. footer,
  46. aside,
  47. nav,
  48. article,
  49. figure {
  50. display: block;
  51. }
  52. input,
  53. button,
  54. select,
  55. textarea {
  56. outline: none;
  57. vertical-align: middle; /*解决父级底部多余空白*/
  58. -webkit-appearance: none; /*去掉webkit默认的表单样式*/
  59. font-size: 100%; /* 使得表单元素在 ie 下能继承字体大小 */
  60. border: none;
  61. background: none;
  62. color: inherit;
  63. }
  64. address,
  65. cite,
  66. dfn,
  67. em,
  68. var {
  69. font-style: normal;
  70. } /* 将斜体扶正 , 注:optgroup 无法扶正 */
  71. h1,
  72. h2,
  73. h3,
  74. h4,
  75. h5,
  76. h6 {
  77. font-size: 100%;
  78. background: none;
  79. }
  80. code,
  81. kbd,
  82. pre,
  83. samp {
  84. font-family: courier new, courier, monospace;
  85. } /* 统一等宽字体 */
  86. object,
  87. embed,
  88. video {
  89. max-width: 100%;
  90. }
  91. a:link,
  92. a:active,
  93. a:visited,
  94. a:hover {
  95. text-decoration: none;
  96. }
  97. table {
  98. border-collapse: collapse;
  99. border-spacing: 0;
  100. }
  101. img {
  102. border: 0;
  103. max-width: 100%;
  104. vertical-align: middle;
  105. } /*解决父级底部多余空白*/
  106. small {
  107. font-size: 12px;
  108. } /* 小于 12px 的中文很难阅读,让 small 正常化 */
  109. legend {
  110. color: #000;
  111. } /*for ie6*/
  112. fieldset {
  113. border: 0;
  114. }
  115. li {
  116. list-style: none;
  117. }
  118. a {
  119. color: inherit;
  120. }
  121. /*click outline for firefox*/
  122. button::-moz-focus-inner,
  123. input[type='reset']::-moz-focus-inner,
  124. input[type='button']::-moz-focus-inner,
  125. input[type='submit']::-moz-focus-inner,
  126. input[type='file'] > input[type='button']::-moz-focus-inner {
  127. border: none;
  128. }
  129. /*click outline for IE and other browser*/
  130. button:focus,
  131. input[type='reset']:focus,
  132. input[type='button']:focus,
  133. input[type='submit']:focus,
  134. input[type='file'] > input[type='button']:focus {
  135. outline: none;
  136. }
  137. /* 注意此处合并写法无效 */
  138. input::-webkit-input-placeholder,
  139. textarea::-webkit-input-placeholder {
  140. color: #fff;
  141. font-size: 16px;
  142. }
  143. input::-moz-placeholder,
  144. textarea::-moz-placeholder {
  145. color: #fff;
  146. font-size: 16px;
  147. }
  148. input:-ms-input-placeholder,
  149. textarea:-ms-input-placeholder {
  150. color: #fff;
  151. font-size: 16px;
  152. }
  153. *:not(input, select, textarea) {
  154. -webkit-user-select: none;
  155. } /*禁止选中文本内容*/
  156. ::-webkit-scrollbar {
  157. /*滚动条整体样式*/
  158. width: 2px; /*高宽分别对应横竖滚动条的尺寸*/
  159. height: 2px;
  160. }
  161. ::-webkit-scrollbar-thumb {
  162. /*滚动条里面小方块*/
  163. border-radius: 2px;
  164. /*深色模式*/
  165. /* -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); */
  166. background: #bbb;
  167. /*浅色模式*/
  168. /*-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  169. background: rgb(245, 245, 245);
  170. border: 1px solid #333;
  171. border-bottom-width: 2px;*/
  172. }
  173. ::-webkit-scrollbar-track {
  174. /*滚动条里面轨道*/
  175. display: none;
  176. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  177. border-radius: 2px;
  178. background: #eee;
  179. }
  180. /* common class */
  181. /*bfc model*/
  182. .bfc-o {
  183. overflow: hidden;
  184. position: relative;
  185. }
  186. .bfc-d {
  187. display: inline-block;
  188. vertical-align: top;
  189. position: relative;
  190. }
  191. .bfc-p {
  192. position: absolute;
  193. }
  194. .fl {
  195. float: left;
  196. position: relative;
  197. }
  198. .fr {
  199. float: right;
  200. position: relative;
  201. }
  202. .flex {
  203. display: flex;
  204. }
  205. .fxbw {
  206. display: flex;
  207. align-items: flex-start;
  208. justify-content: space-between;
  209. }
  210. ais {
  211. align-items: stretch;
  212. }
  213. .aic {
  214. align-items: center;
  215. }
  216. .al {
  217. text-align: left;
  218. }
  219. .ac {
  220. text-align: center;
  221. }
  222. .ar {
  223. text-align: right;
  224. }
  225. .hide {
  226. display: none;
  227. }
  228. .blod {
  229. font-weight: bold;
  230. }
  231. /*top-fixed and bottom-fixed*/
  232. .tf,
  233. .bf {
  234. position: fixed;
  235. width: 100%;
  236. height: 50px;
  237. z-index: 999;
  238. }
  239. .tf {
  240. top: 0;
  241. }
  242. .bf {
  243. bottom: 0;
  244. }
  245. /*mask*/
  246. .mask {
  247. position: fixed;
  248. width: 100%;
  249. height: 100%;
  250. background: rgba(39, 39, 39, 0.76);
  251. left: 0;
  252. bottom: 0;
  253. margin: auto;
  254. z-index: 9;
  255. }
  256. /*center-center*/
  257. .cc {
  258. position: absolute;
  259. top: 50%;
  260. left: 50%;
  261. transform: translate(-50%, -50%);
  262. }
  263. /*t-o-h-e*/
  264. .toe {
  265. white-space: nowrap;
  266. overflow: hidden;
  267. text-overflow: ellipsis;
  268. }
  269. .line2-toe {
  270. text-overflow: -o-ellipsis-lastline;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. word-break: break-all;
  274. display: -webkit-box;
  275. white-space: pre-wrap;
  276. -webkit-line-clamp: 2;
  277. line-clamp: 2;
  278. -webkit-box-orient: vertical;
  279. }
  280. /*close*/
  281. .close {
  282. position: relative;
  283. float: right;
  284. width: 20px;
  285. height: 20px;
  286. line-height: 20px;
  287. background: #f8f8f8;
  288. text-align: center;
  289. cursor: pointer;
  290. }
  291. /* pc frame */
  292. .wrapper {
  293. position: relative;
  294. max-width: 1920px;
  295. min-width: 1020px;
  296. margin: 0 auto;
  297. padding: 0 15px;
  298. overflow: hidden;
  299. }
  300. .cp {
  301. cursor: pointer;
  302. }
  303. .pt5 {
  304. padding-top: 5px;
  305. }
  306. .pr5 {
  307. padding-right: 5px;
  308. }
  309. .pb5 {
  310. padding-bottom: 5px;
  311. }
  312. .pl5 {
  313. padding-left: 5px;
  314. }
  315. .pad5 {
  316. padding: 5px;
  317. }
  318. .pt10 {
  319. padding-top: 10px;
  320. }
  321. .pr10 {
  322. padding-right: 10px;
  323. }
  324. .pb10 {
  325. padding-bottom: 10px;
  326. }
  327. .pl10 {
  328. padding-left: 10px;
  329. }
  330. .pad10 {
  331. padding: 10px;
  332. }
  333. .pt20 {
  334. padding-top: 20px;
  335. }
  336. .pr20 {
  337. padding-right: 20px;
  338. }
  339. .pb20 {
  340. padding-bottom: 20px;
  341. }
  342. .pl20 {
  343. padding-left: 20px;
  344. }
  345. .pad20 {
  346. padding: 20px;
  347. }
  348. .mt5 {
  349. margin-top: 5px;
  350. }
  351. .mr5 {
  352. margin-right: 5px;
  353. }
  354. .mb5 {
  355. margin-bottom: 5px;
  356. }
  357. .ml5 {
  358. margin-left: 5px;
  359. }
  360. .mar5 {
  361. margin: 5px;
  362. }
  363. .mb8 {
  364. margin-bottom: 8px;
  365. }
  366. .mt10 {
  367. margin-top: 10px;
  368. }
  369. .mr10 {
  370. margin-right: 10px;
  371. }
  372. .mb10 {
  373. margin-bottom: 10px;
  374. }
  375. .ml10 {
  376. margin-left: 10px;
  377. }
  378. .mar10 {
  379. margin: 10px;
  380. }
  381. .mt15 {
  382. margin-top: 15px;
  383. }
  384. .mr15 {
  385. margin-right: 15px;
  386. }
  387. .mb15 {
  388. margin-bottom: 15px;
  389. }
  390. .ml15 {
  391. margin-left: 15px;
  392. }
  393. .ml15 {
  394. margin-left: 15px;
  395. }
  396. .mt20 {
  397. margin-top: 20px;
  398. }
  399. .mr20 {
  400. margin-right: 20px;
  401. }
  402. .mb20 {
  403. margin-bottom: 20px;
  404. }
  405. .ml20 {
  406. margin-left: 20px;
  407. }
  408. .mar20 {
  409. margin: 20px;
  410. }
  411. /* Dark mode */
  412. @media (prefers-color-scheme: dark) {
  413. body,img,video {
  414. filter: invert(1) hue-rotate(180deg);
  415. }
  416. /* 不使用暗黑模式 */
  417. .no-dark {
  418. position: relative;
  419. }
  420. .no-dark::before{
  421. content: " ";
  422. position: absolute;
  423. display: block;
  424. height: 100%;
  425. width: 100%;
  426. backdrop-filter: invert(1) hue-rotate(180deg);
  427. }
  428. }