normalize.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. *,
  2. *::before,
  3. *::after {
  4. box-sizing: border-box;
  5. }
  6. /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
  7. li {
  8. list-style-type: none;
  9. margin: 0;
  10. padding: 0;
  11. }
  12. a {
  13. text-decoration: none;
  14. }
  15. /* Document
  16. ========================================================================== */
  17. /**
  18. * 1. Correct the line height in all browsers.
  19. * 2. Prevent adjustments of font size after orientation changes in iOS.
  20. */
  21. html {
  22. line-height: 1.15; /* 1 */
  23. -webkit-text-size-adjust: 100%; /* 2 */
  24. }
  25. /* Sections
  26. ========================================================================== */
  27. /**
  28. * Remove the margin in all browsers.
  29. */
  30. body {
  31. margin: 0;
  32. }
  33. /**
  34. * Render the `main` element consistently in IE.
  35. */
  36. main {
  37. display: block;
  38. }
  39. /**
  40. * Correct the font size and margin on `h1` elements within `section` and
  41. * `article` contexts in Chrome, Firefox, and Safari.
  42. */
  43. h1 {
  44. font-size: 2em;
  45. margin: 0.67em 0;
  46. }
  47. /* Grouping content
  48. ========================================================================== */
  49. /**
  50. * 1. Add the correct box sizing in Firefox.
  51. * 2. Show the overflow in Edge and IE.
  52. */
  53. hr {
  54. box-sizing: content-box; /* 1 */
  55. height: 0; /* 1 */
  56. overflow: visible; /* 2 */
  57. }
  58. /**
  59. * 1. Correct the inheritance and scaling of font size in all browsers.
  60. * 2. Correct the odd `em` font sizing in all browsers.
  61. */
  62. pre {
  63. font-family: monospace, monospace; /* 1 */
  64. font-size: 1em; /* 2 */
  65. }
  66. /* Text-level semantics
  67. ========================================================================== */
  68. /**
  69. * Remove the gray background on active links in IE 10.
  70. */
  71. a {
  72. background-color: transparent;
  73. }
  74. /**
  75. * 1. Remove the bottom border in Chrome 57-
  76. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  77. */
  78. abbr[title] {
  79. border-bottom: none; /* 1 */
  80. text-decoration: underline; /* 2 */
  81. text-decoration: underline dotted; /* 2 */
  82. }
  83. /**
  84. * Add the correct font weight in Chrome, Edge, and Safari.
  85. */
  86. b,
  87. strong {
  88. font-weight: bolder;
  89. }
  90. /**
  91. * 1. Correct the inheritance and scaling of font size in all browsers.
  92. * 2. Correct the odd `em` font sizing in all browsers.
  93. */
  94. code,
  95. kbd,
  96. samp {
  97. font-family: monospace, monospace; /* 1 */
  98. font-size: 1em; /* 2 */
  99. }
  100. /**
  101. * Add the correct font size in all browsers.
  102. */
  103. small {
  104. font-size: 80%;
  105. }
  106. /**
  107. * Prevent `sub` and `sup` elements from affecting the line height in
  108. * all browsers.
  109. */
  110. sub,
  111. sup {
  112. font-size: 75%;
  113. line-height: 0;
  114. position: relative;
  115. vertical-align: baseline;
  116. }
  117. sub {
  118. bottom: -0.25em;
  119. }
  120. sup {
  121. top: -0.5em;
  122. }
  123. /* Embedded content
  124. ========================================================================== */
  125. /**
  126. * Remove the border on images inside links in IE 10.
  127. */
  128. img {
  129. border-style: none;
  130. }
  131. /* Forms
  132. ========================================================================== */
  133. /**
  134. * 1. Change the font styles in all browsers.
  135. * 2. Remove the margin in Firefox and Safari.
  136. */
  137. button,
  138. input,
  139. optgroup,
  140. select,
  141. textarea {
  142. font-family: inherit; /* 1 */
  143. font-size: 100%; /* 1 */
  144. line-height: 1.15; /* 1 */
  145. margin: 0; /* 2 */
  146. }
  147. /**
  148. * Show the overflow in IE.
  149. * 1. Show the overflow in Edge.
  150. */
  151. button,
  152. input { /* 1 */
  153. overflow: visible;
  154. }
  155. /**
  156. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  157. * 1. Remove the inheritance of text transform in Firefox.
  158. */
  159. button,
  160. select { /* 1 */
  161. text-transform: none;
  162. }
  163. /**
  164. * Correct the inability to style clickable types in iOS and Safari.
  165. */
  166. button,
  167. [type="button"],
  168. [type="reset"],
  169. [type="submit"] {
  170. -webkit-appearance: button;
  171. }
  172. /**
  173. * Remove the inner border and padding in Firefox.
  174. */
  175. button::-moz-focus-inner,
  176. [type="button"]::-moz-focus-inner,
  177. [type="reset"]::-moz-focus-inner,
  178. [type="submit"]::-moz-focus-inner {
  179. border-style: none;
  180. padding: 0;
  181. }
  182. /**
  183. * Restore the focus styles unset by the previous rule.
  184. */
  185. button:-moz-focusring,
  186. [type="button"]:-moz-focusring,
  187. [type="reset"]:-moz-focusring,
  188. [type="submit"]:-moz-focusring {
  189. outline: 1px dotted ButtonText;
  190. }
  191. /**
  192. * Correct the padding in Firefox.
  193. */
  194. fieldset {
  195. padding: 0.35em 0.75em 0.625em;
  196. }
  197. /**
  198. * 1. Correct the text wrapping in Edge and IE.
  199. * 2. Correct the color inheritance from `fieldset` elements in IE.
  200. * 3. Remove the padding so developers are not caught out when they zero out
  201. * `fieldset` elements in all browsers.
  202. */
  203. legend {
  204. box-sizing: border-box; /* 1 */
  205. color: inherit; /* 2 */
  206. display: table; /* 1 */
  207. max-width: 100%; /* 1 */
  208. padding: 0; /* 3 */
  209. white-space: normal; /* 1 */
  210. }
  211. /**
  212. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  213. */
  214. progress {
  215. vertical-align: baseline;
  216. }
  217. /**
  218. * Remove the default vertical scrollbar in IE 10+.
  219. */
  220. textarea {
  221. overflow: auto;
  222. }
  223. /**
  224. * 1. Add the correct box sizing in IE 10.
  225. * 2. Remove the padding in IE 10.
  226. */
  227. [type="checkbox"],
  228. [type="radio"] {
  229. box-sizing: border-box; /* 1 */
  230. padding: 0; /* 2 */
  231. }
  232. /**
  233. * Correct the cursor style of increment and decrement buttons in Chrome.
  234. */
  235. [type="number"]::-webkit-inner-spin-button,
  236. [type="number"]::-webkit-outer-spin-button {
  237. height: auto;
  238. }
  239. /**
  240. * 1. Correct the odd appearance in Chrome and Safari.
  241. * 2. Correct the outline style in Safari.
  242. */
  243. [type="search"] {
  244. -webkit-appearance: textfield; /* 1 */
  245. outline-offset: -2px; /* 2 */
  246. }
  247. /**
  248. * Remove the inner padding in Chrome and Safari on macOS.
  249. */
  250. [type="search"]::-webkit-search-decoration {
  251. -webkit-appearance: none;
  252. }
  253. /**
  254. * 1. Correct the inability to style clickable types in iOS and Safari.
  255. * 2. Change font properties to `inherit` in Safari.
  256. */
  257. ::-webkit-file-upload-button {
  258. -webkit-appearance: button; /* 1 */
  259. font: inherit; /* 2 */
  260. }
  261. /* Interactive
  262. ========================================================================== */
  263. /*
  264. * Add the correct display in Edge, IE 10+, and Firefox.
  265. */
  266. details {
  267. display: block;
  268. }
  269. /*
  270. * Add the correct display in all browsers.
  271. */
  272. summary {
  273. display: list-item;
  274. }
  275. /* Misc
  276. ========================================================================== */
  277. /**
  278. * Add the correct display in IE 10+.
  279. */
  280. template {
  281. display: none;
  282. }
  283. /**
  284. * Add the correct display in IE 10.
  285. */
  286. [hidden] {
  287. display: none;
  288. }