normolize.css 7.2 KB

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