normalize.css 6.3 KB

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