blob: 2bb4d80c2db397ed0040656f492175200767d4b0 (
plain) (
blame)
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
|
@include namespace('container') {
@include store((
--dims: (
--pad-x: 2rem,
--pad-x-sm: 1rem,
--pad-y: $line-height * 2rem,
--pad-y-sm: $line-height * 1rem
)
));
@include layout(namespace()) {
padding-right: prop(--dims --pad-x);
padding-left: prop(--dims --pad-x);
@include modifier('content') {
max-width: $content--width;
margin-right: auto;
margin-left: auto;
}
@include modifier('pad-v') {
padding-top: prop(--dims --pad-y);
padding-bottom: prop(--dims --pad-y);
}
@include media('<=sm') {
padding-right: prop(--dims --pad-x-sm);
padding-left: prop(--dims --pad-x-sm);
@include modifier('pad-v') {
padding-top: prop(--dims --pad-y-sm);
padding-bottom: prop(--dims --pad-y-sm);
}
}
}
}
|