base.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
  2. /**
  3. * 1. Change the default font family in all browsers (opinionated).
  4. * 2. Correct the line height in all browsers.
  5. * 3. Prevent adjustments of font size after orientation changes in
  6. * IE on Windows Phone and in iOS.
  7. */
  8. /* Document
  9. ========================================================================== */
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. }
  15. img{
  16. vertical-align: top;
  17. }
  18. p {
  19. line-height: 24px;
  20. }
  21. html {
  22. font-family: sans-serif;
  23. /* 1 */
  24. line-height: 1.15;
  25. /* 2 */
  26. -ms-text-size-adjust: 100%;
  27. /* 3 */
  28. -webkit-text-size-adjust: 100%;
  29. /* 3 */
  30. }
  31. /* Sections
  32. ========================================================================== */
  33. /**
  34. * Remove the margin in all browsers (opinionated).
  35. */
  36. body {
  37. margin: 0;
  38. }
  39. /**
  40. * Add the correct display in IE 9-.
  41. */
  42. article,
  43. aside,
  44. footer,
  45. header,
  46. nav,
  47. section {
  48. display: block;
  49. }
  50. /**
  51. * Correct the font size and margin on `h1` elements within `section` and
  52. * `article` contexts in Chrome, Firefox, and Safari.
  53. */
  54. h1 {
  55. font-size: 2em;
  56. margin: 0.67em 0;
  57. }
  58. /* Grouping content
  59. ========================================================================== */
  60. /**
  61. * Add the correct display in IE 9-.
  62. * 1. Add the correct display in IE.
  63. */
  64. figcaption,
  65. figure,
  66. main {
  67. /* 1 */
  68. display: block;
  69. }
  70. /**
  71. * Add the correct margin in IE 8.
  72. */
  73. figure {
  74. margin: 1em 40px;
  75. }
  76. /**
  77. * 1. Add the correct box sizing in Firefox.
  78. * 2. Show the overflow in Edge and IE.
  79. */
  80. hr {
  81. box-sizing: content-box;
  82. /* 1 */
  83. height: 0;
  84. /* 1 */
  85. overflow: visible;
  86. /* 2 */
  87. }
  88. /**
  89. * 1. Correct the inheritance and scaling of font size in all browsers.
  90. * 2. Correct the odd `em` font sizing in all browsers.
  91. */
  92. pre {
  93. font-family: monospace, monospace;
  94. /* 1 */
  95. font-size: 1em;
  96. /* 2 */
  97. }
  98. /* Text-level semantics
  99. ========================================================================== */
  100. /**
  101. * 1. Remove the gray background on active links in IE 10.
  102. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
  103. */
  104. a {
  105. background-color: transparent;
  106. /* 1 */
  107. -webkit-text-decoration-skip: objects;
  108. /* 2 */
  109. }
  110. /**
  111. * Remove the outline on focused links when they are also active or hovered
  112. * in all browsers (opinionated).
  113. */
  114. a:active,
  115. a:hover {
  116. outline-width: 0;
  117. }
  118. /**
  119. * 1. Remove the bottom border in Firefox 39-.
  120. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  121. */
  122. abbr[title] {
  123. border-bottom: none;
  124. /* 1 */
  125. text-decoration: underline;
  126. /* 2 */
  127. text-decoration: underline dotted;
  128. /* 2 */
  129. }
  130. /**
  131. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
  132. */
  133. b,
  134. strong {
  135. font-weight: inherit;
  136. }
  137. /**
  138. * Add the correct font weight in Chrome, Edge, and Safari.
  139. */
  140. b,
  141. strong {
  142. font-weight: bolder;
  143. }
  144. /**
  145. * 1. Correct the inheritance and scaling of font size in all browsers.
  146. * 2. Correct the odd `em` font sizing in all browsers.
  147. */
  148. code,
  149. kbd,
  150. samp {
  151. font-family: monospace, monospace;
  152. /* 1 */
  153. font-size: 1em;
  154. /* 2 */
  155. }
  156. /**
  157. * Add the correct font style in Android 4.3-.
  158. */
  159. dfn {
  160. font-style: italic;
  161. }
  162. /**
  163. * Add the correct background and color in IE 9-.
  164. */
  165. mark {
  166. background-color: #ff0;
  167. color: #000;
  168. }
  169. /**
  170. * Add the correct font size in all browsers.
  171. */
  172. small {
  173. font-size: 80%;
  174. }
  175. /**
  176. * Prevent `sub` and `sup` elements from affecting the line height in
  177. * all browsers.
  178. */
  179. sub,
  180. sup {
  181. font-size: 75%;
  182. line-height: 0;
  183. position: relative;
  184. vertical-align: baseline;
  185. }
  186. sub {
  187. bottom: -0.25em;
  188. }
  189. sup {
  190. top: -0.5em;
  191. }
  192. /* Embedded content
  193. ========================================================================== */
  194. /**
  195. * Add the correct display in IE 9-.
  196. */
  197. audio,
  198. video {
  199. display: inline-block;
  200. }
  201. /**
  202. * Add the correct display in iOS 4-7.
  203. */
  204. audio:not([controls]) {
  205. display: none;
  206. height: 0;
  207. }
  208. /**
  209. * Remove the border on images inside links in IE 10-.
  210. */
  211. img {
  212. border-style: none;
  213. }
  214. /**
  215. * Hide the overflow in IE.
  216. */
  217. svg:not(:root) {
  218. overflow: hidden;
  219. }
  220. /* Forms
  221. ========================================================================== */
  222. /**
  223. * 1. Change the font styles in all browsers (opinionated).
  224. * 2. Remove the margin in Firefox and Safari.
  225. */
  226. button,
  227. input,
  228. optgroup,
  229. select,
  230. textarea {
  231. font-family: sans-serif;
  232. /* 1 */
  233. font-size: 100%;
  234. /* 1 */
  235. line-height: 1.15;
  236. /* 1 */
  237. margin: 0;
  238. /* 2 */
  239. }
  240. /**
  241. * Show the overflow in IE.
  242. * 1. Show the overflow in Edge.
  243. */
  244. button,
  245. input {
  246. /* 1 */
  247. overflow: visible;
  248. }
  249. /**
  250. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  251. * 1. Remove the inheritance of text transform in Firefox.
  252. */
  253. button,
  254. select {
  255. /* 1 */
  256. text-transform: none;
  257. }
  258. /**
  259. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  260. * controls in Android 4.
  261. * 2. Correct the inability to style clickable types in iOS and Safari.
  262. */
  263. button,
  264. html [type="button"],
  265. /* 1 */
  266. [type="reset"],
  267. [type="submit"] {
  268. -webkit-appearance: button;
  269. /* 2 */
  270. }
  271. /**
  272. * Remove the inner border and padding in Firefox.
  273. */
  274. button::-moz-focus-inner,
  275. [type="button"]::-moz-focus-inner,
  276. [type="reset"]::-moz-focus-inner,
  277. [type="submit"]::-moz-focus-inner {
  278. border-style: none;
  279. padding: 0;
  280. }
  281. /**
  282. * Restore the focus styles unset by the previous rule.
  283. */
  284. button:-moz-focusring,
  285. [type="button"]:-moz-focusring,
  286. [type="reset"]:-moz-focusring,
  287. [type="submit"]:-moz-focusring {
  288. outline: 1px dotted ButtonText;
  289. }
  290. /**
  291. * Change the border, margin, and padding in all browsers (opinionated).
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em;
  297. }
  298. /**
  299. * 1. Correct the text wrapping in Edge and IE.
  300. * 2. Correct the color inheritance from `fieldset` elements in IE.
  301. * 3. Remove the padding so developers are not caught out when they zero out
  302. * `fieldset` elements in all browsers.
  303. */
  304. legend {
  305. box-sizing: border-box;
  306. /* 1 */
  307. color: inherit;
  308. /* 2 */
  309. display: table;
  310. /* 1 */
  311. max-width: 100%;
  312. /* 1 */
  313. padding: 0;
  314. /* 3 */
  315. white-space: normal;
  316. /* 1 */
  317. }
  318. /**
  319. * 1. Add the correct display in IE 9-.
  320. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
  321. */
  322. progress {
  323. display: inline-block;
  324. /* 1 */
  325. vertical-align: baseline;
  326. /* 2 */
  327. }
  328. /**
  329. * Remove the default vertical scrollbar in IE.
  330. */
  331. textarea {
  332. overflow: auto;
  333. }
  334. /**
  335. * 1. Add the correct box sizing in IE 10-.
  336. * 2. Remove the padding in IE 10-.
  337. */
  338. [type="checkbox"],
  339. [type="radio"] {
  340. box-sizing: border-box;
  341. /* 1 */
  342. padding: 0;
  343. /* 2 */
  344. }
  345. /**
  346. * Correct the cursor style of increment and decrement buttons in Chrome.
  347. */
  348. [type="number"]::-webkit-inner-spin-button,
  349. [type="number"]::-webkit-outer-spin-button {
  350. height: auto;
  351. }
  352. /**
  353. * 1. Correct the odd appearance in Chrome and Safari.
  354. * 2. Correct the outline style in Safari.
  355. */
  356. [type="search"] {
  357. -webkit-appearance: textfield;
  358. /* 1 */
  359. outline-offset: -2px;
  360. /* 2 */
  361. }
  362. /**
  363. * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
  364. */
  365. [type="search"]::-webkit-search-cancel-button,
  366. [type="search"]::-webkit-search-decoration {
  367. -webkit-appearance: none;
  368. }
  369. /**
  370. * 1. Correct the inability to style clickable types in iOS and Safari.
  371. * 2. Change font properties to `inherit` in Safari.
  372. */
  373. ::-webkit-file-upload-button {
  374. -webkit-appearance: button;
  375. /* 1 */
  376. font: inherit;
  377. /* 2 */
  378. }
  379. /* Interactive
  380. ========================================================================== */
  381. /*
  382. * Add the correct display in IE 9-.
  383. * 1. Add the correct display in Edge, IE, and Firefox.
  384. */
  385. details,
  386. /* 1 */
  387. menu {
  388. display: block;
  389. }
  390. /*
  391. * Add the correct display in all browsers.
  392. */
  393. summary {
  394. display: list-item;
  395. }
  396. /* Scripting
  397. ========================================================================== */
  398. /**
  399. * Add the correct display in IE 9-.
  400. */
  401. canvas {
  402. display: inline-block;
  403. }
  404. /**
  405. * Add the correct display in IE.
  406. */
  407. template {
  408. display: none;
  409. }
  410. /* Hidden
  411. ========================================================================== */
  412. /**
  413. * Add the correct display in IE 10-.
  414. */
  415. [hidden] {
  416. display: none;
  417. }