_reset.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. /*! normalize.css v3.0.0 | MIT License | git.io/normalize */
  2. /**
  3. * 1. Set default font family to sans-serif.
  4. * 2. Prevent iOS text size adjust after orientation change, without disabling
  5. * user zoom.
  6. */
  7. html {
  8. font-family: sans-serif; /* 1 */
  9. -ms-text-size-adjust: 100%; /* 2 */
  10. -webkit-text-size-adjust: 100%; /* 2 */
  11. }
  12. /**
  13. * Remove default margin.
  14. */
  15. body {
  16. margin: 0;
  17. }
  18. /* HTML5 display definitions
  19. ========================================================================== */
  20. /**
  21. * Correct `block` display not defined in IE 8/9.
  22. */
  23. article,
  24. aside,
  25. details,
  26. figcaption,
  27. figure,
  28. footer,
  29. header,
  30. hgroup,
  31. main,
  32. nav,
  33. section,
  34. summary {
  35. display: block;
  36. }
  37. /**
  38. * 1. Correct `inline-block` display not defined in IE 8/9.
  39. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  40. */
  41. audio,
  42. canvas,
  43. progress,
  44. video {
  45. display: inline-block; /* 1 */
  46. vertical-align: baseline; /* 2 */
  47. }
  48. /**
  49. * Prevent modern browsers from displaying `audio` without controls.
  50. * Remove excess height in iOS 5 devices.
  51. */
  52. audio:not([controls]) {
  53. display: none;
  54. height: 0;
  55. }
  56. /**
  57. * Address `[hidden]` styling not present in IE 8/9.
  58. * Hide the `template` element in IE, Safari, and Firefox < 22.
  59. */
  60. [hidden],
  61. template {
  62. display: none;
  63. }
  64. /* Links
  65. ========================================================================== */
  66. /**
  67. * Remove the gray background color from active links in IE 10.
  68. */
  69. a {
  70. background: transparent;
  71. }
  72. /**
  73. * Improve readability when focused and also mouse hovered in all browsers.
  74. */
  75. a:active,
  76. a:hover {
  77. outline: 0;
  78. }
  79. /* Text-level semantics
  80. ========================================================================== */
  81. /**
  82. * Address styling not present in IE 8/9, Safari 5, and Chrome.
  83. */
  84. abbr[title] {
  85. border-bottom: 1px dotted;
  86. }
  87. /**
  88. * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
  89. */
  90. b,
  91. strong {
  92. font-weight: bold;
  93. }
  94. /**
  95. * Address styling not present in Safari 5 and Chrome.
  96. */
  97. dfn {
  98. font-style: italic;
  99. }
  100. /**
  101. * Address variable `h1` font-size and margin within `section` and `article`
  102. * contexts in Firefox 4+, Safari 5, and Chrome.
  103. */
  104. h1 {
  105. font-size: 2em;
  106. margin: 0.67em 0;
  107. }
  108. /**
  109. * Address styling not present in IE 8/9.
  110. */
  111. mark {
  112. background: #ff0;
  113. color: #000;
  114. }
  115. /**
  116. * Address inconsistent and variable font size in all browsers.
  117. */
  118. small {
  119. font-size: 80%;
  120. }
  121. /**
  122. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  123. */
  124. sub,
  125. sup {
  126. font-size: 75%;
  127. line-height: 0;
  128. position: relative;
  129. vertical-align: baseline;
  130. }
  131. sup {
  132. top: -0.5em;
  133. }
  134. sub {
  135. bottom: -0.25em;
  136. }
  137. /* Embedded content
  138. ========================================================================== */
  139. /**
  140. * Remove border when inside `a` element in IE 8/9.
  141. */
  142. img {
  143. border: 0;
  144. }
  145. /**
  146. * Correct overflow displayed oddly in IE 9.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden;
  150. }
  151. /* Grouping content
  152. ========================================================================== */
  153. /**
  154. * Address margin not present in IE 8/9 and Safari 5.
  155. */
  156. figure {
  157. margin: 1em 40px;
  158. }
  159. /**
  160. * Address differences between Firefox and other browsers.
  161. */
  162. hr {
  163. -moz-box-sizing: content-box;
  164. box-sizing: content-box;
  165. height: 0;
  166. }
  167. /**
  168. * Contain overflow in all browsers.
  169. */
  170. pre {
  171. overflow: auto;
  172. }
  173. /**
  174. * Address odd `em`-unit font size rendering in all browsers.
  175. */
  176. code,
  177. kbd,
  178. pre,
  179. samp {
  180. font-family: monospace, monospace;
  181. font-size: 1em;
  182. }
  183. /* Forms
  184. ========================================================================== */
  185. /**
  186. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  187. * styling of `select`, unless a `border` property is set.
  188. */
  189. /**
  190. * 1. Correct color not being inherited.
  191. * Known issue: affects color of disabled elements.
  192. * 2. Correct font properties not being inherited.
  193. * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
  194. */
  195. button,
  196. input,
  197. optgroup,
  198. select,
  199. textarea {
  200. color: inherit; /* 1 */
  201. font: inherit; /* 2 */
  202. margin: 0; /* 3 */
  203. }
  204. /**
  205. * Address `overflow` set to `hidden` in IE 8/9/10.
  206. */
  207. button {
  208. overflow: visible;
  209. }
  210. /**
  211. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  212. * All other form control elements do not inherit `text-transform` values.
  213. * Correct `button` style inheritance in Firefox, IE 8+, and Opera
  214. * Correct `select` style inheritance in Firefox.
  215. */
  216. button,
  217. select {
  218. text-transform: none;
  219. }
  220. /**
  221. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  222. * and `video` controls.
  223. * 2. Correct inability to style clickable `input` types in iOS.
  224. * 3. Improve usability and consistency of cursor style between image-type
  225. * `input` and others.
  226. */
  227. button,
  228. html input[type="button"], /* 1 */
  229. input[type="reset"],
  230. input[type="submit"] {
  231. -webkit-appearance: button; /* 2 */
  232. cursor: pointer; /* 3 */
  233. }
  234. /**
  235. * Re-set default cursor for disabled elements.
  236. */
  237. button[disabled],
  238. html input[disabled] {
  239. cursor: default;
  240. }
  241. /**
  242. * Remove inner padding and border in Firefox 4+.
  243. */
  244. button::-moz-focus-inner,
  245. input::-moz-focus-inner {
  246. border: 0;
  247. padding: 0;
  248. }
  249. /**
  250. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  251. * the UA stylesheet.
  252. */
  253. input {
  254. line-height: normal;
  255. }
  256. /**
  257. * It's recommended that you don't attempt to style these elements.
  258. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  259. *
  260. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  261. * 2. Remove excess padding in IE 8/9/10.
  262. */
  263. input[type="checkbox"],
  264. input[type="radio"] {
  265. box-sizing: border-box; /* 1 */
  266. padding: 0; /* 2 */
  267. }
  268. /**
  269. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  270. * `font-size` values of the `input`, it causes the cursor style of the
  271. * decrement button to change from `default` to `text`.
  272. */
  273. input[type="number"]::-webkit-inner-spin-button,
  274. input[type="number"]::-webkit-outer-spin-button {
  275. height: auto;
  276. }
  277. /**
  278. * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
  279. * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
  280. * (include `-moz` to future-proof).
  281. */
  282. input[type="search"] {
  283. -webkit-appearance: textfield; /* 1 */
  284. -moz-box-sizing: content-box;
  285. -webkit-box-sizing: content-box; /* 2 */
  286. box-sizing: content-box;
  287. }
  288. /**
  289. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  290. * Safari (but not Chrome) clips the cancel button when the search input has
  291. * padding (and `textfield` appearance).
  292. */
  293. input[type="search"]::-webkit-search-cancel-button,
  294. input[type="search"]::-webkit-search-decoration {
  295. -webkit-appearance: none;
  296. }
  297. /**
  298. * Define consistent border, margin, and padding.
  299. */
  300. fieldset {
  301. border: 1px solid #c0c0c0;
  302. margin: 0 2px;
  303. padding: 0.35em 0.625em 0.75em;
  304. }
  305. /**
  306. * 1. Correct `color` not being inherited in IE 8/9.
  307. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  308. */
  309. legend {
  310. border: 0; /* 1 */
  311. padding: 0; /* 2 */
  312. }
  313. /**
  314. * Remove default vertical scrollbar in IE 8/9.
  315. */
  316. textarea {
  317. overflow: auto;
  318. }
  319. /**
  320. * Don't inherit the `font-weight` (applied by a rule above).
  321. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  322. */
  323. optgroup {
  324. font-weight: bold;
  325. }
  326. /* Tables
  327. ========================================================================== */
  328. /**
  329. * Remove most spacing between table cells.
  330. */
  331. table {
  332. border-collapse: collapse;
  333. border-spacing: 0;
  334. }
  335. td,
  336. th {
  337. padding: 0;
  338. }