normalize.css 6.9 KB

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