normalize.styl 5.9 KB

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