-
Notifications
You must be signed in to change notification settings - Fork 90
/
_layout.scss
68 lines (54 loc) · 1.39 KB
/
_layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Layout
// ==========================================================================
// Content
// ==========================================================================
// Allow an ID here, this is useful as it matches the GOV.UK template skiplink
// scss-lint:disable IdSelector
#content {
@extend %site-width-container;
@extend %contain-floats;
padding-bottom: $gutter;
@include media(desktop) {
padding-bottom: $gutter * 3;
}
// DEPRECATED: Tabindex on #content
// https://github.com/alphagov/govuk_elements/pull/534
// We no longer recommend using tabindex on #content
outline: none;
}
// Grid layout
// ==========================================================================
// Usage:
// For two equal columns
// <div class="grid-row">
// <div class="column-one-half">
//
// </div>
// <div class="column-one-half">
//
// </div>
// </div>
// Use .grid-row to define a row for grid columns to sit in
.grid-row {
@extend %grid-row;
}
// Use .grid-column to create a grid column with 15px gutter
// By default grid columns break to become full width at tablet size
.column-quarter,
.column-one-quarter {
@include grid-column(1 / 4);
}
.column-half,
.column-one-half {
@include grid-column(1 / 2);
}
.column-third,
.column-one-third {
@include grid-column(1 / 3);
}
.column-two-thirds {
@include grid-column(2 / 3);
}
.column-full {
@include grid-column(1);
}