_normalize.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /* normalize.css 2012-07-07T09:50 UTC - http://github.com/necolas/normalize.css */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /**
  6. * Correct `block` display not defined in IE 8/9.
  7. */
  8. article,
  9. aside,
  10. details,
  11. figcaption,
  12. figure,
  13. footer,
  14. header,
  15. hgroup,
  16. main,
  17. nav,
  18. section,
  19. summary {
  20. display: block;
  21. }
  22. /**
  23. * Correct `inline-block` display not defined in IE 8/9.
  24. */
  25. audio,
  26. canvas,
  27. video {
  28. display: inline-block;
  29. }
  30. /**
  31. * Prevent modern browsers from displaying `audio` without controls.
  32. * Remove excess height in iOS 5 devices.
  33. */
  34. audio:not([controls]) {
  35. display: none;
  36. height: 0;
  37. }
  38. /**
  39. * Address `[hidden]` styling not present in IE 8/9.
  40. * Hide the `template` element in IE, Safari, and Firefox < 22.
  41. */
  42. [hidden],
  43. template {
  44. display: none;
  45. }
  46. /* ==========================================================================
  47. Base
  48. ========================================================================== */
  49. /**
  50. * 1. Set default font family to sans-serif.
  51. * 2. Prevent iOS text size adjust after orientation change, without disabling
  52. * user zoom.
  53. */
  54. html {
  55. font-family: sans-serif; /* 1 */
  56. -ms-text-size-adjust: 100%; /* 2 */
  57. -webkit-text-size-adjust: 100%; /* 2 */
  58. }
  59. /**
  60. * Remove default margin.
  61. */
  62. body {
  63. margin: 0;
  64. }
  65. /* ==========================================================================
  66. Links
  67. ========================================================================== */
  68. /**
  69. * Remove the gray background color from active links in IE 10.
  70. */
  71. a {
  72. background: transparent;
  73. }
  74. /**
  75. * Address `outline` inconsistency between Chrome and other browsers.
  76. */
  77. a:focus {
  78. outline: thin dotted;
  79. }
  80. /**
  81. * Improve readability when focused and also mouse hovered in all browsers.
  82. */
  83. a:active,
  84. a:hover {
  85. outline: 0;
  86. }
  87. /* ==========================================================================
  88. Typography
  89. ========================================================================== */
  90. /**
  91. * Address variable `h1` font-size and margin within `section` and `article`
  92. * contexts in Firefox 4+, Safari 5, and Chrome.
  93. */
  94. h1 {
  95. font-size: 2em;
  96. margin: 0.67em 0;
  97. }
  98. /**
  99. * Address styling not present in IE 8/9, Safari 5, and Chrome.
  100. */
  101. abbr[title] {
  102. border-bottom: 1px dotted;
  103. }
  104. /**
  105. * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
  106. */
  107. b,
  108. strong,
  109. .strong {
  110. font-weight: bold;
  111. }
  112. /**
  113. * Address styling not present in Safari 5 and Chrome.
  114. */
  115. dfn,
  116. em,
  117. .em {
  118. font-style: italic;
  119. }
  120. /**
  121. * Address differences between Firefox and other browsers.
  122. */
  123. hr {
  124. -moz-box-sizing: content-box;
  125. box-sizing: content-box;
  126. height: 0;
  127. }
  128. /*
  129. * proper formatting (http://blog.fontdeck.com/post/9037028497/hyphens)
  130. */
  131. p {
  132. -webkit-hyphens: auto;
  133. -epub-hyphens: auto;
  134. -moz-hyphens: auto;
  135. hyphens: auto;
  136. }
  137. /*
  138. * Addresses margins set differently in IE6/7.
  139. */
  140. pre {
  141. margin: 0;
  142. }
  143. /**
  144. * Correct font family set oddly in Safari 5 and Chrome.
  145. */
  146. code,
  147. kbd,
  148. pre,
  149. samp {
  150. font-family: monospace, serif;
  151. font-size: 1em;
  152. }
  153. /**
  154. * Improve readability of pre-formatted text in all browsers.
  155. */
  156. pre {
  157. white-space: pre-wrap;
  158. }
  159. /**
  160. * Set consistent quote types.
  161. */
  162. q {
  163. quotes: "\201C" "\201D" "\2018" "\2019";
  164. }
  165. /**
  166. * Address inconsistent and variable font size in all browsers.
  167. */
  168. q:before,
  169. q:after {
  170. content: '';
  171. content: none;
  172. }
  173. small, .small {
  174. font-size: 75%;
  175. }
  176. /**
  177. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  178. */
  179. sub,
  180. sup {
  181. font-size: 75%;
  182. line-height: 0;
  183. position: relative;
  184. vertical-align: baseline;
  185. }
  186. sup {
  187. top: -0.5em;
  188. }
  189. sub {
  190. bottom: -0.25em;
  191. }
  192. /* ==========================================================================
  193. Lists
  194. ========================================================================== */
  195. /*
  196. * Addresses margins set differently in IE6/7.
  197. */
  198. dl,
  199. menu,
  200. ol,
  201. ul {
  202. margin: 1em 0;
  203. }
  204. dd {
  205. margin: 0;
  206. }
  207. /*
  208. * Addresses paddings set differently in IE6/7.
  209. */
  210. menu {
  211. padding: 0 0 0 40px;
  212. }
  213. ol,
  214. ul {
  215. padding: 0;
  216. list-style-type: none;
  217. }
  218. /*
  219. * Corrects list images handled incorrectly in IE7.
  220. */
  221. nav ul,
  222. nav ol {
  223. list-style: none;
  224. list-style-image: none;
  225. }
  226. /* ==========================================================================
  227. Embedded content
  228. ========================================================================== */
  229. /**
  230. * Remove border when inside `a` element in IE 8/9.
  231. */
  232. img {
  233. border: 0;
  234. }
  235. /**
  236. * Correct overflow displayed oddly in IE 9.
  237. */
  238. svg:not(:root) {
  239. overflow: hidden;
  240. }
  241. /* ==========================================================================
  242. Figures
  243. ========================================================================== */
  244. /**
  245. * Address margin not present in IE 8/9 and Safari 5.
  246. */
  247. figure {
  248. margin: 0;
  249. }
  250. /* ==========================================================================
  251. Forms
  252. ========================================================================== */
  253. /**
  254. * Define consistent border, margin, and padding.
  255. */
  256. fieldset {
  257. border: 1px solid #c0c0c0;
  258. margin: 0 2px;
  259. padding: 0.35em 0.625em 0.75em;
  260. }
  261. /**
  262. * 1. Correct `color` not being inherited in IE 8/9.
  263. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  264. */
  265. legend {
  266. border: 0; /* 1 */
  267. padding: 0; /* 2 */
  268. }
  269. /**
  270. * 1. Correct font family not being inherited in all browsers.
  271. * 2. Correct font size not being inherited in all browsers.
  272. * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
  273. */
  274. button,
  275. input,
  276. select,
  277. textarea {
  278. font-family: inherit; /* 1 */
  279. font-size: 100%; /* 2 */
  280. margin: 0; /* 3 */
  281. }
  282. /**
  283. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  284. * the UA stylesheet.
  285. */
  286. button,
  287. input {
  288. line-height: normal;
  289. }
  290. /**
  291. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  292. * All other form control elements do not inherit `text-transform` values.
  293. * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
  294. * Correct `select` style inheritance in Firefox 4+ and Opera.
  295. */
  296. button,
  297. select {
  298. text-transform: none;
  299. }
  300. /**
  301. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  302. * and `video` controls.
  303. * 2. Correct inability to style clickable `input` types in iOS.
  304. * 3. Improve usability and consistency of cursor style between image-type
  305. * `input` and others.
  306. */
  307. button,
  308. html input[type="button"], /* 1 */
  309. input[type="reset"],
  310. input[type="submit"] {
  311. -webkit-appearance: button; /* 2 */
  312. cursor: pointer; /* 3 */
  313. }
  314. /**
  315. * Re-set default cursor for disabled elements.
  316. */
  317. button[disabled],
  318. html input[disabled] {
  319. cursor: default;
  320. }
  321. /**
  322. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  323. * 2. Remove excess padding in IE 8/9/10.
  324. */
  325. input[type="checkbox"],
  326. input[type="radio"] {
  327. box-sizing: border-box; /* 1 */
  328. padding: 0; /* 2 */
  329. }
  330. /**
  331. * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
  332. * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
  333. * (include `-moz` to future-proof).
  334. */
  335. input[type="search"] {
  336. -webkit-appearance: textfield; /* 1 */
  337. -moz-box-sizing: content-box;
  338. -webkit-box-sizing: content-box; /* 2 */
  339. box-sizing: content-box;
  340. }
  341. /**
  342. * Remove inner padding and search cancel button in Safari 5 and Chrome
  343. * on OS X.
  344. */
  345. input[type="search"]::-webkit-search-cancel-button,
  346. input[type="search"]::-webkit-search-decoration {
  347. -webkit-appearance: none;
  348. }
  349. /**
  350. * Remove inner padding and border in Firefox 4+.
  351. */
  352. button::-moz-focus-inner,
  353. input::-moz-focus-inner {
  354. border: 0;
  355. padding: 0;
  356. }
  357. /**
  358. * 1. Remove default vertical scrollbar in IE 8/9.
  359. * 2. Improve readability and alignment in all browsers.
  360. */
  361. textarea {
  362. overflow: auto; /* 1 */
  363. vertical-align: top; /* 2 */
  364. }
  365. /* ==========================================================================
  366. Tables
  367. ========================================================================== */
  368. /**
  369. * Remove most spacing between table cells.
  370. */
  371. table {
  372. border-collapse: collapse;
  373. border-spacing: 0;
  374. }
  375. // BORDER-BOX ALL THE THINGS! (http://paulirish.com/2012/box-sizing-border-box-ftw/)
  376. * {
  377. -webkit-box-sizing: border-box;
  378. -moz-box-sizing: border-box;
  379. box-sizing: border-box;
  380. }
  381. // http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
  382. .image-replacement,
  383. .ir {
  384. text-indent: 100%;
  385. white-space: nowrap;
  386. overflow: hidden;
  387. }
  388. // Contain floats: nicolasgallagher.com/micro-clearfix-hack/
  389. .clearfix, .cf {
  390. zoom: 1;
  391. &:before, &:after { content: ""; display: table; }
  392. &:after { clear: both; }
  393. }
  394. /*
  395. use the best ampersand
  396. http://simplebits.com/notebook/2008/08/14/ampersands-2/
  397. */
  398. span.amp {
  399. font-family: Baskerville,'Goudy Old Style',Palatino,'Book Antiqua',serif !important;
  400. font-style: italic;
  401. }