_normalize.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  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. .strong {
  137. font-weight: bold;
  138. }
  139. blockquote {
  140. margin: 1em 40px;
  141. }
  142. /*
  143. * Addresses styling not present in S5, Chrome.
  144. */
  145. dfn,
  146. em,
  147. .em {
  148. font-style: italic;
  149. }
  150. /*
  151. * Addresses styling not present in IE6/7/8/9.
  152. */
  153. mark {
  154. background: #ff0;
  155. color: #000;
  156. }
  157. /*
  158. * proper formatting (http://blog.fontdeck.com/post/9037028497/hyphens)
  159. */
  160. p {
  161. -webkit-hyphens: auto;
  162. -epub-hyphens: auto;
  163. -moz-hyphens: auto;
  164. hyphens: auto;
  165. }
  166. /*
  167. * Addresses margins set differently in IE6/7.
  168. */
  169. pre {
  170. margin: 0;
  171. }
  172. /*
  173. * Corrects font family set oddly in IE6, S4/5, Chrome.
  174. * en.wikipedia.org/wiki/User:Davidgothberg/Test59
  175. */
  176. code,
  177. kbd,
  178. pre,
  179. samp {
  180. font-family: monospace, serif;
  181. _font-family: 'courier new', monospace;
  182. font-size: 1em;
  183. }
  184. /*
  185. * Improves readability of pre-formatted text in all browsers.
  186. */
  187. pre {
  188. white-space: pre;
  189. white-space: pre-wrap;
  190. word-wrap: break-word;
  191. }
  192. /*
  193. * Addresses CSS quotes not supported in IE6/7.
  194. */
  195. q {
  196. quotes: none;
  197. }
  198. /*
  199. * Addresses `quotes` property not supported in S4.
  200. */
  201. q:before,
  202. q:after {
  203. content: '';
  204. content: none;
  205. }
  206. small, .small {
  207. font-size: 75%;
  208. }
  209. /*
  210. * Prevents `sub` and `sup` affecting `line-height` in all browsers.
  211. * gist.github.com/413930
  212. */
  213. sub,
  214. sup {
  215. font-size: 75%;
  216. line-height: 0;
  217. position: relative;
  218. vertical-align: baseline;
  219. }
  220. sup {
  221. top: -0.5em;
  222. }
  223. sub {
  224. bottom: -0.25em;
  225. }
  226. /* ==========================================================================
  227. Lists
  228. ========================================================================== */
  229. /*
  230. * Addresses margins set differently in IE6/7.
  231. */
  232. dl,
  233. menu,
  234. ol,
  235. ul {
  236. margin: 1em 0;
  237. }
  238. dd {
  239. margin: 0;
  240. }
  241. /*
  242. * Addresses paddings set differently in IE6/7.
  243. */
  244. menu {
  245. padding: 0 0 0 40px;
  246. }
  247. ol,
  248. ul {
  249. padding: 0;
  250. list-style-type: none;
  251. }
  252. /*
  253. * Corrects list images handled incorrectly in IE7.
  254. */
  255. nav ul,
  256. nav ol {
  257. list-style: none;
  258. list-style-image: none;
  259. }
  260. /* ==========================================================================
  261. Embedded content
  262. ========================================================================== */
  263. /*
  264. * 1. Removes border when inside `a` element in IE6/7/8/9, FF3.
  265. * 2. Improves image quality when scaled in IE7.
  266. * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  267. */
  268. img {
  269. border: 0; /* 1 */
  270. -ms-interpolation-mode: bicubic; /* 2 */
  271. }
  272. /*
  273. * Corrects overflow displayed oddly in IE9.
  274. */
  275. svg:not(:root) {
  276. overflow: hidden;
  277. }
  278. /* ==========================================================================
  279. Figures
  280. ========================================================================== */
  281. /*
  282. * Addresses margin not present in IE6/7/8/9, S5, O11.
  283. */
  284. figure {
  285. margin: 0;
  286. }
  287. /* ==========================================================================
  288. Forms
  289. ========================================================================== */
  290. /*
  291. * Corrects margin displayed oddly in IE6/7.
  292. */
  293. form {
  294. margin: 0;
  295. }
  296. /*
  297. * Define consistent border, margin, and padding.
  298. */
  299. fieldset {
  300. border: 1px solid #c0c0c0;
  301. margin: 0 2px;
  302. padding: 0.35em 0.625em 0.75em;
  303. }
  304. /*
  305. * 1. Corrects color not being inherited in IE6/7/8/9.
  306. * 2. Corrects text not wrapping in FF3.
  307. * 3. Corrects alignment displayed oddly in IE6/7.
  308. */
  309. legend {
  310. border: 0; /* 1 */
  311. padding: 0;
  312. white-space: normal; /* 2 */
  313. *margin-left: -7px; /* 3 */
  314. }
  315. /*
  316. * 1. Corrects font size not being inherited in all browsers.
  317. * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome.
  318. * 3. Improves appearance and consistency in all browsers.
  319. */
  320. button,
  321. input,
  322. select,
  323. textarea {
  324. font-size: 100%; /* 1 */
  325. margin: 0; /* 2 */
  326. vertical-align: baseline; /* 3 */
  327. *vertical-align: middle; /* 3 */
  328. }
  329. /*
  330. * Addresses FF3/4 setting `line-height` on `input` using `!important` in the
  331. * UA stylesheet.
  332. */
  333. button,
  334. input {
  335. line-height: normal;
  336. }
  337. /*
  338. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  339. * and `video` controls.
  340. * 2. Corrects inability to style clickable `input` types in iOS.
  341. * 3. Improves usability and consistency of cursor style between image-type
  342. * `input` and others.
  343. * 4. Removes inner spacing in IE7 without affecting normal text inputs.
  344. * Known issue: inner spacing remains in IE6.
  345. */
  346. button,
  347. html input[type="button"], /* 1 */
  348. input[type="reset"],
  349. input[type="submit"] {
  350. -webkit-appearance: button; /* 2 */
  351. cursor: pointer; /* 3 */
  352. *overflow: visible; /* 4 */
  353. }
  354. /*
  355. * Re-set default cursor for disabled elements.
  356. */
  357. button[disabled],
  358. input[disabled] {
  359. cursor: default;
  360. }
  361. /*
  362. * 1. Addresses box sizing set to content-box in IE8/9.
  363. * 2. Removes excess padding in IE8/9.
  364. * 3. Removes excess padding in IE7.
  365. * Known issue: excess padding remains in IE6.
  366. */
  367. input[type="checkbox"],
  368. input[type="radio"] {
  369. box-sizing: border-box; /* 1 */
  370. padding: 0; /* 2 */
  371. *height: 13px; /* 3 */
  372. *width: 13px; /* 3 */
  373. }
  374. /*
  375. * 1. Addresses `appearance` set to `searchfield` in S5, Chrome.
  376. * 2. Addresses `box-sizing` set to `border-box` in S5, Chrome (include `-moz`
  377. * to future-proof).
  378. */
  379. input[type="search"] {
  380. -webkit-appearance: textfield; /* 1 */
  381. -moz-box-sizing: content-box;
  382. -webkit-box-sizing: content-box; /* 2 */
  383. box-sizing: content-box;
  384. }
  385. /*
  386. * Removes inner padding and search cancel button in S5, Chrome on OS X.
  387. */
  388. input[type="search"]::-webkit-search-cancel-button,
  389. input[type="search"]::-webkit-search-decoration {
  390. -webkit-appearance: none;
  391. }
  392. /*
  393. * Removes inner padding and border in FF3+.
  394. */
  395. button::-moz-focus-inner,
  396. input::-moz-focus-inner {
  397. border: 0;
  398. padding: 0;
  399. }
  400. /*
  401. * 1. Removes default vertical scrollbar in IE6/7/8/9.
  402. * 2. Improves readability and alignment in all browsers.
  403. */
  404. textarea {
  405. overflow: auto; /* 1 */
  406. vertical-align: top; /* 2 */
  407. }
  408. /* ==========================================================================
  409. Tables
  410. ========================================================================== */
  411. /*
  412. * Remove most spacing between table cells.
  413. */
  414. table {
  415. border-collapse: collapse;
  416. border-spacing: 0;
  417. }
  418. // BORDER-BOX ALL THE THINGS! (http://paulirish.com/2012/box-sizing-border-box-ftw/)
  419. * {
  420. -webkit-box-sizing: border-box;
  421. -moz-box-sizing: border-box;
  422. box-sizing: border-box;
  423. }
  424. // http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
  425. .image-replacement,
  426. .ir {
  427. text-indent: 100%;
  428. white-space: nowrap;
  429. overflow: hidden;
  430. }
  431. // Contain floats: nicolasgallagher.com/micro-clearfix-hack/
  432. .clearfix, .cf {
  433. zoom: 1;
  434. &:before, &:after { content: ""; display: table; }
  435. &:after { clear: both; }
  436. }
  437. /*
  438. use the best ampersand
  439. http://simplebits.com/notebook/2008/08/14/ampersands-2/
  440. */
  441. span.amp {
  442. font-family: Baskerville,'Goudy Old Style',Palatino,'Book Antiqua',serif !important;
  443. font-style: italic;
  444. }