3 /* HTML5 display properties
\r
4 ============================================== */
\r
6 article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
\r
7 audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
\r
8 audio:not([controls]) { display: none; }
\r
9 [hidden] { display: none; }
\r
13 ============================================== */
\r
16 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
\r
17 * 2. Force vertical scrollbar in non-IE
\r
18 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
\r
21 * { font-family: "helvetica neue", "helvetica", "arial", "Sans-serif"; }
\r
23 html { overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
\r
25 body { margin: 0; line-height: 100%; }
\r
27 body, button, input, select, textarea { font-family: sans-serif; color: #222; }
\r
30 ============================================== */
\r
32 a { color: #4b8eda; cursor: pointer; text-decoration: none; }
\r
34 a:link, a:visited { outline: none; }
\r
36 a:hover { text-decoration: none; }
\r
38 a:hover, a:active { outline: 0 } /* improved readability on hover */
\r
40 a:focus { outline: thin dotted; }
\r
42 a img { border: none; }
\r
46 ============================================== */
\r
48 abbr[title] { border-bottom: 1px dotted; }
\r
50 b, strong { font-weight: bold; }
\r
52 blockquote { margin: 1em 40px; }
\r
54 dfn { font-style: italic; }
\r
56 hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
\r
58 ins { background: #ff9; color: #000; text-decoration: none; }
\r
60 mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
\r
62 /* Redeclare monospace font family: h5bp.com/j */
\r
63 pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
\r
65 /* Improve readability of pre-formatted text in all browsers */
\r
66 pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
\r
69 q:before, q:after { content: ""; content: none; }
\r
71 small { font-size: 85%; }
\r
73 em { font-style:italic; }
\r
75 /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
\r
76 sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
\r
77 sup { top: -0.5em; }
\r
78 sub { bottom: -0.25em; }
\r
82 ============================================== */
\r
84 ul, ol { margin: 0; padding: 0; }
\r
86 ul li { list-style: none; list-style-image: none; }
\r
88 dd { margin: 0 0 0 40px; }
\r
90 nav ul, nav ol { margin: 0; padding: 0; }
\r
94 ============================================== */
\r
97 * 1. Improve image quality when scaled in IE7: h5bp.com/d
\r
98 * 2. Remove the gap between images and borders on image containers: h5bp.com/e
\r
101 img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; display: block }
\r
103 /* Correct overflow not hidden in IE9 */
\r
105 svg:not(:root) { overflow: hidden; }
\r
109 ============================================== */
\r
111 figure { margin: 0; }
\r
115 ============================================== */
\r
117 form { margin: 0; }
\r
118 fieldset { border: 0; margin: 0; padding: 0; }
\r
120 /* Indicate that 'label' will shift focus to the associated form element */
\r
122 label { cursor: pointer; }
\r
125 * 1. Correct color not inheriting in IE6/7/8/9
\r
126 * 2. Correct alignment displayed oddly in IE6/7
\r
129 legend { border: 0; *margin-left: -7px; padding: 0; }
\r
132 * 1. Correct font-size not inheriting in all browsers
\r
133 * 2. Remove margins in FF3/4 S5 Chrome
\r
134 * 3. Define consistent vertical alignment display in all browsers
\r
137 button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
\r
140 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
\r
141 * 2. Correct inner spacing displayed oddly in IE6/7
\r
144 button, input { line-height: normal; *overflow: visible; }
\r
147 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
\r
150 table button, table input { *overflow: auto; }
\r
153 * 1. Display hand cursor for clickable form elements
\r
154 * 2. Allow styling of clickable form elements in iOS
\r
157 button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
\r
160 * Consistent box sizing and appearance
\r
163 input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
\r
164 input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
\r
165 input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
\r
168 * Remove inner padding and border in FF3/4: h5bp.com/l
\r
171 button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
\r
174 * 1. Remove default vertical scrollbar in IE6/7/8/9
\r
175 * 2. Allow only vertical resizing
\r
178 textarea { overflow: auto; vertical-align: top; resize: vertical; }
\r
180 /* Colors for form validity */
\r
181 input:valid, textarea:valid { }
\r
182 input:invalid, textarea:invalid { background-color: #f0dddd; }
\r
185 ::-webkit-input-placeholder {
\r
189 :-moz-placeholder {
\r
195 ============================================== */
\r
197 table { border-collapse: collapse; border-spacing: 0; }
\r
198 td { vertical-align: top; }
\r
201 /* ==|== non-semantic helper classes ========================================
\r
202 Please define your styles before this section.
\r
203 ========================================================================== */
\r
205 /* For image replacement */
\r
206 .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
\r
207 .ir br { display: none; }
\r
209 /* Hide from both screenreaders and browsers: h5bp.com/u */
\r
210 .hidden { display: none !important; visibility: hidden; }
\r
212 /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
\r
213 .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
\r
215 /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
\r
216 .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
\r
218 /* Hide visually and from screenreaders, but maintain layout */
\r
219 .invisible { visibility: hidden; }
\r
223 ============================================== */
\r
226 * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
\r
227 a, a:visited { text-decoration: underline; }
\r
228 a[href]:after { content: " (" attr(href) ")"; }
\r
229 abbr[title]:after { content: " (" attr(title) ")"; }
\r
230 .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
\r
231 pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
\r
232 thead { display: table-header-group; } /* h5bp.com/t */
\r
233 tr, img { page-break-inside: avoid; }
\r
234 img { max-width: 100% !important; }
\r
235 @page { margin: 0.5cm; }
\r
236 p, h2, h3 { orphans: 3; widows: 3; }
\r
237 h2, h3 { page-break-after: avoid; }
\r