blob: 42d128184f35f57470198bee77f4e8d70cf9def5 (
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
37
38
39
40
41
42
43
44
|
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@include iro.props-namespace('container') {
@include iro.props-store((
--dims: (
--width: iro.fn-px-to-rem(700px),
--width-50: iro.fn-px-to-rem(360px),
--pad-x: fn.global-dim(--size --400),
--pad-y: fn.global-dim(--size --800),
)
), 'dims');
@include iro.props-store((
--dims: (
--pad-x: fn.global-dim(--size --200),
--pad-y: fn.global-dim(--size --600),
)
), 'sm');
@include iro.bem-layout(iro.props-namespace()) {
@include iro.bem-modifier('narrow') {
max-width: fn.dim(--width);
margin-right: auto;
margin-left: auto;
}
@include iro.bem-modifier('narrow-50') {
max-width: fn.dim(--width-50);
margin-right: auto;
margin-left: auto;
}
@include iro.bem-modifier('pad-x') {
padding-right: fn.dim(--pad-x);
padding-left: fn.dim(--pad-x);
}
@include iro.bem-modifier('pad-y') {
padding-top: fn.dim(--pad-y);
padding-bottom: fn.dim(--pad-y);
}
}
}
|