nonsemantic.css 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* ==|== non-semantic helper classes ========================================
  2. Please define your styles before this section.
  3. ========================================================================== */
  4. /* For image replacement */
  5. .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
  6. .ir br { display: none; }
  7. /* Hide from both screenreaders and browsers: h5bp.com/u */
  8. .hidden { display: none !important; visibility: hidden; }
  9. /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
  10. .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  11. /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
  12. .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
  13. /* Hide visually and from screenreaders, but maintain layout */
  14. .invisible { visibility: hidden; }
  15. /* Contain floats: h5bp.com/q */
  16. .clearfix:before, .clearfix:after { content: ""; display: table; }
  17. .clearfix:after { clear: both; }
  18. .clearfix { zoom: 1; }
  19. /* ==|== media queries ======================================================
  20. PLACEHOLDER Media Queries for Responsive Design.
  21. These override the primary ('mobile first') styles
  22. Modify as content requires.
  23. ========================================================================== */
  24. @media only screen and (min-width: 480px) {
  25. /* Style adjustments for viewports 480px and over go here */
  26. }
  27. @media only screen and (min-width: 768px) {
  28. /* Style adjustments for viewports 768px and over go here */
  29. }
  30. /* ==|== print styles =======================================================
  31. Print styles.
  32. Inlined to avoid required HTTP connection: h5bp.com/r
  33. ========================================================================== */
  34. @media print {
  35. * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  36. a, a:visited { text-decoration: underline; }
  37. a[href]:after { content: " (" attr(href) ")"; }
  38. abbr[title]:after { content: " (" attr(title) ")"; }
  39. .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
  40. pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  41. thead { display: table-header-group; } /* h5bp.com/t */
  42. tr, img { page-break-inside: avoid; }
  43. img { max-width: 100% !important; }
  44. @page { margin: 0.5cm; }
  45. p, h2, h3 { orphans: 3; widows: 3; }
  46. h2, h3 { page-break-after: avoid; }
  47. }