normalize.css 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /******************************************************************
  2. Bones Normalize Stylesheet
  3. Designed by Eddie Machado
  4. http://themble.com/bones
  5. eddie@themble.com
  6. Special Thanks to:
  7. Paul Irish, Divya Manian & the HTML5 Boilerplate
  8. @necolas for normalize.css and other inspirations
  9. Andy Clarke & the 320 & Up Extension
  10. Yoast for some WP functions & optimization ideas
  11. Andrew Rogers for code optimization
  12. David Dellanave for speed & code optimization
  13. and several other developers. :)
  14. I ADVISE AGAINST EDITING THIS FILES.
  15. ******************************************************************/
  16. /******************************************************************
  17. GENERAL NORMALIZE
  18. ******************************************************************/
  19. article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
  20. audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
  21. audio:not([controls]), [hidden] { display: none; }
  22. /** Base Styles **/
  23. html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  24. body { margin: 0; font-size: 13px; line-height: 1.5; }
  25. body, button, input, select, textarea { font-family: sans-serif; color: #333; }
  26. /** IE Fixes **/
  27. img { border: 0; -ms-interpolation-mode: bicubic; }
  28. svg:not(:root) { overflow: hidden; }
  29. figure { margin: 0; }
  30. /** Links **/
  31. a:focus { outline: thin dotted; }
  32. a:hover, a:active { outline: 0; }
  33. /** Typography **/
  34. h1 { font-size: 2em; } /* fixes html5 bug */
  35. p { -webkit-hyphens: auto; -moz-hyphens: auto; -epub-hyphens: auto; hyphens: auto; }
  36. abbr[title] { border-bottom: 1px dotted; }
  37. b, strong, .strong { font-weight: bold; }
  38. dfn, em, .em { font-style: italic; }
  39. small, .small, sub, sup { font-size: 75%; }
  40. ins, .ins { background: #ff9; color: #000; text-decoration: none; }
  41. mark, .mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
  42. hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
  43. pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
  44. pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
  45. blockquote { margin: 1.5em 40px; }
  46. q { quotes: none; }
  47. q:before, q:after { content: ''; content: none; }
  48. ul, ol { margin: 1.5em 0; padding: 0; }
  49. dd { margin: 0; }
  50. nav ul, nav ol, .widget ol, .widget ul, .commentlist { list-style: none; list-style-image: none; margin: 0; }
  51. /* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
  52. sub, sup { line-height: 0; position: relative; vertical-align: baseline; }
  53. sup { top: -0.5em; }
  54. sub { bottom: -0.25em; }
  55. /** Forms **/
  56. form, fieldset, form ul, form ol, fieldset ol, fieldset ul { margin: 0; border: 0; }
  57. legend { border: 0; *margin-left: -7px; }
  58. button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
  59. button, input { line-height: normal; }
  60. button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
  61. input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
  62. input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
  63. input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
  64. button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
  65. textarea { overflow: auto; vertical-align: top; }
  66. /* Colors for form validity */
  67. input:invalid, textarea:invalid { background-color: #f0dddd; }
  68. /** Tables **/
  69. table { border-collapse: collapse; border-spacing: 0; }
  70. /* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */
  71. .clearfix:before, .clearfix:after, nav[role=navigation] .menu ul:before, nav[role=navigation] .menu ul:after { content: ""; display: table; }
  72. .clearfix:after, nav[role=navigation] .menu ul:after { clear: both; }
  73. .clearfix, nav[role=navigation] .menu ul { zoom: 1; }
  74. /* wordpress junk */
  75. .wp-smiley { margin: 0 !important; max-height: 1em; }
  76. /******************************************************************
  77. PRINT STYLESHEET
  78. ******************************************************************/
  79. @media print { * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; }
  80. @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; }
  81. }