normalize.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. /* Document
  2. * ========================================================================== */
  3. /**
  4. * 1. Correct the line height in all browsers.
  5. * 2. Prevent adjustments of font size after orientation changes in
  6. * IE on Windows Phone and in iOS.
  7. */
  8. html {
  9. line-height: 1.15; /* 1 */
  10. -ms-text-size-adjust: 100%; /* 2 */
  11. -webkit-text-size-adjust: 100%; /* 2 */
  12. }
  13. /* Sections
  14. * ========================================================================== */
  15. /**
  16. * Correct the font size and margin on `h1` elements within `section` and
  17. * `article` contexts in Chrome, Edge, Firefox, and Safari.
  18. */
  19. h1 {
  20. font-size: 2em;
  21. margin: 0.67em 0;
  22. }
  23. /* Grouping content
  24. * ========================================================================== */
  25. /**
  26. * Remove the margin on nested lists in Chrome, Edge, IE, and Safari.
  27. */
  28. dl dl,
  29. dl ol,
  30. dl ul,
  31. ol dl,
  32. ul dl {
  33. margin: 0;
  34. }
  35. /**
  36. * Remove the margin on nested lists in Edge 18- and IE.
  37. */
  38. ol ol,
  39. ol ul,
  40. ul ol,
  41. ul ul {
  42. margin: 0;
  43. }
  44. /**
  45. * 1. Add the correct box sizing in Firefox.
  46. * 2. Correct the inheritance of border color in Firefox.
  47. * 3. Show the overflow in Edge 18- and IE.
  48. */
  49. hr {
  50. box-sizing: content-box; /* 1 */
  51. color: inherit; /* 2 */
  52. height: 0; /* 1 */
  53. overflow: visible; /* 3 */
  54. }
  55. /**
  56. * Add the correct display in IE.
  57. */
  58. main {
  59. display: block;
  60. }
  61. /**
  62. * 1. Correct the inheritance and scaling of font size in all browsers.
  63. * 2. Correct the odd `em` font sizing in all browsers.
  64. */
  65. pre {
  66. font-family: monospace, monospace; /* 1 */
  67. font-size: 1em; /* 2 */
  68. }
  69. /* Text-level semantics
  70. * ========================================================================== */
  71. /**
  72. * Remove the gray background on active links in IE 10.
  73. */
  74. a {
  75. background-color: transparent;
  76. }
  77. /**
  78. * Add the correct text decoration in Edge 18-, IE, and Safari.
  79. */
  80. abbr[title] {
  81. text-decoration: underline;
  82. text-decoration: underline dotted;
  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. /* Embedded content
  108. * ========================================================================== */
  109. /**
  110. * Add the correct display in IE 9-.
  111. */
  112. audio,
  113. video {
  114. display: inline-block;
  115. }
  116. /**
  117. * Add the correct display in iOS 4-7.
  118. */
  119. audio:not([controls]) {
  120. display: none;
  121. height: 0;
  122. }
  123. /**
  124. * Remove the border on images within links in IE 10-.
  125. */
  126. img {
  127. border-style: none;
  128. }
  129. /**
  130. * Hide the overflow in IE.
  131. */
  132. svg:not(:root) {
  133. overflow: hidden;
  134. }
  135. /* Tabular data
  136. * ========================================================================== */
  137. /**
  138. * 1. Correct table border color inheritance in all Chrome, Edge, and Safari.
  139. * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
  140. */
  141. table {
  142. border-color: inherit; /* 1 */
  143. text-indent: 0; /* 2 */
  144. }
  145. /* Forms
  146. * ========================================================================== */
  147. /**
  148. * Remove the margin on controls in Safari.
  149. */
  150. button,
  151. input,
  152. select {
  153. margin: 0;
  154. }
  155. /**
  156. * 1. Show the overflow in IE.
  157. * 2. Remove the inheritance of text transform in Edge 18-, Firefox, and IE.
  158. */
  159. button {
  160. overflow: visible; /* 1 */
  161. text-transform: none; /* 2 */
  162. }
  163. /**
  164. * Correct the inability to style buttons in iOS and Safari.
  165. */
  166. button,
  167. [type="button"],
  168. [type="reset"],
  169. [type="submit"] {
  170. -webkit-appearance: button;
  171. }
  172. /**
  173. * Correct the padding in Firefox.
  174. */
  175. fieldset {
  176. padding: 0.35em 0.75em 0.625em;
  177. }
  178. /**
  179. * Show the overflow in Edge 18- and IE.
  180. */
  181. input {
  182. overflow: visible;
  183. }
  184. /**
  185. * 1. Correct the text wrapping in Edge 18- and IE.
  186. * 2. Correct the color inheritance from `fieldset` elements in IE.
  187. */
  188. legend {
  189. box-sizing: border-box; /* 1 */
  190. color: inherit; /* 2 */
  191. display: table; /* 1 */
  192. max-width: 100%; /* 1 */
  193. white-space: normal; /* 1 */
  194. }
  195. /**
  196. * 1. Add the correct display in Edge 18- and IE.
  197. * 2. Add the correct vertical alignment in Chrome, Edge, and Firefox.
  198. */
  199. progress {
  200. display: inline-block; /* 1 */
  201. vertical-align: baseline; /* 2 */
  202. }
  203. /**
  204. * Remove the inheritance of text transform in Firefox.
  205. */
  206. select {
  207. text-transform: none;
  208. }
  209. /**
  210. * 1. Remove the margin in Firefox and Safari.
  211. * 2. Remove the default vertical scrollbar in IE.
  212. */
  213. textarea {
  214. margin: 0; /* 1 */
  215. overflow: auto; /* 2 */
  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. * 1. Correct the odd appearance in Chrome, Edge, and Safari.
  228. * 2. Correct the outline style in Safari.
  229. */
  230. [type="search"] {
  231. -webkit-appearance: textfield; /* 1 */
  232. outline-offset: -2px; /* 2 */
  233. }
  234. /**
  235. * Correct the cursor style of increment and decrement buttons in Safari.
  236. */
  237. ::-webkit-inner-spin-button,
  238. ::-webkit-outer-spin-button {
  239. height: auto;
  240. }
  241. /**
  242. * Correct the text style of placeholders in Chrome, Edge, and Safari.
  243. */
  244. ::-webkit-input-placeholder {
  245. color: inherit;
  246. opacity: 0.54;
  247. }
  248. /**
  249. * Remove the inner padding in Chrome, Edge, and Safari on macOS.
  250. */
  251. ::-webkit-search-decoration {
  252. -webkit-appearance: none;
  253. }
  254. /**
  255. * 1. Correct the inability to style upload buttons 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. /**
  263. * Remove the inner border and padding of focus outlines in Firefox.
  264. */
  265. ::-moz-focus-inner {
  266. border-style: none;
  267. padding: 0;
  268. }
  269. /**
  270. * Restore the focus outline styles unset by the previous rule in Firefox.
  271. */
  272. :-moz-focusring {
  273. outline: 1px dotted ButtonText;
  274. }
  275. /**
  276. * Remove the additional :invalid styles in Firefox.
  277. */
  278. :-moz-ui-invalid {
  279. box-shadow: none;
  280. }
  281. /* Interactive
  282. * ========================================================================== */
  283. /*
  284. * Add the correct display in Edge 18- and IE.
  285. */
  286. details {
  287. display: block;
  288. }
  289. /*
  290. * Add the correct styles in Edge 18-, IE, and Safari.
  291. */
  292. dialog {
  293. background-color: white;
  294. border: solid;
  295. color: black;
  296. display: block;
  297. height: -moz-fit-content;
  298. height: -webkit-fit-content;
  299. height: fit-content;
  300. left: 0;
  301. margin: auto;
  302. padding: 1em;
  303. position: absolute;
  304. right: 0;
  305. width: -moz-fit-content;
  306. width: -webkit-fit-content;
  307. width: fit-content;
  308. }
  309. dialog:not([open]) {
  310. display: none;
  311. }
  312. /*
  313. * Add the correct display in all browsers.
  314. */
  315. summary {
  316. display: list-item;
  317. }
  318. /* Scripting
  319. * ========================================================================== */
  320. /**
  321. * Add the correct display in IE 9-.
  322. */
  323. canvas {
  324. display: inline-block;
  325. }
  326. /**
  327. * Add the correct display in IE.
  328. */
  329. template {
  330. display: none;
  331. }
  332. /* User interaction
  333. * ========================================================================== */
  334. /**
  335. * Add the correct display in IE 10-.
  336. */
  337. [hidden] {
  338. display: none;
  339. }