_modern-normalize.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
  2. /*
  3. Document
  4. ========
  5. */
  6. /**
  7. Use a better box model (opinionated).
  8. */
  9. *,
  10. ::before,
  11. ::after {
  12. box-sizing: border-box;
  13. }
  14. /**
  15. Use a more readable tab size (opinionated).
  16. */
  17. html {
  18. -moz-tab-size: 4;
  19. tab-size: 4;
  20. }
  21. /**
  22. 1. Correct the line height in all browsers.
  23. 2. Prevent adjustments of font size after orientation changes in iOS.
  24. */
  25. html {
  26. line-height: 1.15; /* 1 */
  27. -webkit-text-size-adjust: 100%; /* 2 */
  28. }
  29. /*
  30. Sections
  31. ========
  32. */
  33. /**
  34. Remove the margin in all browsers.
  35. */
  36. body {
  37. margin: 0;
  38. }
  39. /**
  40. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
  41. */
  42. body {
  43. font-family:
  44. system-ui,
  45. -apple-system, /* Firefox supports this but not yet `system-ui` */
  46. 'Segoe UI',
  47. Roboto,
  48. Helvetica,
  49. Arial,
  50. sans-serif,
  51. 'Apple Color Emoji',
  52. 'Segoe UI Emoji';
  53. }
  54. /*
  55. Grouping content
  56. ================
  57. */
  58. /**
  59. 1. Add the correct height in Firefox.
  60. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  61. */
  62. hr {
  63. height: 0; /* 1 */
  64. color: inherit; /* 2 */
  65. }
  66. /*
  67. Text-level semantics
  68. ====================
  69. */
  70. /**
  71. Add the correct text decoration in Chrome, Edge, and Safari.
  72. */
  73. abbr[title] {
  74. text-decoration: underline dotted;
  75. }
  76. /**
  77. Add the correct font weight in Edge and Safari.
  78. */
  79. b,
  80. strong {
  81. font-weight: bolder;
  82. }
  83. /**
  84. 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
  85. 2. Correct the odd 'em' font sizing in all browsers.
  86. */
  87. code,
  88. kbd,
  89. samp,
  90. pre {
  91. font-family:
  92. ui-monospace,
  93. SFMono-Regular,
  94. Consolas,
  95. 'Liberation Mono',
  96. Menlo,
  97. 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 all browsers.
  108. */
  109. sub,
  110. sup {
  111. font-size: 75%;
  112. line-height: 0;
  113. position: relative;
  114. vertical-align: baseline;
  115. }
  116. sub {
  117. bottom: -0.25em;
  118. }
  119. sup {
  120. top: -0.5em;
  121. }
  122. /*
  123. Tabular data
  124. ============
  125. */
  126. /**
  127. 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  128. 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  129. */
  130. table {
  131. text-indent: 0; /* 1 */
  132. border-color: inherit; /* 2 */
  133. }
  134. /*
  135. Forms
  136. =====
  137. */
  138. /**
  139. 1. Change the font styles in all browsers.
  140. 2. Remove the margin in Firefox and Safari.
  141. */
  142. button,
  143. input,
  144. optgroup,
  145. select,
  146. textarea {
  147. font-family: inherit; /* 1 */
  148. font-size: 100%; /* 1 */
  149. line-height: 1.15; /* 1 */
  150. margin: 0; /* 2 */
  151. }
  152. /**
  153. Remove the inheritance of text transform in Edge and Firefox.
  154. 1. Remove the inheritance of text transform in Firefox.
  155. */
  156. button,
  157. select { /* 1 */
  158. text-transform: none;
  159. }
  160. /**
  161. Correct the inability to style clickable types in iOS and Safari.
  162. */
  163. button,
  164. [type='button'],
  165. [type='reset'],
  166. [type='submit'] {
  167. -webkit-appearance: button;
  168. }
  169. /**
  170. Remove the inner border and padding in Firefox.
  171. */
  172. ::-moz-focus-inner {
  173. border-style: none;
  174. padding: 0;
  175. }
  176. /**
  177. Restore the focus styles unset by the previous rule.
  178. */
  179. :-moz-focusring {
  180. outline: 1px dotted ButtonText;
  181. }
  182. /**
  183. Remove the additional ':invalid' styles in Firefox.
  184. See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
  185. */
  186. :-moz-ui-invalid {
  187. box-shadow: none;
  188. }
  189. /**
  190. Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
  191. */
  192. legend {
  193. padding: 0;
  194. }
  195. /**
  196. Add the correct vertical alignment in Chrome and Firefox.
  197. */
  198. progress {
  199. vertical-align: baseline;
  200. }
  201. /**
  202. Correct the cursor style of increment and decrement buttons in Safari.
  203. */
  204. ::-webkit-inner-spin-button,
  205. ::-webkit-outer-spin-button {
  206. height: auto;
  207. }
  208. /**
  209. 1. Correct the odd appearance in Chrome and Safari.
  210. 2. Correct the outline style in Safari.
  211. */
  212. [type='search'] {
  213. -webkit-appearance: textfield; /* 1 */
  214. outline-offset: -2px; /* 2 */
  215. }
  216. /**
  217. Remove the inner padding in Chrome and Safari on macOS.
  218. */
  219. ::-webkit-search-decoration {
  220. -webkit-appearance: none;
  221. }
  222. /**
  223. 1. Correct the inability to style clickable types in iOS and Safari.
  224. 2. Change font properties to 'inherit' in Safari.
  225. */
  226. ::-webkit-file-upload-button {
  227. -webkit-appearance: button; /* 1 */
  228. font: inherit; /* 2 */
  229. }
  230. /*
  231. Interactive
  232. ===========
  233. */
  234. /*
  235. Add the correct display in Chrome and Safari.
  236. */
  237. summary {
  238. display: list-item;
  239. }