home *** CD-ROM | disk | FTP | other *** search
/ 74.208.221.89 / 74.208.221.89.zip / 74.208.221.89 / boilerplate.css < prev    next >
Cascading Style Sheet File  |  2015-03-28  |  10KB  |  281 lines

  1. @charset "utf-8";
  2. /*
  3. /* 
  4.  * HTML5 Γ£░ Boilerplate
  5.  *
  6.  * What follows is the result of much research on cross-browser styling. 
  7.  * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
  8.  * Kroc Camen, and the H5BP dev community and team.
  9.  *
  10.  * Detailed information about this CSS: h5bp.com/css
  11.  * 
  12.  * Dreamweaver modifications:
  13.  * 1. Commented out selection highlight
  14.  * 2. Removed media queries section (we add our own in a separate file)
  15.  *
  16.  * ==|== normalize ==========================================================
  17.  */
  18.  
  19.  
  20. /* =============================================================================
  21.    HTML5 display definitions
  22.    ========================================================================== */
  23.  
  24. article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
  25. audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
  26. audio:not([controls]) { display: none; }
  27. [hidden] { display: none; }
  28.  
  29. /* =============================================================================
  30.    Base
  31.    ========================================================================== */
  32.  
  33. /*
  34.  * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
  35.  * 2. Force vertical scrollbar in non-IE
  36.  * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
  37.  */
  38.  
  39. html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  40.  
  41. body { margin: 0; font-size: 13px; line-height: 1.231; }
  42.  
  43. body, button, input, select, textarea { font-family: sans-serif; color: #222; }
  44.  
  45. /* 
  46.  * Remove text-shadow in selection highlight: h5bp.com/i
  47.  * These selection declarations have to be separate
  48.  * Also: hot pink! (or customize the background color to match your design)
  49.  */
  50.  
  51. /* Dreamweaver: uncomment these if you do want to customize the selection highlight
  52.  *::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
  53.  *::selection { background: #fe57a1; color: #fff; text-shadow: none; }
  54.  */
  55.  
  56. /* =============================================================================
  57.    Links
  58.    ========================================================================== */
  59.  
  60. a { color: #00e; }
  61. a:visited { color: #551a8b; }
  62. a:hover { color: #06e; }
  63. a:focus { outline: thin dotted; }
  64.  
  65. /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
  66. a:hover, a:active { outline: 0; }
  67.  
  68.  
  69. /* =============================================================================
  70.    Typography
  71.    ========================================================================== */
  72.  
  73. abbr[title] { border-bottom: 1px dotted; }
  74.  
  75. b, strong { font-weight: bold; }
  76.  
  77. blockquote { margin: 1em 40px; }
  78.  
  79. dfn { font-style: italic; }
  80.  
  81. hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
  82.  
  83. ins { background: #ff9; color: #000; text-decoration: none; }
  84.  
  85. mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
  86.  
  87. /* Redeclare monospace font family: h5bp.com/j */
  88. pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
  89.  
  90. /* Improve readability of pre-formatted text in all browsers */
  91. pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
  92.  
  93. q { quotes: none; }
  94. q:before, q:after { content: ""; content: none; }
  95.  
  96. small { font-size: 85%; }
  97.  
  98. /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
  99. sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  100. sup { top: -0.5em; }
  101. sub { bottom: -0.25em; }
  102.  
  103.  
  104. /* =============================================================================
  105.    Lists
  106.    ========================================================================== */
  107.  
  108. ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
  109. dd { margin: 0 0 0 40px; }
  110. nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
  111.  
  112.  
  113. /* =============================================================================
  114.    Embedded content
  115.    ========================================================================== */
  116.  
  117. /*
  118.  * 1. Improve image quality when scaled in IE7: h5bp.com/d
  119.  * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
  120.  */
  121.  
  122. img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
  123.  
  124. /*
  125.  * Correct overflow not hidden in IE9 
  126.  */
  127.  
  128. svg:not(:root) { overflow: hidden; }
  129.  
  130.  
  131. /* =============================================================================
  132.    Figures
  133.    ========================================================================== */
  134.  
  135. figure { margin: 0; }
  136.  
  137.  
  138. /* =============================================================================
  139.    Forms
  140.    ========================================================================== */
  141.  
  142. form { margin: 0; }
  143. fieldset { border: 0; margin: 0; padding: 0; }
  144.  
  145. /* Indicate that 'label' will shift focus to the associated form element */
  146. label { cursor: pointer; }
  147.  
  148. /* 
  149.  * 1. Correct color not inheriting in IE6/7/8/9 
  150.  * 2. Correct alignment displayed oddly in IE6/7 
  151.  */
  152.  
  153. legend { border: 0; *margin-left: -7px; padding: 0; }
  154.  
  155. /*
  156.  * 1. Correct font-size not inheriting in all browsers
  157.  * 2. Remove margins in FF3/4 S5 Chrome
  158.  * 3. Define consistent vertical alignment display in all browsers
  159.  */
  160.  
  161. button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
  162.  
  163. /*
  164.  * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
  165.  * 2. Correct inner spacing displayed oddly in IE6/7
  166.  */
  167.  
  168. button, input { line-height: normal; *overflow: visible; }
  169.  
  170. /*
  171.  * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
  172.  */
  173.  
  174. table button, table input { *overflow: auto; }
  175.  
  176. /*
  177.  * 1. Display hand cursor for clickable form elements
  178.  * 2. Allow styling of clickable form elements in iOS
  179.  */
  180.  
  181. button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
  182.  
  183. /*
  184.  * Consistent box sizing and appearance
  185.  */
  186.  
  187. input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
  188. input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
  189. input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
  190.  
  191. /* 
  192.  * Remove inner padding and border in FF3/4: h5bp.com/l 
  193.  */
  194.  
  195. button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
  196.  
  197. /* 
  198.  * 1. Remove default vertical scrollbar in IE6/7/8/9 
  199.  * 2. Allow only vertical resizing
  200.  */
  201.  
  202. textarea { overflow: auto; vertical-align: top; resize: vertical; }
  203.  
  204. /* Colors for form validity */
  205. input:valid, textarea:valid {  }
  206. input:invalid, textarea:invalid { background-color: #f0dddd; }
  207.  
  208.  
  209. /* =============================================================================
  210.    Tables
  211.    ========================================================================== */
  212.  
  213. table { border-collapse: collapse; border-spacing: 0; }
  214. td { vertical-align: top; }
  215.  
  216.  
  217. /* ==|== primary styles =====================================================
  218.    Author: 
  219.    ========================================================================== */
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. /* ==|== non-semantic helper classes ========================================
  237.    Please define your styles before this section.
  238.    ========================================================================== */
  239.  
  240. /* For image replacement */
  241. .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
  242. .ir br { display: none; }
  243.  
  244. /* Hide from both screenreaders and browsers: h5bp.com/u */
  245. .hidden { display: none !important; visibility: hidden; }
  246.  
  247. /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
  248. .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  249.  
  250. /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
  251. .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
  252.  
  253. /* Hide visually and from screenreaders, but maintain layout */
  254. .invisible { visibility: hidden; }
  255.  
  256. /* Contain floats: h5bp.com/q */ 
  257. .clearfix:before, .clearfix:after { content: ""; display: table; }
  258. .clearfix:after { clear: both; }
  259. .clearfix { zoom: 1; }
  260.  
  261.  
  262. /* ==|== print styles =======================================================
  263.    Print styles.
  264.    Inlined to avoid required HTTP connection: h5bp.com/r
  265.    ========================================================================== */
  266.  
  267.  @media print {
  268.   * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  269.   a, a:visited { text-decoration: underline; }
  270.   a[href]:after { content: " (" attr(href) ")"; }
  271.   abbr[title]:after { content: " (" attr(title) ")"; }
  272.   .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  273.   pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  274.   thead { display: table-header-group; } /* h5bp.com/t */
  275.   tr, img { page-break-inside: avoid; }
  276.   img { max-width: 100% !important; }
  277.   @page { margin: 0.5cm; }
  278.   p, h2, h3 { orphans: 3; widows: 3; }
  279.   h2, h3 { page-break-after: avoid; }
  280. }
  281.