PageRenderTime 36ms CodeModel.GetById 16ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/workbook/htmls/src/_html5boilerplate.scss

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