_normalize.scss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. /*! normalize.css 2012-07-07T09:50 UTC - http://github.com/necolas/normalize.css */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /*
  6. * Corrects `block` display not defined in IE6/7/8/9 & FF3.
  7. */
  8. article,
  9. aside,
  10. details,
  11. figcaption,
  12. figure,
  13. footer,
  14. header,
  15. hgroup,
  16. nav,
  17. section,
  18. summary {
  19. display: block;
  20. }
  21. /*
  22. * Corrects `inline-block` display not defined in IE6/7/8/9 & FF3.
  23. */
  24. audio,
  25. canvas,
  26. video {
  27. display: inline-block;
  28. *display: inline;
  29. *zoom: 1;
  30. }
  31. /*
  32. * Prevents modern browsers from displaying `audio` without controls.
  33. * Remove excess height in iOS5 devices.
  34. */
  35. audio:not([controls]) {
  36. display: none;
  37. height: 0;
  38. }
  39. /*
  40. * Addresses styling for `hidden` attribute not present in IE7/8/9, FF3, S4.
  41. * Known issue: no IE6 support.
  42. */
  43. [hidden] {
  44. display: none;
  45. }
  46. /* ==========================================================================
  47. Base
  48. ========================================================================== */
  49. /*
  50. * 1. Corrects text resizing oddly in IE6/7 when body `font-size` is set using
  51. * `em` units.
  52. * 2. Prevents iOS text size adjust after orientation change, without disabling
  53. * user zoom.
  54. */
  55. html {
  56. font-size: 100%; /* 1 */
  57. -webkit-text-size-adjust: 100%; /* 2 */
  58. -ms-text-size-adjust: 100%; /* 2 */
  59. }
  60. /*
  61. * Addresses `font-family` inconsistency between `textarea` and other form
  62. * elements.
  63. */
  64. html,
  65. button,
  66. input,
  67. select,
  68. textarea {
  69. font-family: sans-serif;
  70. }
  71. /*
  72. * Addresses margins handled incorrectly in IE6/7.
  73. */
  74. body {
  75. margin: 0;
  76. }
  77. /* ==========================================================================
  78. Links
  79. ========================================================================== */
  80. /*
  81. * Addresses `outline` inconsistency between Chrome and other browsers.
  82. */
  83. a:focus {
  84. outline: thin dotted;
  85. }
  86. /*
  87. * Improves readability when focused and also mouse hovered in all browsers.
  88. * people.opera.com/patrickl/experiments/keyboard/test
  89. */
  90. a:active,
  91. a:hover {
  92. outline: 0;
  93. }
  94. /* ==========================================================================
  95. Typography
  96. ========================================================================== */
  97. /*
  98. * Addresses font sizes and margins set differently in IE6/7.
  99. * Addresses font sizes within `section` and `article` in FF4+, Chrome, S5.
  100. */
  101. h1 {
  102. font-size: 2em;
  103. margin: 0.67em 0;
  104. }
  105. h2 {
  106. font-size: 1.5em;
  107. margin: 0.83em 0;
  108. }
  109. h3 {
  110. font-size: 1.17em;
  111. margin: 1em 0;
  112. }
  113. h4 {
  114. font-size: 1em;
  115. margin: 1.33em 0;
  116. }
  117. h5 {
  118. font-size: 0.83em;
  119. margin: 1.67em 0;
  120. }
  121. h6 {
  122. font-size: 0.75em;
  123. margin: 2.33em 0;
  124. }
  125. /*
  126. * Addresses styling not present in IE7/8/9, S5, Chrome.
  127. */
  128. abbr[title] {
  129. border-bottom: 1px dotted;
  130. }
  131. /*
  132. * Addresses style set to `bolder` in FF3+, S4/5, Chrome.
  133. */
  134. b,
  135. strong {
  136. font-weight: bold;
  137. }
  138. blockquote {
  139. margin: 1em 40px;
  140. }
  141. /*
  142. * Addresses styling not present in S5, Chrome.
  143. */
  144. dfn {
  145. font-style: italic;
  146. }
  147. /*
  148. * Addresses styling not present in IE6/7/8/9.
  149. */
  150. mark {
  151. background: #ff0;
  152. color: #000;
  153. }
  154. /*
  155. * Addresses margins set differently in IE6/7.
  156. */
  157. p,
  158. pre {
  159. margin: 1em 0;
  160. }
  161. /*
  162. * Corrects font family set oddly in IE6, S4/5, Chrome.
  163. * en.wikipedia.org/wiki/User:Davidgothberg/Test59
  164. */
  165. code,
  166. kbd,
  167. pre,
  168. samp {
  169. font-family: monospace, serif;
  170. _font-family: 'courier new', monospace;
  171. font-size: 1em;
  172. }
  173. /*
  174. * Improves readability of pre-formatted text in all browsers.
  175. */
  176. pre {
  177. white-space: pre;
  178. white-space: pre-wrap;
  179. word-wrap: break-word;
  180. }
  181. /*
  182. * Addresses CSS quotes not supported in IE6/7.
  183. */
  184. q {
  185. quotes: none;
  186. }
  187. /*
  188. * Addresses `quotes` property not supported in S4.
  189. */
  190. q:before,
  191. q:after {
  192. content: '';
  193. content: none;
  194. }
  195. small {
  196. font-size: 75%;
  197. }
  198. /*
  199. * Prevents `sub` and `sup` affecting `line-height` in all browsers.
  200. * gist.github.com/413930
  201. */
  202. sub,
  203. sup {
  204. font-size: 75%;
  205. line-height: 0;
  206. position: relative;
  207. vertical-align: baseline;
  208. }
  209. sup {
  210. top: -0.5em;
  211. }
  212. sub {
  213. bottom: -0.25em;
  214. }
  215. /* ==========================================================================
  216. Lists
  217. ========================================================================== */
  218. /*
  219. * Addresses margins set differently in IE6/7.
  220. */
  221. dl,
  222. menu,
  223. ol,
  224. ul {
  225. margin: 1em 0;
  226. }
  227. dd {
  228. margin: 0 0 0 40px;
  229. }
  230. /*
  231. * Addresses paddings set differently in IE6/7.
  232. */
  233. menu,
  234. ol,
  235. ul {
  236. padding: 0 0 0 40px;
  237. }
  238. /*
  239. * Corrects list images handled incorrectly in IE7.
  240. */
  241. nav ul,
  242. nav ol {
  243. list-style: none;
  244. list-style-image: none;
  245. }
  246. /* ==========================================================================
  247. Embedded content
  248. ========================================================================== */
  249. /*
  250. * 1. Removes border when inside `a` element in IE6/7/8/9, FF3.
  251. * 2. Improves image quality when scaled in IE7.
  252. * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  253. */
  254. img {
  255. border: 0; /* 1 */
  256. -ms-interpolation-mode: bicubic; /* 2 */
  257. }
  258. /*
  259. * Corrects overflow displayed oddly in IE9.
  260. */
  261. svg:not(:root) {
  262. overflow: hidden;
  263. }
  264. /* ==========================================================================
  265. Figures
  266. ========================================================================== */
  267. /*
  268. * Addresses margin not present in IE6/7/8/9, S5, O11.
  269. */
  270. figure {
  271. margin: 0;
  272. }
  273. /* ==========================================================================
  274. Forms
  275. ========================================================================== */
  276. /*
  277. * Corrects margin displayed oddly in IE6/7.
  278. */
  279. form {
  280. margin: 0;
  281. }
  282. /*
  283. * Define consistent border, margin, and padding.
  284. */
  285. fieldset {
  286. border: 1px solid #c0c0c0;
  287. margin: 0 2px;
  288. padding: 0.35em 0.625em 0.75em;
  289. }
  290. /*
  291. * 1. Corrects color not being inherited in IE6/7/8/9.
  292. * 2. Corrects text not wrapping in FF3.
  293. * 3. Corrects alignment displayed oddly in IE6/7.
  294. */
  295. legend {
  296. border: 0; /* 1 */
  297. padding: 0;
  298. white-space: normal; /* 2 */
  299. *margin-left: -7px; /* 3 */
  300. }
  301. /*
  302. * 1. Corrects font size not being inherited in all browsers.
  303. * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome.
  304. * 3. Improves appearance and consistency in all browsers.
  305. */
  306. button,
  307. input,
  308. select,
  309. textarea {
  310. font-size: 100%; /* 1 */
  311. margin: 0; /* 2 */
  312. vertical-align: baseline; /* 3 */
  313. *vertical-align: middle; /* 3 */
  314. }
  315. /*
  316. * Addresses FF3/4 setting `line-height` on `input` using `!important` in the
  317. * UA stylesheet.
  318. */
  319. button,
  320. input {
  321. line-height: normal;
  322. }
  323. /*
  324. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  325. * and `video` controls.
  326. * 2. Corrects inability to style clickable `input` types in iOS.
  327. * 3. Improves usability and consistency of cursor style between image-type
  328. * `input` and others.
  329. * 4. Removes inner spacing in IE7 without affecting normal text inputs.
  330. * Known issue: inner spacing remains in IE6.
  331. */
  332. button,
  333. html input[type="button"], /* 1 */
  334. input[type="reset"],
  335. input[type="submit"] {
  336. -webkit-appearance: button; /* 2 */
  337. cursor: pointer; /* 3 */
  338. *overflow: visible; /* 4 */
  339. }
  340. /*
  341. * Re-set default cursor for disabled elements.
  342. */
  343. button[disabled],
  344. input[disabled] {
  345. cursor: default;
  346. }
  347. /*
  348. * 1. Addresses box sizing set to content-box in IE8/9.
  349. * 2. Removes excess padding in IE8/9.
  350. * 3. Removes excess padding in IE7.
  351. * Known issue: excess padding remains in IE6.
  352. */
  353. input[type="checkbox"],
  354. input[type="radio"] {
  355. box-sizing: border-box; /* 1 */
  356. padding: 0; /* 2 */
  357. *height: 13px; /* 3 */
  358. *width: 13px; /* 3 */
  359. }
  360. /*
  361. * 1. Addresses `appearance` set to `searchfield` in S5, Chrome.
  362. * 2. Addresses `box-sizing` set to `border-box` in S5, Chrome (include `-moz`
  363. * to future-proof).
  364. */
  365. input[type="search"] {
  366. -webkit-appearance: textfield; /* 1 */
  367. -moz-box-sizing: content-box;
  368. -webkit-box-sizing: content-box; /* 2 */
  369. box-sizing: content-box;
  370. }
  371. /*
  372. * Removes inner padding and search cancel button in S5, Chrome on OS X.
  373. */
  374. input[type="search"]::-webkit-search-cancel-button,
  375. input[type="search"]::-webkit-search-decoration {
  376. -webkit-appearance: none;
  377. }
  378. /*
  379. * Removes inner padding and border in FF3+.
  380. */
  381. button::-moz-focus-inner,
  382. input::-moz-focus-inner {
  383. border: 0;
  384. padding: 0;
  385. }
  386. /*
  387. * 1. Removes default vertical scrollbar in IE6/7/8/9.
  388. * 2. Improves readability and alignment in all browsers.
  389. */
  390. textarea {
  391. overflow: auto; /* 1 */
  392. vertical-align: top; /* 2 */
  393. }
  394. /* ==========================================================================
  395. Tables
  396. ========================================================================== */
  397. /*
  398. * Remove most spacing between table cells.
  399. */
  400. table {
  401. border-collapse: collapse;
  402. border-spacing: 0;
  403. }