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 @ eefc2ac0

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. Reset box-sizing to border-box.
480
 */
481
input[type="search"] {
482
  -webkit-appearance: textfield;
483
  -moz-box-sizing: border-box;
484
  -webkit-box-sizing: border-box;
485
  box-sizing: border-box;
486
  max-width: 100%;
487
}
488

    
489

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

    
498

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

    
509

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

    
519

    
520
/* =============================================================================
521
    Tables
522
   ========================================================================== */
523

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

    
535

    
536
/* =============================================================================
537
    Gutters
538
   ========================================================================== */
539

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

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

    
571

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

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

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

    
589

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

    
598

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

    
607

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

    
622

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

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

    
640

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

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

    
669

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

    
682

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

    
692

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

    
703

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