Guest User

Untitled

a guest
Nov 19th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.95 KB | None | 0 0
  1. html {
  2. font-family: sans-serif; /* 1 */
  3. line-height: 1.15; /* 2 */
  4. -ms-text-size-adjust: 100%; /* 3 */
  5. -webkit-text-size-adjust: 100%; /* 3 */
  6. }
  7.  
  8. /* Sections
  9. ========================================================================== */
  10.  
  11. /**
  12. * Remove the margin in all browsers (opinionated).
  13. */
  14.  
  15. body {
  16. margin: 0;
  17. }
  18.  
  19. /**
  20. * Add the correct display in IE 9-.
  21. */
  22.  
  23. article,
  24. aside,
  25. footer,
  26. header,
  27. nav,
  28. section {
  29. display: block;
  30. }
  31.  
  32. /**
  33. * Correct the font size and margin on `h1` elements within `section` and
  34. * `article` contexts in Chrome, Firefox, and Safari.
  35. */
  36.  
  37. h1 {
  38. font-size: 2em;
  39. margin: 0.67em 0;
  40. }
  41.  
  42. /* Grouping content
  43. ========================================================================== */
  44.  
  45. /**
  46. * Add the correct display in IE 9-.
  47. * 1. Add the correct display in IE.
  48. */
  49.  
  50. figcaption,
  51. figure,
  52. main { /* 1 */
  53. display: block;
  54. }
  55.  
  56. /**
  57. * Add the correct margin in IE 8.
  58. */
  59.  
  60. figure {
  61. margin: 1em 40px;
  62. }
  63.  
  64. /**
  65. * 1. Add the correct box sizing in Firefox.
  66. * 2. Show the overflow in Edge and IE.
  67. */
  68.  
  69. hr {
  70. box-sizing: content-box; /* 1 */
  71. height: 0; /* 1 */
  72. overflow: visible; /* 2 */
  73. }
  74.  
  75. /**
  76. * 1. Correct the inheritance and scaling of font size in all browsers.
  77. * 2. Correct the odd `em` font sizing in all browsers.
  78. */
  79.  
  80. pre {
  81. font-family: monospace, monospace; /* 1 */
  82. font-size: 1em; /* 2 */
  83. }
  84.  
  85. /* Text-level semantics
  86. ========================================================================== */
  87.  
  88. /**
  89. * 1. Remove the gray background on active links in IE 10.
  90. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
  91. */
  92.  
  93. a {
  94. background-color: transparent; /* 1 */
  95. -webkit-text-decoration-skip: objects; /* 2 */
  96. }
  97.  
  98. /**
  99. * Remove the outline on focused links when they are also active or hovered
  100. * in all browsers (opinionated).
  101. */
  102.  
  103. a:active,
  104. a:hover {
  105. outline-width: 0;
  106. }
  107.  
  108. /**
  109. * 1. Remove the bottom border in Firefox 39-.
  110. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  111. */
  112.  
  113. abbr[title] {
  114. border-bottom: none; /* 1 */
  115. text-decoration: underline; /* 2 */
  116. text-decoration: underline dotted; /* 2 */
  117. }
  118.  
  119. /**
  120. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
  121. */
  122.  
  123. b,
  124. strong {
  125. font-weight: inherit;
  126. }
  127.  
  128. /**
  129. * Add the correct font weight in Chrome, Edge, and Safari.
  130. */
  131.  
  132. b,
  133. strong {
  134. font-weight: bolder;
  135. }
  136.  
  137. /**
  138. * 1. Correct the inheritance and scaling of font size in all browsers.
  139. * 2. Correct the odd `em` font sizing in all browsers.
  140. */
  141.  
  142. code,
  143. kbd,
  144. samp {
  145. font-family: monospace, monospace; /* 1 */
  146. font-size: 1em; /* 2 */
  147. }
  148.  
  149. /**
  150. * Add the correct font style in Android 4.3-.
  151. */
  152.  
  153. dfn {
  154. font-style: italic;
  155. }
  156.  
  157. /**
  158. * Add the correct background and color in IE 9-.
  159. */
  160.  
  161. mark {
  162. background-color: #ff0;
  163. color: #000;
  164. }
  165.  
  166. /**
  167. * Add the correct font size in all browsers.
  168. */
  169.  
  170. small {
  171. font-size: 80%;
  172. }
  173.  
  174. /**
  175. * Prevent `sub` and `sup` elements from affecting the line height in
  176. * all browsers.
  177. */
  178.  
  179. sub,
  180. sup {
  181. font-size: 75%;
  182. line-height: 0;
  183. position: relative;
  184. vertical-align: baseline;
  185. }
  186.  
  187. sub {
  188. bottom: -0.25em;
  189. }
  190.  
  191. sup {
  192. top: -0.5em;
  193. }
  194.  
  195. /* Embedded content
  196. ========================================================================== */
  197.  
  198. /**
  199. * Add the correct display in IE 9-.
  200. */
  201.  
  202. audio,
  203. video {
  204. display: inline-block;
  205. }
  206.  
  207. /**
  208. * Add the correct display in iOS 4-7.
  209. */
  210.  
  211. audio:not([controls]) {
  212. display: none;
  213. height: 0;
  214. }
  215.  
  216. /**
  217. * Remove the border on images inside links in IE 10-.
  218. */
  219.  
  220. img {
  221. border-style: none;
  222. }
  223.  
  224. /**
  225. * Hide the overflow in IE.
  226. */
  227.  
  228. svg:not(:root) {
  229. overflow: hidden;
  230. }
  231.  
  232. /* Forms
  233. ========================================================================== */
  234.  
  235. /**
  236. * 1. Change the font styles in all browsers (opinionated).
  237. * 2. Remove the margin in Firefox and Safari.
  238. */
  239.  
  240. button,
  241. input,
  242. optgroup,
  243. select,
  244. textarea {
  245. font-family: sans-serif; /* 1 */
  246. font-size: 100%; /* 1 */
  247. line-height: 1.15; /* 1 */
  248. margin: 0; /* 2 */
  249. }
  250.  
  251. /**
  252. * Show the overflow in IE.
  253. * 1. Show the overflow in Edge.
  254. */
  255.  
  256. button,
  257. input { /* 1 */
  258. overflow: visible;
  259. }
  260.  
  261. /**
  262. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  263. * 1. Remove the inheritance of text transform in Firefox.
  264. */
  265.  
  266. button,
  267. select { /* 1 */
  268. text-transform: none;
  269. }
  270.  
  271. /**
  272. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  273. * controls in Android 4.
  274. * 2. Correct the inability to style clickable types in iOS and Safari.
  275. */
  276.  
  277. button,
  278. html [type="button"], /* 1 */
  279. [type="reset"],
  280. [type="submit"] {
  281. -webkit-appearance: button; /* 2 */
  282. }
  283.  
  284. /**
  285. * Remove the inner border and padding in Firefox.
  286. */
  287.  
  288. button::-moz-focus-inner,
  289. [type="button"]::-moz-focus-inner,
  290. [type="reset"]::-moz-focus-inner,
  291. [type="submit"]::-moz-focus-inner {
  292. border-style: none;
  293. padding: 0;
  294. }
  295.  
  296. /**
  297. * Restore the focus styles unset by the previous rule.
  298. */
  299.  
  300. button:-moz-focusring,
  301. [type="button"]:-moz-focusring,
  302. [type="reset"]:-moz-focusring,
  303. [type="submit"]:-moz-focusring {
  304. outline: 1px dotted ButtonText;
  305. }
  306.  
  307. /**
  308. * Change the border, margin, and padding in all browsers (opinionated).
  309. */
  310.  
  311. fieldset {
  312. border: 1px solid #c0c0c0;
  313. margin: 0 2px;
  314. padding: 0.35em 0.625em 0.75em;
  315. }
  316.  
  317. /**
  318. * 1. Correct the text wrapping in Edge and IE.
  319. * 2. Correct the color inheritance from `fieldset` elements in IE.
  320. * 3. Remove the padding so developers are not caught out when they zero out
  321. * `fieldset` elements in all browsers.
  322. */
  323.  
  324. legend {
  325. box-sizing: border-box; /* 1 */
  326. color: inherit; /* 2 */
  327. display: table; /* 1 */
  328. max-width: 100%; /* 1 */
  329. padding: 0; /* 3 */
  330. white-space: normal; /* 1 */
  331. }
  332.  
  333. /**
  334. * 1. Add the correct display in IE 9-.
  335. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
  336. */
  337.  
  338. progress {
  339. display: inline-block; /* 1 */
  340. vertical-align: baseline; /* 2 */
  341. }
  342.  
  343. /**
  344. * Remove the default vertical scrollbar in IE.
  345. */
  346.  
  347. textarea {
  348. overflow: auto;
  349. }
  350.  
  351. /**
  352. * 1. Add the correct box sizing in IE 10-.
  353. * 2. Remove the padding in IE 10-.
  354. */
  355.  
  356. [type="checkbox"],
  357. [type="radio"] {
  358. box-sizing: border-box; /* 1 */
  359. padding: 0; /* 2 */
  360. }
  361.  
  362. /**
  363. * Correct the cursor style of increment and decrement buttons in Chrome.
  364. */
  365.  
  366. [type="number"]::-webkit-inner-spin-button,
  367. [type="number"]::-webkit-outer-spin-button {
  368. height: auto;
  369. }
  370.  
  371. /**
  372. * 1. Correct the odd appearance in Chrome and Safari.
  373. * 2. Correct the outline style in Safari.
  374. */
  375.  
  376. [type="search"] {
  377. -webkit-appearance: textfield; /* 1 */
  378. outline-offset: -2px; /* 2 */
  379. }
  380.  
  381. /**
  382. * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
  383. */
  384.  
  385. [type="search"]::-webkit-search-cancel-button,
  386. [type="search"]::-webkit-search-decoration {
  387. -webkit-appearance: none;
  388. }
  389.  
  390. /**
  391. * 1. Correct the inability to style clickable types in iOS and Safari.
  392. * 2. Change font properties to `inherit` in Safari.
  393. */
  394.  
  395. ::-webkit-file-upload-button {
  396. -webkit-appearance: button; /* 1 */
  397. font: inherit; /* 2 */
  398. }
  399.  
  400. /* Interactive
  401. ========================================================================== */
  402.  
  403. /*
  404. * Add the correct display in IE 9-.
  405. * 1. Add the correct display in Edge, IE, and Firefox.
  406. */
  407.  
  408. details, /* 1 */
  409. menu {
  410. display: block;
  411. }
  412.  
  413. /*
  414. * Add the correct display in all browsers.
  415. */
  416.  
  417. summary {
  418. display: list-item;
  419. }
  420.  
  421. /* Scripting
  422. ========================================================================== */
  423.  
  424. /**
  425. * Add the correct display in IE 9-.
  426. */
  427.  
  428. canvas {
  429. display: inline-block;
  430. }
  431.  
  432. /**
  433. * Add the correct display in IE.
  434. */
  435.  
  436. template {
  437. display: none;
  438. }
  439.  
  440. /* Hidden
  441. ========================================================================== */
  442.  
  443. /**
  444. * Add the correct display in IE 10-.
  445. */
  446.  
  447. [hidden] {
  448. display: none;
  449. }
  450.  
  451. ul, ol {
  452. list-style: none;
  453. }
Add Comment
Please, Sign In to add comment