Advertisement
Deygus

Normalize CSS File

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