You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
3.3 KiB

  1. /* ==========================================================================
  2. Helper classes
  3. ========================================================================== */
  4. /*
  5. * Hide visually and from screen readers
  6. */
  7. .hidden {
  8. display: none !important;
  9. }
  10. /*
  11. * Hide only visually, but have it available for screen readers:
  12. * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
  13. */
  14. .visuallyhidden {
  15. border: 0;
  16. clip: rect(0 0 0 0);
  17. height: 1px;
  18. margin: -1px;
  19. overflow: hidden;
  20. padding: 0;
  21. position: absolute;
  22. width: 1px;
  23. }
  24. /*
  25. * Extends the .visuallyhidden class to allow the element
  26. * to be focusable when navigated to via the keyboard:
  27. * https://www.drupal.org/node/897638
  28. */
  29. .visuallyhidden.focusable:active,
  30. .visuallyhidden.focusable:focus {
  31. clip: auto;
  32. height: auto;
  33. margin: 0;
  34. overflow: visible;
  35. position: static;
  36. width: auto;
  37. }
  38. /*
  39. * Hide visually and from screen readers, but maintain layout
  40. */
  41. .invisible {
  42. visibility: hidden;
  43. }
  44. /*
  45. * Clearfix: contain floats
  46. *
  47. * For modern browsers
  48. * 1. The space content is one way to avoid an Opera bug when the
  49. * `contenteditable` attribute is included anywhere else in the document.
  50. * Otherwise it causes space to appear at the top and bottom of elements
  51. * that receive the `clearfix` class.
  52. * 2. The use of `table` rather than `block` is only necessary if using
  53. * `:before` to contain the top-margins of child elements.
  54. */
  55. .clearfix:before,
  56. .clearfix:after {
  57. content: " "; /* 1 */
  58. display: table; /* 2 */
  59. }
  60. .clearfix:after {
  61. clear: both;
  62. }
  63. /* ==========================================================================
  64. EXAMPLE Media Queries for Responsive Design.
  65. These examples override the primary ('mobile first') styles.
  66. Modify as content requires.
  67. ========================================================================== */
  68. @media only screen and (min-width: 35em) {
  69. /* Style adjustments for viewports that meet the condition */
  70. }
  71. @media print,
  72. (min-resolution: 1.25dppx),
  73. (min-resolution: 120dpi) {
  74. /* Style adjustments for high resolution devices */
  75. }
  76. /* ==========================================================================
  77. Print styles.
  78. Inlined to avoid the additional HTTP request:
  79. http://www.phpied.com/delay-loading-your-print-css/
  80. ========================================================================== */
  81. @media print {
  82. *,
  83. *:before,
  84. *:after,
  85. *:first-letter,
  86. *:first-line {
  87. background: transparent !important;
  88. color: #000 !important; /* Black prints faster:
  89. http://www.sanbeiji.com/archives/953 */
  90. box-shadow: none !important;
  91. text-shadow: none !important;
  92. }
  93. a,
  94. a:visited {
  95. text-decoration: underline;
  96. }
  97. a[href]:after {
  98. content: " (" attr(href) ")";
  99. }
  100. abbr[title]:after {
  101. content: " (" attr(title) ")";
  102. }
  103. /*
  104. * Don't show links that are fragment identifiers,
  105. * or use the `javascript:` pseudo protocol
  106. */
  107. a[href^="#"]:after,
  108. a[href^="javascript:"]:after {
  109. content: "";
  110. }
  111. pre,
  112. blockquote {
  113. border: 1px solid #999;
  114. page-break-inside: avoid;
  115. }
  116. /*
  117. * Printing Tables:
  118. * http://css-discuss.incutio.com/wiki/Printing_Tables
  119. */
  120. thead {
  121. display: table-header-group;
  122. }
  123. tr,
  124. img {
  125. page-break-inside: avoid;
  126. }
  127. img {
  128. max-width: 100% !important;
  129. }
  130. p,
  131. h2,
  132. h3 {
  133. orphans: 3;
  134. widows: 3;
  135. }
  136. h2,
  137. h3 {
  138. page-break-after: avoid;
  139. }
  140. }