Projet

Général

Profil

Paste
Télécharger (13,2 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_subtheme / sass / global.base.scss @ 74f6bef0

1

    
2
// _base.scss imports _custom.scss and other partials.
3
@import "base";
4

    
5
/*
6
 * @file
7
 * global.base
8
 *
9
 * - normalize with small modifications for Drupal and AT: http://necolas.github.com/normalize.css/
10
 * - Gutter widths, see $gutter-width in _custom.scss
11
 * - Default container alignment.
12
 * - Flexible images and media declarations.
13
 * - Copies of the SCSS mixins for reference, which includes an improved
14
 *   element-invisible and focusable styles.
15
 */
16

    
17
/* =============================================================================
18
    HTML5 display definitions
19
   ========================================================================== */
20

    
21
/*
22
 * Corrects block display not defined in IE6/7/8/9 & FF3
23
 */
24
article,
25
aside,
26
details,
27
figcaption,
28
figure,
29
footer,
30
header,
31
hgroup,
32
main,
33
nav,
34
section,
35
summary {
36
  display: block;
37
}
38

    
39

    
40
/*
41
 * Corrects inline-block display not defined in IE6/7/8/9 & FF3
42
 */
43
audio,
44
canvas,
45
video {
46
  display: inline-block;
47
  *display: inline;
48
  *zoom: 1;
49
}
50

    
51

    
52
/*
53
 * Prevents modern browsers from displaying 'audio' without controls
54
 * Remove excess height in iOS5 devices
55
 */
56
audio:not([controls]) {
57
  display: none;
58
  height: 0;
59
}
60

    
61

    
62
/*
63
 * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
64
 * Known issue: no IE6 support
65
 */
66
[hidden] {
67
  display: none;
68
}
69

    
70

    
71
/* =============================================================================
72
    Base
73
   ========================================================================== */
74

    
75
/*
76
 * If you are using the themes Responsive JS feature (media_queries.js) do not
77
 * set a font-family on the html element, use body.
78
 *
79
 * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
80
 *    http://clagnut.com/blog/348/#c790
81
 * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
82
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
83
 */
84
html {
85
  font-size: 100%;
86
  -webkit-text-size-adjust: 100%;
87
  line-height: 1.5;
88
  height: 100%;
89
  overflow-y: scroll;
90
}
91

    
92

    
93
/*
94
 * 1 . Addresses margins handled incorrectly in IE6/7
95
 */
96
body {
97
  min-height: 100%;
98
  margin: 0;
99
  padding: 0;
100
  -webkit-font-smoothing: antialiased;
101
  font-smoothing: antialiased;
102
  text-rendering: optimizeLegibility\9; /* Only IE, can mess with Android */
103
}
104

    
105

    
106
/*
107
 * Addresses font-family inconsistency between 'textarea' and other form elements.
108
 */
109
button,
110
input,
111
select,
112
textarea {
113
  font-family: sans-serif;
114
}
115

    
116

    
117
/* =============================================================================
118
    Links
119
   ========================================================================== */
120

    
121
/*
122
 * Addresses outline displayed oddly in Chrome
123
 */
124
a:focus {
125
  outline: thin dotted;
126
}
127

    
128

    
129
/*
130
 * Improves readability when focused and also mouse hovered in all browsers
131
 * people.opera.com/patrickl/experiments/keyboard/test
132
 */
133
a:hover,
134
a:active {
135
  outline: 0;
136
}
137

    
138

    
139
/* =============================================================================
140
    Typography
141
   ========================================================================== */
142

    
143
/*
144
 * Headings
145
 *
146
 * Addresses font sizes and margins set differently in IE6/7
147
 * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
148
 */
149

    
150
h1 {
151
  font-size: 2em;
152
  margin: 0.67em 0;
153
}
154

    
155

    
156
h2 {
157
  font-size: 1.5em;
158
  margin: 0.83em 0;
159
}
160

    
161

    
162
h3 {
163
  font-size: 1.17em;
164
  margin: 1em 0;
165
}
166

    
167

    
168
h4 {
169
  font-size: 1em;
170
  margin: 1.33em 0;
171
}
172

    
173

    
174
h5 {
175
  font-size: 0.83em;
176
  margin: 1.67em 0;
177
}
178

    
179

    
180
h6 {
181
  font-size: 0.75em;
182
  margin: 2.33em 0;
183
}
184

    
185

    
186
/*
187
 * Addresses styling not present in IE7/8/9, S5, Chrome
188
 */
189
abbr[title] {
190
  border-bottom: 1px dotted;
191
}
192

    
193

    
194
/*
195
 * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
196
 */
197
b,
198
strong {
199
  font-weight: bold;
200
}
201

    
202

    
203
blockquote {
204
  margin: 1em 40px;
205
}
206

    
207

    
208
/*
209
 * Addresses styling not present in S5, Chrome
210
 */
211
dfn {
212
  font-style: italic;
213
}
214

    
215

    
216
/*
217
 * Addresses styling not present in IE6/7/8/9
218
 */
219
mark {
220
  background: #ff0;
221
  color: #000;
222
}
223

    
224

    
225
/*
226
 * Addresses margins set differently in IE6/7
227
 */
228
p,
229
pre {
230
  margin: 0 0 1.5em;
231
}
232

    
233

    
234
/*
235
 * Corrects font family set oddly in IE6, S4/5, Chrome
236
 * en.wikipedia.org/wiki/User:Davidgothberg/Test59
237
 */
238
pre,
239
code,
240
kbd,
241
samp {
242
  font-family: monospace, serif;
243
  _font-family: 'courier new', monospace;
244
  font-size: 1em;
245
}
246

    
247

    
248
/*
249
 * Improves readability of pre-formatted text in all browsers
250
 */
251
pre {
252
  white-space: pre;
253
  white-space: pre-wrap;
254
  word-wrap: break-word;
255
}
256

    
257

    
258
/*
259
 * 1. Addresses CSS quotes not supported in IE6/7
260
 * 2. Addresses quote property not supported in S4
261
 */
262

    
263
q {
264
  quotes: none;
265
}
266

    
267

    
268
q:before,
269
q:after {
270
  content: '';
271
  content: none;
272
}
273

    
274

    
275
small {
276
  font-size: 75%;
277
}
278

    
279

    
280
/*
281
 * Prevents sub and sup affecting line-height in all browsers
282
 * gist.github.com/413930
283
 */
284
sub,
285
sup {
286
  font-size: 75%;
287
  line-height: 0;
288
  position: relative;
289
  vertical-align: baseline;
290
}
291

    
292

    
293
sup {
294
  top: -0.5em;
295
}
296

    
297

    
298
sub {
299
  bottom: -0.25em;
300
}
301

    
302

    
303
/* =============================================================================
304
    Lists
305
   ========================================================================== */
306

    
307
/*
308
 * Addresses margins set differently in IE6/7
309
 */
310
dl,
311
menu,
312
ol,
313
ul {
314
  margin: 1em 0;
315
}
316

    
317

    
318
dd {
319
  margin: 0 0 0 40px;
320
}
321

    
322

    
323
/*
324
 * Addresses paddings set differently in IE6/7
325
 */
326
menu,
327
ol,
328
ul {
329
  padding: 0 0 0 40px;
330
}
331

    
332

    
333
/*
334
 * Corrects list images handled incorrectly in IE7
335
 */
336
nav ul,
337
nav ol {
338
  list-style: none;
339
  list-style-image: none;
340
}
341

    
342

    
343
/* =============================================================================
344
    Embedded content
345
   ========================================================================== */
346

    
347
/*
348
 * 1. Remove border when inside 'a' element in IE6/7/8/9, FF3
349
 * 2. Improves image quality when scaled in IE7
350
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
351
 */
352
img {
353
  /* border: 0; */  /* Drupal core already does this, uncomment if you need it */
354
  -ms-interpolation-mode: bicubic;
355
}
356

    
357

    
358
/*
359
 * Corrects overflow displayed oddly in IE9
360
 */
361
svg:not(:root) {
362
  overflow: hidden;
363
}
364

    
365

    
366
/* =============================================================================
367
    Figures
368
   ========================================================================== */
369

    
370
/*
371
 * Addresses margin not present in IE6/7/8/9, S5, O11
372
 */
373
figure {
374
  margin: 0;
375
}
376

    
377

    
378
/* =============================================================================
379
    Forms
380
   ========================================================================== */
381

    
382
/*
383
 * Corrects margin displayed oddly in IE6/7
384
 */
385
form {
386
  margin: 0;
387
}
388

    
389

    
390
/*
391
 * Define consistent margin, and padding
392
 */
393
fieldset {
394
  margin: 0 2px;
395
  padding: 0.35em 0.625em 0.75em;
396
}
397

    
398

    
399
/*
400
 * 1. Corrects color not being inherited in IE6/7/8/9
401
 * 2. Corrects text not wrapping in FF3
402
 * 3. Corrects alignment displayed oddly in IE6/7
403
 */
404
legend {
405
  border: 0;
406
  padding: 0;
407
  white-space: normal;
408
  *margin-left: -7px;
409
}
410

    
411

    
412
/*
413
 * 1. Corrects font size not being inherited in all browsers
414
 * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
415
 * 3. Improves appearance and consistency in all browsers
416
 */
417
button,
418
input,
419
select,
420
textarea {
421
  font-size: 100%;
422
  margin: 0;
423
  vertical-align: baseline;
424
  *vertical-align: middle;
425
}
426

    
427

    
428
/*
429
 * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
430
 */
431
button,
432
input {
433
  line-height: normal;
434
}
435

    
436

    
437
/*
438
 * 1. Improves usability and consistency of cursor style between image-type 'input' and others
439
 * 2. Corrects inability to style clickable 'input' types in iOS
440
 * 3. Removes inner spacing in IE7 without affecting normal text inputs
441
 *    Known issue: inner spacing remains in IE6
442
 */
443
button,
444
input[type="button"],
445
input[type="reset"],
446
input[type="submit"] {
447
  cursor: pointer;
448
  -webkit-appearance: button;
449
  *overflow: visible;
450
}
451

    
452

    
453
/*
454
 * Re-set default cursor for disabled elements
455
 */
456
button[disabled],
457
input[disabled] {
458
  cursor: default;
459
}
460

    
461

    
462
/*
463
 * 1. Addresses box sizing set to content-box in IE8/9
464
 * 2. Removes excess padding in IE8/9
465
 * 3. Removes excess padding in IE7
466
 *    Known issue: excess padding remains in IE6
467
 */
468
input[type="checkbox"],
469
input[type="radio"] {
470
  box-sizing: border-box;
471
  padding: 0;
472
  *height: 13px;
473
  *width: 13px;
474
}
475

    
476

    
477
/*
478
 * 1. Addresses appearance set to searchfield in S5, Chrome
479
 * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
480
 */
481
input[type="search"] {
482
  -webkit-appearance: textfield;
483
  -moz-box-sizing: content-box;
484
  -webkit-box-sizing: content-box;
485
  box-sizing: content-box;
486
}
487

    
488

    
489
/*
490
 * Removes inner padding and search cancel button in S5, Chrome on OS X
491
 */
492
input[type="search"]::-webkit-search-decoration,
493
input[type="search"]::-webkit-search-cancel-button {
494
  -webkit-appearance: none;
495
}
496

    
497

    
498
/*
499
 * Removes inner padding and border in FF3+
500
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
501
 */
502
button::-moz-focus-inner,
503
input::-moz-focus-inner {
504
  border: 0;
505
  padding: 0;
506
}
507

    
508

    
509
/*
510
 * 1. Removes default vertical scrollbar in IE6/7/8/9
511
 * 2. Improves readability and alignment in all browsers
512
 */
513
textarea {
514
  overflow: auto;
515
  vertical-align: top;
516
}
517

    
518

    
519
/* =============================================================================
520
    Tables
521
   ========================================================================== */
522

    
523
/*
524
 * 1. Remove most spacing between table cells
525
 */
526
table {
527
  border: 1px solid;
528
  border-spacing: 0;
529
  border-collapse: collapse;
530
  font-size: inherit;
531
  font: 100%;
532
}
533

    
534

    
535
/* =============================================================================
536
    Gutters
537
   ========================================================================== */
538

    
539
/*
540
 * If gutters are set in theme settings they will override these values,
541
 * see Extensions > Modify Output > Design
542
 * $gutter-width is set in _base.scss
543
 */
544
#main-content,
545
.block-inner,
546
.pane-inner,
547
.menu-wrapper,
548
.branding-elements,
549
.breadcrumb-wrapper,
550
.attribution,
551
.at-panel .rounded-corner,
552
.block-panels-mini > .block-title,
553
.rendered-by-ds .panel-display .region-inner,
554
div.messages,
555
.at-gutter {
556
  margin-left: $gutter-width;
557
  margin-right: $gutter-width;
558
}
559

    
560
/*
561
 * Panel pages need negative margin equal to the gutter width applied to #content,
562
 * this is taken care of in theme settings as per above for normal gutters
563
 */
564
#content .panel-display,
565
#content .panel-flexible {
566
  margin-left: -$gutter-width;
567
  margin-right: -$gutter-width;
568
}
569

    
570

    
571
/* =============================================================================
572
    Flexible Media and Cross browser improvements
573
   ========================================================================== */
574

    
575
/*
576
 * - This can cause issues in table cells where no width is set on the column,
577
 *   only in some versions of webkit and IE 7/8.
578
 * - declaring the width attribute on image elements and using max-width causes
579
 *   the "dissappering images" bug in IE8.
580
 * - Mapping services such as Google Maps may break also, see below for fixes.
581
 */
582

    
583
img {
584
  height: auto;
585
  -ms-interpolation-mode: bicubic;
586
}
587

    
588

    
589
/* Ethan Marcotte - http://front.ie/l8rJaA */
590
img,
591
embed,
592
object,
593
video {
594
  max-width: 100%;
595
}
596

    
597

    
598
/* Disable flexiblity for IE8 and below */
599
.lt-ie9 img,
600
.lt-ie9 object,
601
.lt-ie9 embed,
602
.lt-ie9 video {
603
  max-width: none;
604
}
605

    
606

    
607
/* Override max-width 100% for map displays */
608
#map img,
609
.gmap img,
610
.view-gmap img,
611
.openlayers-map img,
612
#getlocations_map_canvas img,
613
#locationmap_map img,
614
.geofieldMap img,
615
.views_horizontal_slider img,
616
.geolocation-map img,
617
.geolocation-views-map img {
618
  max-width: none !important;
619
}
620

    
621

    
622
/* =============================================================================
623
    Misc helpers, Accessibility classes etc
624
   ========================================================================== */
625

    
626
/* Prevent overflowing content */
627
header[role=banner],
628
.content-inner,
629
.nav,
630
.region-sidebar-first,
631
.region-sidebar-second,
632
.region-secondary-content,
633
.region-tertiary-content,
634
.region-footer {
635
  overflow: visible;
636
  word-wrap: break-word;
637
}
638

    
639

    
640
/**
641
 * General classes for hiding content. These are all included as SASS mixins.
642
 * @SEE: sass/_custom.scss
643
 */
644

    
645
/**
646
 * Image replacement
647
 * Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
648
 * Additional helpers from http://html5boilerplate.com/docs/css/
649
 */
650
.ir {
651
  /* Kellum Method */
652
  display: block !important;
653
  text-indent: 100%;
654
  white-space: nowrap;
655
  overflow: hidden;
656
  /* Remove the default border from elements like button */
657
  border: 0;
658
  /* Crush the text down to take up no space */
659
  font: 0/0 a;
660
  /* Remove any text shadows */
661
  text-shadow: none;
662
  /* Hide any residual text in Safari 4 and any mobile devices that may need it */
663
  color: transparent;
664
  /* Hide the default background color on elements like button */
665
  background-color: transparent;
666
}
667

    
668

    
669
/* More robust element-invisible and element-focuable classes */
670
.element-invisible {
671
  border: 0;
672
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
673
  clip: rect(1px, 1px, 1px, 1px);
674
  height: 1px;
675
  overflow: hidden;
676
  padding: 0;
677
  position: absolute;
678
  width: 1px;
679
}
680

    
681

    
682
.element-invisible.element-focusable:active,
683
.element-invisible.element-focusable:focus {
684
  clip: auto;
685
  height: auto;
686
  overflow: visible;
687
  position: static;
688
  width: auto;
689
}
690

    
691

    
692
/* Shift content offscreen, can be usefull when you reall need to do this */
693
.offscreen {
694
  position: absolute;
695
  top: -99999em;
696
  width: 1px;
697
  height: 1px;
698
  overflow: hidden;
699
  outline: 0;
700
}
701

    
702

    
703
/* Hide content from all users */
704
.element-hidden {
705
  display: none;
706
}