common.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. /**
  2. * 通用css样式布局处理
  3. */
  4. *,
  5. *:before,
  6. *:after {
  7. box-sizing: border-box;
  8. }
  9. body,
  10. h1,
  11. h2,
  12. h3,
  13. h4,
  14. h5,
  15. h6,
  16. hr,
  17. p,
  18. blockquote,
  19. dl,
  20. dt,
  21. dd,
  22. ul,
  23. ol,
  24. li,
  25. pre,
  26. form,
  27. fieldset,
  28. legend,
  29. button,
  30. input,
  31. textarea,
  32. th,
  33. td {
  34. margin: 0;
  35. padding: 0;
  36. }
  37. html {
  38. height: 100%;
  39. font-size: 14px;
  40. line-height: 1.15;
  41. color: #333;
  42. }
  43. body {
  44. height: 100%;
  45. -moz-osx-font-smoothing: grayscale;
  46. -webkit-font-smoothing: antialiased;
  47. text-rendering: optimizeLegibility;
  48. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  49. overflow: hidden;
  50. }
  51. li {
  52. list-style: none;
  53. }
  54. /** 原子类 **/
  55. /* flex */
  56. .flex {
  57. display: flex !important;
  58. }
  59. .fxauto {
  60. flex: auto !important;
  61. }
  62. .fxnone {
  63. flex: none !important;
  64. }
  65. .ais {
  66. display: flex;
  67. align-items: stretch !important;
  68. }
  69. .ait {
  70. display: flex;
  71. align-items: flex-start !important;
  72. }
  73. .aic {
  74. display: flex;
  75. align-items: center !important;
  76. }
  77. .flwrap {
  78. display: flex;
  79. flex-flow: wrap !important;
  80. }
  81. .fxbw {
  82. display: flex;
  83. align-items: flex-start;
  84. justify-content: space-between;
  85. }
  86. .fcbw {
  87. display: flex;
  88. align-items: center;
  89. justify-content: space-between;
  90. }
  91. .fxcol {
  92. display: flex;
  93. flex-direction: column !important;
  94. }
  95. .gap10 {
  96. display: flex;
  97. flex-wrap: wrap;
  98. align-content: baseline;
  99. gap: 10px;
  100. }
  101. .gap5 {
  102. gap: 5px;
  103. }
  104. .gap15 {
  105. gap: 15px;
  106. }
  107. .gap20 {
  108. gap: 20px;
  109. }
  110. /* align */
  111. .fl {
  112. float: left;
  113. position: relative;
  114. }
  115. .fr {
  116. float: right;
  117. position: relative;
  118. }
  119. .al {
  120. text-align: left !important;
  121. }
  122. .ac {
  123. text-align: center !important;
  124. }
  125. .ar {
  126. text-align: right !important;
  127. }
  128. .sticky-t {
  129. position: sticky !important;
  130. top: 0;
  131. z-index: 9;
  132. }
  133. .sticky-b {
  134. position: sticky !important;
  135. bottom: 0;
  136. }
  137. /* padding 5px series */
  138. .pt5 {
  139. padding-top: 5px;
  140. }
  141. .pr5 {
  142. padding-right: 5px;
  143. }
  144. .pb5 {
  145. padding-bottom: 5px;
  146. }
  147. .pl5 {
  148. padding-left: 5px;
  149. }
  150. .pad5 {
  151. padding: 5px;
  152. }
  153. /* padding 10px series */
  154. .pt10 {
  155. padding-top: 10px;
  156. }
  157. .pr10 {
  158. padding-right: 10px;
  159. }
  160. .pb10 {
  161. padding-bottom: 10px;
  162. }
  163. .pl10 {
  164. padding-left: 10px;
  165. }
  166. .pad10 {
  167. padding: 10px;
  168. }
  169. /* padding 20px series */
  170. .pt20 {
  171. padding-top: 20px;
  172. }
  173. .pr20 {
  174. padding-right: 20px;
  175. }
  176. .pb20 {
  177. padding-bottom: 20px;
  178. }
  179. .pl20 {
  180. padding-left: 20px;
  181. }
  182. .pad20 {
  183. padding: 20px;
  184. }
  185. /* margin 5px series */
  186. .mt5 {
  187. margin-top: 5px;
  188. }
  189. .mr5 {
  190. margin-right: 5px;
  191. }
  192. .mb5 {
  193. margin-bottom: 5px;
  194. }
  195. .ml5 {
  196. margin-left: 5px;
  197. }
  198. .mar5 {
  199. margin: 5px;
  200. }
  201. /* margin 10px series */
  202. .mt10 {
  203. margin-top: 10px;
  204. }
  205. .mr10 {
  206. margin-right: 10px;
  207. }
  208. .mb10 {
  209. margin-bottom: 10px;
  210. }
  211. .ml10 {
  212. margin-left: 10px;
  213. }
  214. .mar10 {
  215. margin: 10px;
  216. }
  217. /* margin 15px series */
  218. .mt15 {
  219. margin-top: 15px;
  220. }
  221. .mr15 {
  222. margin-right: 15px;
  223. }
  224. .mb15 {
  225. margin-bottom: 15px;
  226. }
  227. .ml15 {
  228. margin-left: 15px;
  229. }
  230. .ml15 {
  231. margin-left: 15px;
  232. }
  233. /* margin 20px series */
  234. .mt20 {
  235. margin-top: 20px;
  236. }
  237. .mr20 {
  238. margin-right: 20px;
  239. }
  240. .mb20 {
  241. margin-bottom: 20px;
  242. }
  243. .ml20 {
  244. margin-left: 20px;
  245. }
  246. .mar20 {
  247. margin: 20px;
  248. }
  249. /* . */
  250. .mb8 {
  251. margin-bottom: 8px !important;
  252. }
  253. .mt0 {
  254. margin-top: 0 !important;
  255. }
  256. .mb0 {
  257. margin-bottom: 0 !important;
  258. }
  259. .cp {
  260. cursor: pointer !important;
  261. }
  262. .lh1 {
  263. line-height: 1 !important;
  264. }
  265. .hide {
  266. display: none !important;
  267. }
  268. .bgw {
  269. background: white !important;
  270. }
  271. .bgnone {
  272. background: none !important;
  273. }
  274. .overhide {
  275. overflow: hidden !important;
  276. }
  277. .overauto {
  278. overflow: auto !important;
  279. }
  280. .blod {
  281. font-weight: bold !important;
  282. }
  283. .h100 {
  284. height: 100% !important;
  285. }
  286. .block {
  287. display: block !important;
  288. }
  289. /* bfc模型 / 闭合清楚浮动 */
  290. .bfc-o {
  291. overflow: hidden;
  292. position: relative;
  293. }
  294. .bfc-d {
  295. display: inline-block;
  296. vertical-align: top;
  297. position: relative;
  298. }
  299. .bfc-p {
  300. position: absolute;
  301. }
  302. /* fixed */
  303. .tf,
  304. .bf {
  305. position: fixed;
  306. width: 100%;
  307. left: 0;
  308. height: 50px;
  309. z-index: 999;
  310. }
  311. .tf {
  312. top: 0;
  313. }
  314. .bf {
  315. bottom: 0;
  316. }
  317. /* mask */
  318. .mask {
  319. position: fixed;
  320. width: 100%;
  321. height: 100%;
  322. background: rgba(39, 39, 39, 0.76);
  323. left: 0;
  324. bottom: 0;
  325. margin: auto;
  326. z-index: 9;
  327. }
  328. /* 上下左右居中 */
  329. .cc {
  330. position: absolute;
  331. top: 50%;
  332. left: 50%;
  333. transform: translate(-50%, -50%);
  334. overflow: auto;
  335. }
  336. /* 单行文字溢出省略号 */
  337. .toe {
  338. white-space: nowrap;
  339. overflow: hidden;
  340. text-overflow: ellipsis;
  341. }
  342. .sticky-padding {
  343. --bg: var(--bg-black-8);
  344. --pad: var(--card-margin);
  345. background: var(--bg);
  346. padding: 0 var(--pad);
  347. overflow: auto;
  348. }
  349. .sticky-padding::before,
  350. .sticky-padding::after {
  351. content: '';
  352. display: block;
  353. position: sticky;
  354. height: var(--pad);
  355. background: var(--bg);
  356. }
  357. .sticky-padding::before {
  358. top: 0;
  359. }
  360. .sticky-padding::after {
  361. bottom: 0;
  362. }
  363. /* pc端主体显示宽度区域 */
  364. .main-size {
  365. min-width: 1366px;
  366. max-width: 1920px;
  367. margin: 0 auto;
  368. }
  369. /* 暗黑模式 Dark mode */
  370. /* @media (prefers-color-scheme: dark) {
  371. body,
  372. img,
  373. video {
  374. filter: invert(1) brightness(1.5) hue-rotate(180deg);
  375. }
  376. 不使用暗黑模式
  377. .no-dark {
  378. position: relative;
  379. }
  380. .no-dark::before {
  381. content: ' ';
  382. position: absolute;
  383. display: block;
  384. height: 100%;
  385. width: 100%;
  386. backdrop-filter: invert(1) brightness(1.5) hue-rotate(180deg);
  387. }
  388. } */