24
24
25
25
26
26
27
- /* ============================================================================================================================ **
28
- ** A L L M E D I A
29
- ** ============================================================================================================================ */
27
+ /* ============================================================================================================= **
28
+ ** A L L M E D I A
29
+ ** ============================================================================================================= */
30
30
31
31
/*
32
32
* Styles affecting all viewport widths and print (keep linear and fluid)
35
35
36
36
/* ============================================================================================================= 1. HTML5 ELEMENT DISPLAY */
37
37
38
- /*
39
- * Add display for block-level HTML5 elements
40
- * Display not properly defined in IE6/7/8/9 & FF3
41
- */
42
-
43
38
header ,
44
39
section ,
45
40
article ,
@@ -55,12 +50,7 @@ summary {
55
50
display : block;
56
51
}
57
52
58
- /*
59
- * Add display for embedded HTML5 elements
60
- * Display not properly defined in IE6/7/8/9 & FF3
61
- */
62
-
63
- audio ,
53
+ audio [controls ],
64
54
canvas ,
65
55
video {
66
56
display : inline-block;
@@ -74,23 +64,21 @@ video {
74
64
/* ============================================================================================================= 2. BASE */
75
65
76
66
/*
77
- * 1. Add vertical scrollbar to <html> element
78
- * Keeps page centred in all browsers regardless of content height
79
- * 2. Remove iOS tap highlight color to prevent entire container's being highlighted
80
- * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
81
- * 3. Remove iOS text size adjust without disabling user zoom
82
- * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
67
+ * 1. Add font size to prevent text resizing oddly in IE6/7 when body font-size is set using em units
68
+ * 2. Add vertical scrollbar to keep page centred in all browsers regardless of content height
69
+ * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
70
+ * 4. Remove iOS text size adjust without disabling user zoom
83
71
*/
84
72
85
73
html {
86
- overflow-y : scroll; /* 1 */
87
- -webkit-tap-highlight-color : transparent; /* 2 */
88
- -webkit-text-size-adjust : 100% ; /* 3 */
89
- -ms-text-size-adjust : 100% ;
74
+ font-size : 100% ; /* 1 */
75
+ overflow-y : scroll; /* 2 */
76
+ -webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 ); /* 3 */
77
+ -webkit-text-size-adjust : 100% ; /* 4 */
78
+ -ms-text-size-adjust : 100% ; /* 4 */
90
79
}
91
80
92
81
/*
93
- * Set the base font-size for the document without prevent text resizing in IE6/7
94
82
* N.B. Remember to add a max-width to <body> or container elements as a fallback in certain desktop environments
95
83
*/
96
84
@@ -107,30 +95,27 @@ body {
107
95
*/
108
96
109
97
body ,
110
- input ,
111
98
button ,
112
- textarea ,
113
- select {
99
+ input ,
100
+ select ,
101
+ textarea {
114
102
font-family : sans-serif;
115
103
color : # 333 ;
116
104
}
117
105
118
106
/*
119
- * 1. Prevent border in IE6/7 when <img> is within <a>
120
- * 2. Allow high quality bicubic image resampling for <img> element
121
- * Improves readability when scaled in IE
122
- * - (Read before using) http://code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
107
+ * Allow high quality bicubic image resampling for <img> element
108
+ * Improves readability when scaled in IE
123
109
*/
124
110
125
111
img {
126
- border : 0 ; /* 1 */
127
- /* -ms-interpolation-mode: bicubic; */ /* 2 */
112
+ border : 0 ;
113
+ /* -ms-interpolation-mode: bicubic; */
128
114
}
129
115
130
116
/*
131
117
* Selection highlight
132
- * 1. Remove text-shadow to ensure readability is not compromised
133
- * - http://camendesign.com/design/
118
+ * Remove text-shadow to ensure readability is not compromised
134
119
*/
135
120
136
121
::-moz-selection {
@@ -162,7 +147,6 @@ a:active {
162
147
/*
163
148
* Remove outline on <a> element when active or hovered
164
149
* Improves readability when focused and then also mouse activated
165
- * - http://people.opera.com/patrickl/experiments/keyboard/test
166
150
*/
167
151
168
152
a : hover ,
@@ -203,10 +187,6 @@ dd {
203
187
margin : 0 0 0 40px ;
204
188
}
205
189
206
- /*
207
- * Remove margin and bullets from lists in <nav> elements
208
- */
209
-
210
190
nav ul ,
211
191
nav li {
212
192
list-style : none;
@@ -216,66 +196,33 @@ nav li {
216
196
217
197
/* ............................................................................................................. General typography */
218
198
219
- /*
220
- * Add a visual indication that an abbreviation's expansion is available
221
- * Styling not present in IE6/7/8/9, S4/5, Chrome
222
- */
223
-
224
199
abbr [title ] {
225
200
border-bottom : 1px dotted;
226
201
}
227
202
228
- /*
229
- * Remove default italic font-size from <address>
230
- */
231
-
232
203
address {
233
204
font-style : normal;
234
205
}
235
206
236
- /*
237
- * Add bold font weight to <b> and <strong> elements
238
- * Fixes style set to 'bolder' in FF3/4, S4/5, Chrome
239
- */
240
-
241
207
b ,
242
208
strong {
243
209
font-weight : bold;
244
210
}
245
211
246
-
247
- /*
248
- * Consistent blockquote indentation
249
- */
250
-
251
212
blockquote {
252
- margin : 1.4em 0 1.4 em 30 px ;
213
+ margin : 1.4em 40 px ;
253
214
}
254
215
255
- /*
256
- * Add italic font style to <dfn> element
257
- * Styling not present in S5, Chrome
258
- */
259
-
260
216
dfn {
261
217
font-style : italic;
262
218
}
263
-
264
- /*
265
- * Remove underline from <ins> so it is not confused with links
266
- */
267
219
268
220
ins {
269
221
text-decoration : none;
270
222
color : # 000 ;
271
223
background-color : # ff9 ;
272
224
}
273
225
274
- /*
275
- * Add yellow background and black text to <mark> element
276
- * Styling not present in IE6/7/8/9
277
- */
278
-
279
226
mark {
280
227
font-weight : bold;
281
228
color : # 000 ;
@@ -296,16 +243,14 @@ pre {
296
243
/*
297
244
* Redeclare monospace font family and include a san-serif fallback
298
245
* Fix so that these elements can then be given normal font size
299
- * - http://en.wikipedia.org/wiki/User:Davidgothberg/Test59
300
- * 1. Fixes monospace font family set oddly in IE6
301
246
*/
302
247
303
248
pre ,
304
249
code ,
305
250
kbd ,
306
251
samp {
307
252
font-family : monospace, monospace;
308
- _font-family : 'Courier New' , monospace, monospace; /* 1 */
253
+ _font-family : 'Courier New' , monospace;
309
254
font-size : 1em ;
310
255
}
311
256
@@ -326,18 +271,13 @@ q:after {
326
271
content : "" ;
327
272
}
328
273
329
- /*
330
- * Define font-size and alignment for <small> element
331
- */
332
-
333
274
small {
334
275
font-size : 75% ;
335
276
}
336
277
337
278
/*
338
279
* Position subscript and superscript content without affecting line-height
339
280
* Fixes alignment within multi-line text displayed oddly in all browsers
340
- * - http://gist.github.com/413930
341
281
*/
342
282
343
283
sup ,
@@ -368,31 +308,21 @@ fieldset {
368
308
margin : 0 ;
369
309
}
370
310
371
- /*
372
- * Correct left alignment of <legend> element in IE6/7
373
- */
374
-
375
311
legend {
376
312
* margin-left : -7px ;
377
313
}
378
314
379
315
/*
380
316
* Normalise form elements
381
317
* 1. Remove extra inner space from <input> and <button> in IE6/7
382
- * - http://jehiah.cz/a/button-width-in-ie
383
318
* 2. Remove margins from form elements
384
- * All elements have a 2px margin in Chrome10 & Safari5.
385
- * All <textarea> have 1px vertical margins in Firefox.
386
- * 3. Make font-size equal to body default
319
+ * 3. Make font-size equal to ancestor's
387
320
* 4. Have all browsers use the same line-height.
388
- * Firefox doesn't allow control of line-height for <input> and <button>.
389
- * Corrects button line-height in IE6.
390
321
* 5. Standardised vertical-align
391
- * IE defaults to 'auto'. Firefox defaults to 'text-bottom' for <textarea>
392
322
*/
393
323
394
- input ,
395
324
button ,
325
+ input ,
396
326
select ,
397
327
textarea {
398
328
overflow : visible; /* 1 */
@@ -405,16 +335,14 @@ textarea {
405
335
406
336
/*
407
337
* 1. Display hand cursor for submission elements
408
- * Improves usability and consistency of cursor style between image-type <input> and others
409
- * 2. Define consistent appearance for clickable form elements
410
- * Fixes inability to style clickable <input> types in iOS
338
+ * 2. Fixes inability to style clickable <input> types in iOS
411
339
*/
412
340
341
+ button ,
413
342
input [type = "button" ],
414
- input [type = "submit" ],
415
- button {
416
- cursor : pointer;
417
- -webkit-appearance : button;
343
+ input [type = "submit" ] {
344
+ cursor : pointer; /* 1 */
345
+ -webkit-appearance : button; /* 2 */
418
346
}
419
347
420
348
@@ -441,6 +369,15 @@ input[type="search"] {
441
369
box-sizing : content-box;
442
370
}
443
371
372
+ /*
373
+ * Remove WebKit search decoration
374
+ * Addresses inner padding displaying oddly in S5 Chrome on OSX
375
+ */
376
+
377
+ input [type = "search" ]::-webkit-search-decoration {
378
+ -webkit-appearance : none;
379
+ }
380
+
444
381
/*
445
382
* Remove extra inner padding and border in FF3/4
446
383
* - http://www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
@@ -453,10 +390,8 @@ button::-moz-focus-inner {
453
390
}
454
391
455
392
/*
456
- * 1. Disable default horizontal scrollbar for <textarea> element
457
- * Scrollbar displayed by default in IE6/7/8/9
393
+ * 1. Disable default horizontal scrollbar for <textarea> element in IE6/7/8/9
458
394
* 2. Align <textarea> with top when inline
459
- * Improves usability and corrects baseline inconsistency in Firefox 3/4
460
395
*/
461
396
462
397
textarea {
493
428
* Clear an element's floated children using generated content
494
429
* Inclusion of :before consistently prevents margin collapse in modern browsers
495
430
* Improves visual consistency between modern browsers and IE6/7
496
- * - http://nicolasgallagher.com/micro-clearfix-hack/
497
431
*/
498
432
499
433
.cf {
520
454
521
455
522
456
523
- /* ============================================================================================================================ **
524
- ** S C R E E N (480+)
525
- ** ============================================================================================================================ */
457
+ /* ============================================================================================================= **
458
+ ** S C R E E N (480+)
459
+ ** ============================================================================================================= */
526
460
527
461
@media only screen and (min-width : 480px ) {
528
462
537
471
538
472
539
473
540
- /* ============================================================================================================================ **
541
- ** S C R E E N (768+)
542
- ** ============================================================================================================================ */
474
+ /* ============================================================================================================= **
475
+ ** S C R E E N (768+)
476
+ ** ============================================================================================================= */
543
477
544
478
@media only screen and (min-width : 768px ) {
545
479
@@ -554,15 +488,14 @@ td {
554
488
555
489
556
490
557
- /* ============================================================================================================================ **
558
- ** P R I N T
559
- ** ============================================================================================================================ */
491
+ /* ============================================================================================================= **
492
+ ** P R I N T
493
+ ** ============================================================================================================= */
560
494
561
495
@media print {
562
496
563
497
/*
564
498
* Print-only style adjustements inlined to avoid required HTTP connection
565
- * - http://www.phpied.com/delay-loading-your-print-css/
566
499
*/
567
500
568
501
* {
0 commit comments