normalize.css 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.231; }
  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. p { -webkit-hyphens: auto; -moz-hyphens: auto; -epub-hyphens: auto; hyphens: auto; }
  35. abbr[title] { border-bottom: 1px dotted; }
  36. b, strong, .strong { font-weight: bold; }
  37. dfn, em, .em { font-style: italic; }
  38. small, .small, sub, sup { font-size: 85%; }
  39. ins, .ins { background: #ff9; color: #000; text-decoration: none; }
  40. mark, .mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
  41. hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
  42. pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
  43. pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
  44. blockquote { margin: 1em 40px; }
  45. q { quotes: none; }
  46. q:before, q:after { content: ""; content: none; }
  47. ul, ol { margin: 1.231em 0; padding: 0; }
  48. dd { margin: 0; }
  49. nav ul, nav ol, .widget ol, .widget ul, .commentlist { list-style: none; margin: 0; }
  50. /* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
  51. sub, sup { line-height: 0; position: relative; vertical-align: baseline; }
  52. sup { top: -0.5em; }
  53. sub { bottom: -0.25em; }
  54. /** Forms **/
  55. form, fieldset, form ul, form ol, fieldset ol, fieldset ul { margin: 0; border: 0; }
  56. legend { border: 0; *margin-left: -7px; padding: 0; }
  57. button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
  58. button, input { line-height: normal; *overflow: visible; }
  59. button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
  60. input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
  61. input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
  62. input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
  63. button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
  64. textarea { overflow: auto; vertical-align: top; }
  65. /* Colors for form validity */
  66. input:invalid, textarea:invalid { background-color: #f0dddd; }
  67. /** Tables **/
  68. table { border-collapse: collapse; border-spacing: 0; }
  69. /** Image Replacement **/
  70. .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
  71. .ir br { display: none; }
  72. /** Hidden & Invisiblity **/
  73. .hidden { display: none; visibility: hidden; }
  74. .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  75. .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
  76. .invisible { visibility: hidden; }
  77. /* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */
  78. .clearfix:before, .clearfix:after, nav[role=navigation] .menu ul:before, nav[role=navigation] .menu ul:after { content: ""; display: table; }
  79. .clearfix:after, nav[role=navigation] .menu ul:after { clear: both; }
  80. .clearfix, nav[role=navigation] .menu ul { zoom: 1; }
  81. /* wordpress junk */
  82. .wp-smiley { margin: 0 !important; max-height: 1em; }
  83. /******************************************************************
  84. PRINT STYLESHEET
  85. ******************************************************************/
  86. @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; }
  87. @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; }
  88. }