_normalize.scss 7.4 KB

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