global.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. /*============================================================================
  2. * 1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
  3. * 2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
  4. * 3. reset 期望提供一套普适通用的基础样式。
  5. ===========================-================================================= */
  6. /** Sections
  7. ========================================================================== */
  8. /**
  9. 1. Prevent adjustments of font size after orientation changes in iOS.
  10. */
  11. html {
  12. line-height: 1.5;
  13. -webkit-text-size-adjust: 100%; /* 1 */
  14. }
  15. body,
  16. div,
  17. dl,
  18. dt,
  19. dd,
  20. ul,
  21. ol,
  22. li,
  23. h1,
  24. h2,
  25. h3,
  26. h4,
  27. h5,
  28. h6,
  29. pre,
  30. form,
  31. fieldset,
  32. input,
  33. textarea,
  34. p,
  35. blockquote,
  36. th,
  37. td {
  38. margin: 0;
  39. padding: 0;
  40. }
  41. article,
  42. aside,
  43. details,
  44. figcaption,
  45. figure,
  46. footer,
  47. header,
  48. hgroup,
  49. menu,
  50. nav,
  51. section {
  52. display: block;
  53. }
  54. h1,
  55. h2,
  56. h3,
  57. h4,
  58. h5,
  59. h6 {
  60. font-size: 100%;
  61. font-weight: normal;
  62. }
  63. /* Grouping content
  64. ========================================================================== */
  65. /**
  66. * 1. Add the correct box sizing in Firefox.
  67. * 2. Show the overflow in Edge and IE.
  68. */
  69. hr {
  70. box-sizing: content-box; /* 1 */
  71. height: 0; /* 1 */
  72. overflow: visible; /* 2 */
  73. }
  74. /**
  75. * 1. Correct the inheritance and scaling of font size in all browsers.
  76. * 2. Correct the odd `em` font sizing in all browsers.
  77. */
  78. pre {
  79. font-family: monospace, monospace; /* 1 */
  80. font-size: 1em; /* 2 */
  81. }
  82. address,
  83. cite,
  84. code,
  85. dfn,
  86. em,
  87. var {
  88. font-style: normal;
  89. font-weight: normal;
  90. }
  91. blockquote,
  92. q {
  93. quotes: none;
  94. }
  95. blockquote:before,
  96. blockquote:after,
  97. q:before,
  98. q:after {
  99. content: "";
  100. content: none;
  101. }
  102. /* Text-level semantics
  103. ========================================================================== */
  104. /**
  105. * Remove the gray background on active links in IE 10.
  106. */
  107. a {
  108. background-color: transparent;
  109. }
  110. a:active {
  111. star: expression(this.onFocus=this.blur());
  112. }
  113. :focus {
  114. outline: 0;
  115. }
  116. a:link,
  117. a:visited {
  118. text-decoration: none;
  119. }
  120. a:hover,
  121. a:active {
  122. text-decoration: none;
  123. border: none;
  124. }
  125. /**
  126. * 1. Remove the bottom border in Chrome 57-
  127. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  128. */
  129. abbr[title] {
  130. border-bottom: none; /* 1 */
  131. text-decoration: underline; /* 2 */
  132. text-decoration: underline dotted; /* 2 */
  133. }
  134. /**
  135. * Add the correct font weight in Chrome, Edge, and Safari.
  136. */
  137. b,
  138. strong {
  139. font-weight: bolder;
  140. }
  141. /**
  142. * 1. Correct the inheritance and scaling of font size in all browsers.
  143. * 2. Correct the odd `em` font sizing in all browsers.
  144. */
  145. code,
  146. kbd,
  147. samp {
  148. font-family: monospace, monospace; /* 1 */
  149. font-size: 1em; /* 2 */
  150. }
  151. /**
  152. * Add the correct font size in all browsers.
  153. */
  154. small {
  155. font-size: 80%;
  156. }
  157. /**
  158. * Prevent `sub` and `sup` elements from affecting the line height in
  159. * all browsers.
  160. */
  161. sub,
  162. sup {
  163. font-size: 75%;
  164. line-height: 0;
  165. position: relative;
  166. vertical-align: baseline;
  167. }
  168. sub {
  169. bottom: -0.25em;
  170. }
  171. sup {
  172. top: -0.5em;
  173. }
  174. /* Embedded content
  175. ========================================================================== */
  176. /**
  177. * Remove the border on images inside links in IE 10.
  178. */
  179. img {
  180. border: 0;
  181. }
  182. /* Tabular content
  183. ========================================================================== */
  184. table {
  185. border-collapse: collapse;
  186. border-spacing: 0;
  187. }
  188. caption,
  189. th {
  190. font-style: normal;
  191. font-weight: normal;
  192. }
  193. /* Forms
  194. ========================================================================== */
  195. /**
  196. * 1. Change the font styles in all browsers.
  197. * 2. Remove the margin in Firefox and Safari.
  198. */
  199. button,
  200. input,
  201. optgroup,
  202. select,
  203. textarea {
  204. margin: 0; /* 2 */
  205. font-family: inherit; /* 1 */
  206. font-size: 100%; /* 1 */
  207. line-height: 1.5; /* 1 */
  208. }
  209. /**
  210. * Show the overflow in IE.
  211. * 1. Show the overflow in Edge.
  212. */
  213. button,
  214. input {
  215. /* 1 */
  216. overflow: visible;
  217. }
  218. /**
  219. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  220. * 1. Remove the inheritance of text transform in Firefox.
  221. */
  222. button,
  223. select {
  224. /* 1 */
  225. text-transform: none;
  226. }
  227. /**
  228. * Correct the inability to style clickable types in iOS and Safari.
  229. */
  230. button,
  231. [type="button"],
  232. [type="reset"],
  233. [type="submit"] {
  234. -webkit-appearance: button;
  235. }
  236. /**
  237. * Remove the inner border and padding in Firefox.
  238. */
  239. button::-moz-focus-inner,
  240. [type="button"]::-moz-focus-inner,
  241. [type="reset"]::-moz-focus-inner,
  242. [type="submit"]::-moz-focus-inner {
  243. padding: 0;
  244. border-style: none;
  245. }
  246. /**
  247. * Restore the focus styles unset by the previous rule.
  248. */
  249. button:-moz-focusring,
  250. [type="button"]:-moz-focusring,
  251. [type="reset"]:-moz-focusring,
  252. [type="submit"]:-moz-focusring {
  253. outline: 1px dotted ButtonText;
  254. }
  255. /**
  256. * Correct the padding in Firefox.
  257. */
  258. fieldset {
  259. padding: 0.35em 0.75em 0.625em;
  260. border: 0;
  261. }
  262. /**
  263. * 1. Correct the text wrapping in Edge and IE.
  264. * 2. Correct the color inheritance from `fieldset` elements in IE.
  265. * 3. Remove the padding so developers are not caught out when they zero out
  266. * `fieldset` elements in all browsers.
  267. */
  268. legend {
  269. box-sizing: border-box; /* 1 */
  270. display: table; /* 1 */
  271. max-width: 100%; /* 1 */
  272. padding: 0; /* 3 */
  273. white-space: normal; /* 1 */
  274. color: inherit; /* 2 */
  275. }
  276. /**
  277. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  278. */
  279. progress {
  280. vertical-align: baseline;
  281. }
  282. /**
  283. * Remove the default vertical scroll-bar in IE 10+.
  284. */
  285. textarea {
  286. overflow: auto;
  287. }
  288. /**
  289. * 1. Add the correct box sizing in IE 10.
  290. * 2. Remove the padding in IE 10.
  291. */
  292. [type="checkbox"],
  293. [type="radio"] {
  294. box-sizing: border-box; /* 1 */
  295. padding: 0; /* 2 */
  296. }
  297. /**
  298. * Correct the cursor style of increment and decrement buttons in Chrome.
  299. */
  300. [type="number"]::-webkit-inner-spin-button,
  301. [type="number"]::-webkit-outer-spin-button {
  302. height: auto;
  303. }
  304. /**
  305. * 1. Correct the odd appearance in Chrome and Safari.
  306. * 2. Correct the outline style in Safari.
  307. */
  308. [type="search"] {
  309. -webkit-appearance: textfield; /* 1 */
  310. outline-offset: -2px; /* 2 */
  311. }
  312. /**
  313. * Remove the inner padding in Chrome and Safari on macOS.
  314. */
  315. [type="search"]::-webkit-search-decoration {
  316. -webkit-appearance: none;
  317. }
  318. /**
  319. * 1. Correct the inability to style clickable types in iOS and Safari.
  320. * 2. Change font properties to `inherit` in Safari.
  321. */
  322. ::-webkit-file-upload-button {
  323. -webkit-appearance: button; /* 1 */
  324. font: inherit; /* 2 */
  325. }
  326. /* Interactive elements
  327. ========================================================================== */
  328. /*
  329. * Add the correct display in Edge, IE 10+, and Firefox.
  330. */
  331. details {
  332. display: block;
  333. }
  334. /*
  335. * Add the correct display in all browsers.
  336. */
  337. summary {
  338. display: list-item;
  339. }
  340. /* Misc 杂项
  341. ========================================================================== */
  342. /**
  343. * Add the correct display in IE 10+.
  344. */
  345. template {
  346. display: none;
  347. }
  348. /**
  349. * Add the correct display in IE 10.
  350. */
  351. [hidden] {
  352. display: none;
  353. }
  354. /* Base Css
  355. ========================================================================== */
  356. /**
  357. * 清除浮动
  358. */
  359. .b-clearfix:before,
  360. .b-clearfix:after {
  361. content: " ";
  362. display: table;
  363. }
  364. .b-clearfix:after {
  365. clear: both;
  366. }
  367. .b-clearfix {
  368. *zoom: 1;
  369. }
  370. /**
  371. * 文字
  372. */
  373. .b-ft12 {
  374. font-size: 12px;
  375. }
  376. .b-ft14 {
  377. font-size: 14px;
  378. }
  379. .b-ft16 {
  380. font-size: 16px;
  381. }
  382. .b-ft20 {
  383. font-size: 20px;
  384. }
  385. .b-bold {
  386. font-weight: bold;
  387. }
  388. .b-indent2 {
  389. text-indent: 2em;
  390. }
  391. .b-underline {
  392. text-decoration: underline;
  393. }
  394. .b-ftfff {
  395. color: #fff;
  396. }
  397. /*
  398. *定位
  399. */
  400. .b-tl {
  401. text-align: left;
  402. }
  403. .b-tc {
  404. text-align: center;
  405. }
  406. .b-tr {
  407. text-align: right;
  408. }
  409. .b-fl {
  410. float: left;
  411. }
  412. .b-fr {
  413. float: right;
  414. }
  415. .b-cb {
  416. clear: both;
  417. }
  418. .b-cl {
  419. clear: left;
  420. }
  421. .b-cr {
  422. clear: right;
  423. }
  424. .b-vm {
  425. vertical-align: middle;
  426. }
  427. .b-vt {
  428. vertical-align: top;
  429. }
  430. .b-relative {
  431. position: relative;
  432. }
  433. .b-absolute {
  434. position: absolute;
  435. }
  436. .b-zoom {
  437. zoom: 1;
  438. }
  439. /*
  440. *State
  441. */
  442. .is-hidden {
  443. visibility: hidden;
  444. }
  445. .is-visible {
  446. visibility: visible;
  447. }
  448. .is-none {
  449. display: none;
  450. }
  451. .is-block {
  452. display: block;
  453. }
  454. /**
  455. *边距
  456. */
  457. .b-m5 {
  458. margin: 5px;
  459. }
  460. .b-m10 {
  461. margin: 10px;
  462. }
  463. .b-m15 {
  464. margin: 15px;
  465. }
  466. .b-m20 {
  467. margin: 20px;
  468. }
  469. .b-m25 {
  470. margin: 25px;
  471. }
  472. .b-m30 {
  473. margin: 30px;
  474. }
  475. .b-mt5 {
  476. margin-top: 5px;
  477. }
  478. .b-mt10 {
  479. margin-top: 10px;
  480. }
  481. .b-mt15 {
  482. margin-top: 15px;
  483. }
  484. .b-mt20 {
  485. margin-top: 20px;
  486. }
  487. .b-mr5 {
  488. margin-right: 5px;
  489. }
  490. .b-mr10 {
  491. margin-right: 10px;
  492. }
  493. .b-mr15 {
  494. margin-right: 15px;
  495. }
  496. .b-mr20 {
  497. margin-right: 50px;
  498. }
  499. .b-mb5 {
  500. margin-bottom: 5px;
  501. }
  502. .b-mb10 {
  503. margin-bottom: 10px;
  504. }
  505. .b-mb15 {
  506. margin-bottom: 15px;
  507. }
  508. .b-mb20 {
  509. margin-bottom: 20px;
  510. }
  511. .b-ml5 {
  512. margin-left: 5px;
  513. }
  514. .b-m10 {
  515. margin-left: 10px;
  516. }
  517. .b-ml5 {
  518. margin-left: 5px;
  519. }
  520. .b-ml20 {
  521. margin-left: 20px;
  522. }
  523. .b-p5 {
  524. padding: 5px;
  525. }
  526. .b-p10 {
  527. padding: 10px;
  528. }
  529. .b-p15 {
  530. padding: 15px;
  531. }
  532. .b-p20 {
  533. padding: 30px;
  534. }
  535. .b-pt5 {
  536. padding-top: 5px;
  537. }
  538. .b-pt10 {
  539. padding-top: 10px;
  540. }
  541. .b-pt15 {
  542. padding-top: 15px;
  543. }
  544. .b-pt20 {
  545. padding-top: 20px;
  546. }
  547. .b-pr5 {
  548. padding-right: 5px;
  549. }
  550. .b-pr10 {
  551. padding-right: 10px;
  552. }
  553. .b-pr15 {
  554. padding-right: 15px;
  555. }
  556. .b-pr20 {
  557. padding-right: 20px;
  558. }
  559. .b-pb5 {
  560. padding-bottom: 5px;
  561. }
  562. .b-pb10 {
  563. padding-bottom: 10px;
  564. }
  565. .b-pb15 {
  566. padding-bottom: 15px;
  567. }
  568. .b-pb20 {
  569. padding-bottom: 20px;
  570. }
  571. .b-pl5 {
  572. padding-left: 5px;
  573. }
  574. .b-pl10 {
  575. padding-left: 10px;
  576. }
  577. .b-pl15 {
  578. padding-left: 15px;
  579. }
  580. .b-pl20 {
  581. padding-left: 20px;
  582. }
  583. /*
  584. *线框
  585. */
  586. .b-bt0 {
  587. border-top: 0 none;
  588. }
  589. .b-br0 {
  590. border-right: 0 none;
  591. }
  592. .b-bb0 {
  593. border-bottom: 0 none;
  594. }
  595. .b-bl0 {
  596. border-left: 0 none;
  597. }
  598. .b-valign {
  599. display: table-cell;
  600. *display: inline;
  601. zoom: 1;
  602. vertical-align: middle;
  603. }
  604. /* 换行 */
  605. .b-wordbreak {
  606. word-wrap: break-word;
  607. overflow: hidden;
  608. word-break: break-all;
  609. }
  610. /* 省略 */
  611. .b-ellipsis {
  612. overflow: hidden;
  613. white-space: nowrap;
  614. text-overflow: ellipsis;
  615. }
  616. .b-scroll-x {
  617. overflow-x: auto;
  618. overflow-y: hidden;
  619. }
  620. .b-scroll-y {
  621. overflow-y: auto;
  622. overflow-x: hidden;
  623. }
  624. /** font-face */
  625. @font-face {
  626. font-family: "icon";
  627. src: url("./iconfont/iconfont.eot");
  628. src: url("./iconfont/iconfont.eot?#iefix") format("embedded-opentype"),
  629. url("./iconfont/iconfont.woff") format("woff"), url("./iconfont/iconfont.ttf") format("truetype"),
  630. url("./iconfont/iconfont.svg#icon") format("svg");
  631. }
  632. .icon {
  633. font-family: "icon" !important;
  634. font-size: 16px;
  635. font-style: normal;
  636. -webkit-font-smoothing: antialiased;
  637. /* -webkit-text-stroke-width: 0.2px; */
  638. -moz-osx-font-smoothing: grayscale;
  639. }