diff options
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/_card.scss | 9 | ||||
-rw-r--r-- | src/layouts/_flex.scss | 23 | ||||
-rw-r--r-- | src/layouts/_overflow.scss | 9 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/layouts/_card.scss b/src/layouts/_card.scss index 3022da0..e6c379d 100644 --- a/src/layouts/_card.scss +++ b/src/layouts/_card.scss | |||
@@ -14,6 +14,10 @@ | |||
14 | --200: ( | 14 | --200: ( |
15 | --pad-x: fn.global-dim(--size --300), | 15 | --pad-x: fn.global-dim(--size --300), |
16 | --pad-y: fn.global-dim(--size --150), | 16 | --pad-y: fn.global-dim(--size --150), |
17 | ), | ||
18 | --300: ( | ||
19 | --pad-x: fn.global-dim(--size --450), | ||
20 | --pad-y: fn.global-dim(--size --225), | ||
17 | ) | 21 | ) |
18 | ) | 22 | ) |
19 | ), 'dims'); | 23 | ), 'dims'); |
@@ -35,6 +39,11 @@ | |||
35 | gap: fn.dim(--200 --pad-x); | 39 | gap: fn.dim(--200 --pad-x); |
36 | } | 40 | } |
37 | 41 | ||
42 | @include iro.bem-modifier('300') { | ||
43 | padding: fn.dim(--300 --pad-y) fn.dim(--300 --pad-x); | ||
44 | gap: fn.dim(--300 --pad-x); | ||
45 | } | ||
46 | |||
38 | @include iro.bem-modifier('flush') { | 47 | @include iro.bem-modifier('flush') { |
39 | padding: 0; | 48 | padding: 0; |
40 | } | 49 | } |
diff --git a/src/layouts/_flex.scss b/src/layouts/_flex.scss new file mode 100644 index 0000000..e8cdbaa --- /dev/null +++ b/src/layouts/_flex.scss | |||
@@ -0,0 +1,23 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | |||
3 | @include iro.props-namespace('flex') { | ||
4 | @include iro.bem-layout(iro.props-namespace()) { | ||
5 | display: flex; | ||
6 | |||
7 | @include iro.bem-modifier('align-stretch') { | ||
8 | align-items: stretch; | ||
9 | } | ||
10 | |||
11 | @include iro.bem-modifier('align-center') { | ||
12 | align-items: center; | ||
13 | } | ||
14 | |||
15 | @include iro.bem-modifier('align-start') { | ||
16 | align-items: flex-start; | ||
17 | } | ||
18 | |||
19 | @include iro.bem-modifier('align-end') { | ||
20 | align-items: flex-end; | ||
21 | } | ||
22 | } | ||
23 | } | ||
diff --git a/src/layouts/_overflow.scss b/src/layouts/_overflow.scss new file mode 100644 index 0000000..d3af570 --- /dev/null +++ b/src/layouts/_overflow.scss | |||
@@ -0,0 +1,9 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('overflow') { | ||
5 | @include iro.bem-layout(iro.props-namespace()) { | ||
6 | overflow: auto; | ||
7 | scrollbar-color: fn.global-color(--obj-lo) transparent; | ||
8 | } | ||
9 | } | ||