PageRenderTime 21ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/PhoneGap02/app/bower_components/html5-boilerplate/src/css/main.css

https://gitlab.com/hemantr/NetBeansProjects
CSS | 272 lines | 127 code | 60 blank | 85 comment | 0 complexity | 6d44927c5ccfaaa2b7c42d494b724a04 MD5 | raw file
  1. /*
  2. * What follows is the result of much research on cross-browser styling.
  3. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
  4. * Kroc Camen, and the H5BP dev community and team.
  5. */
  6. /* ==========================================================================
  7. Base styles: opinionated defaults
  8. ========================================================================== */
  9. html {
  10. color: #222;
  11. font-size: 1em;
  12. line-height: 1.4;
  13. }
  14. /*
  15. * Remove text-shadow in selection highlight:
  16. * https://twitter.com/miketaylr/status/12228805301
  17. *
  18. * These selection rule sets have to be separate.
  19. * Customize the background color to match your design.
  20. */
  21. ::selection {
  22. background: #b3d4fc;
  23. text-shadow: none;
  24. }
  25. /*
  26. * A better looking default horizontal rule
  27. */
  28. hr {
  29. display: block;
  30. height: 1px;
  31. border: 0;
  32. border-top: 1px solid #ccc;
  33. margin: 1em 0;
  34. padding: 0;
  35. }
  36. /*
  37. * Remove the gap between audio, canvas, iframes,
  38. * images, videos and the bottom of their containers:
  39. * https://github.com/h5bp/html5-boilerplate/issues/440
  40. */
  41. audio,
  42. canvas,
  43. iframe,
  44. img,
  45. svg,
  46. video {
  47. vertical-align: middle;
  48. }
  49. /*
  50. * Remove default fieldset styles.
  51. */
  52. fieldset {
  53. border: 0;
  54. margin: 0;
  55. padding: 0;
  56. }
  57. /*
  58. * Allow only vertical resizing of textareas.
  59. */
  60. textarea {
  61. resize: vertical;
  62. }
  63. /* ==========================================================================
  64. Browser Upgrade Prompt
  65. ========================================================================== */
  66. .browserupgrade {
  67. margin: 0.2em 0;
  68. background: #ccc;
  69. color: #000;
  70. padding: 0.2em 0;
  71. }
  72. /* ==========================================================================
  73. Author's custom styles
  74. ========================================================================== */
  75. /* ==========================================================================
  76. Helper classes
  77. ========================================================================== */
  78. /*
  79. * Hide visually and from screen readers:
  80. */
  81. .hidden {
  82. display: none !important;
  83. }
  84. /*
  85. * Hide only visually, but have it available for screen readers:
  86. * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
  87. */
  88. .visuallyhidden {
  89. border: 0;
  90. clip: rect(0 0 0 0);
  91. height: 1px;
  92. margin: -1px;
  93. overflow: hidden;
  94. padding: 0;
  95. position: absolute;
  96. width: 1px;
  97. }
  98. /*
  99. * Extends the .visuallyhidden class to allow the element
  100. * to be focusable when navigated to via the keyboard:
  101. * https://www.drupal.org/node/897638
  102. */
  103. .visuallyhidden.focusable:active,
  104. .visuallyhidden.focusable:focus {
  105. clip: auto;
  106. height: auto;
  107. margin: 0;
  108. overflow: visible;
  109. position: static;
  110. width: auto;
  111. }
  112. /*
  113. * Hide visually and from screen readers, but maintain layout
  114. */
  115. .invisible {
  116. visibility: hidden;
  117. }
  118. /*
  119. * Clearfix: contain floats
  120. *
  121. * For modern browsers
  122. * 1. The space content is one way to avoid an Opera bug when the
  123. * `contenteditable` attribute is included anywhere else in the document.
  124. * Otherwise it causes space to appear at the top and bottom of elements
  125. * that receive the `clearfix` class.
  126. * 2. The use of `table` rather than `block` is only necessary if using
  127. * `:before` to contain the top-margins of child elements.
  128. */
  129. .clearfix:before,
  130. .clearfix:after {
  131. content: " "; /* 1 */
  132. display: table; /* 2 */
  133. }
  134. .clearfix:after {
  135. clear: both;
  136. }
  137. /* ==========================================================================
  138. EXAMPLE Media Queries for Responsive Design.
  139. These examples override the primary ('mobile first') styles.
  140. Modify as content requires.
  141. ========================================================================== */
  142. @media only screen and (min-width: 35em) {
  143. /* Style adjustments for viewports that meet the condition */
  144. }
  145. @media print,
  146. (min-resolution: 1.25dppx),
  147. (min-resolution: 120dpi) {
  148. /* Style adjustments for high resolution devices */
  149. }
  150. /* ==========================================================================
  151. Print styles.
  152. Inlined to avoid the additional HTTP request:
  153. http://www.phpied.com/delay-loading-your-print-css/
  154. ========================================================================== */
  155. @media print {
  156. *,
  157. *:before,
  158. *:after {
  159. background: transparent !important;
  160. color: #000 !important; /* Black prints faster:
  161. http://www.sanbeiji.com/archives/953 */
  162. box-shadow: none !important;
  163. text-shadow: none !important;
  164. }
  165. a,
  166. a:visited {
  167. text-decoration: underline;
  168. }
  169. a[href]:after {
  170. content: " (" attr(href) ")";
  171. }
  172. abbr[title]:after {
  173. content: " (" attr(title) ")";
  174. }
  175. /*
  176. * Don't show links that are fragment identifiers,
  177. * or use the `javascript:` pseudo protocol
  178. */
  179. a[href^="#"]:after,
  180. a[href^="javascript:"]:after {
  181. content: "";
  182. }
  183. pre,
  184. blockquote {
  185. border: 1px solid #999;
  186. page-break-inside: avoid;
  187. }
  188. /*
  189. * Printing Tables:
  190. * http://css-discuss.incutio.com/wiki/Printing_Tables
  191. */
  192. thead {
  193. display: table-header-group;
  194. }
  195. tr,
  196. img {
  197. page-break-inside: avoid;
  198. }
  199. img {
  200. max-width: 100% !important;
  201. }
  202. p,
  203. h2,
  204. h3 {
  205. orphans: 3;
  206. widows: 3;
  207. }
  208. h2,
  209. h3 {
  210. page-break-after: avoid;
  211. }
  212. }