diff options
author | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
commit | 50f6acc739f24bfa2ca080d08e90d82f8fa83543 (patch) | |
tree | 404dbe97d34b7e4fc3293c8e6a8c92d9941ac51e /src/layouts/_media.scss | |
parent | Colors (diff) | |
download | iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.gz iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.bz2 iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.zip |
Revamped variable management
Diffstat (limited to 'src/layouts/_media.scss')
-rw-r--r-- | src/layouts/_media.scss | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/layouts/_media.scss b/src/layouts/_media.scss deleted file mode 100644 index c42aa3e..0000000 --- a/src/layouts/_media.scss +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | $sizes: 'gapless' 'sm' 'lg' 'xl' !default; | ||
5 | |||
6 | @include iro.props-namespace('media') { | ||
7 | @include iro.props-store(( | ||
8 | --dims: ( | ||
9 | --gap: fn.global-dim(--size --150), | ||
10 | |||
11 | --gapless: 0, | ||
12 | --sm: fn.global-dim(--size --100), | ||
13 | --lg: fn.global-dim(--size --300), | ||
14 | --xl: fn.global-dim(--size --450), | ||
15 | ) | ||
16 | )); | ||
17 | |||
18 | @include iro.bem-layout(iro.props-namespace()) { | ||
19 | display: flex; | ||
20 | align-items: center; | ||
21 | gap: fn.dim(--gap); | ||
22 | line-height: 1.4; | ||
23 | |||
24 | @each $size in $sizes { | ||
25 | @include iro.bem-modifier($size) { | ||
26 | gap: fn.dim(--#{$size}); | ||
27 | } | ||
28 | } | ||
29 | |||
30 | @include iro.bem-modifier('wrap') { | ||
31 | flex-wrap: wrap; | ||
32 | } | ||
33 | |||
34 | @include iro.bem-elem('block') { | ||
35 | flex: 0 0 auto; | ||
36 | |||
37 | @include iro.bem-modifier('shrink', 'main') { | ||
38 | flex-shrink: 1; | ||
39 | min-inline-size: 0; | ||
40 | } | ||
41 | |||
42 | @include iro.bem-modifier('main') { | ||
43 | inline-size: 100%; | ||
44 | } | ||
45 | } | ||
46 | } | ||
47 | } | ||