summaryrefslogtreecommitdiffstats
path: root/src/layouts/_media.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/_media.scss')
-rw-r--r--src/layouts/_media.scss40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/layouts/_media.scss b/src/layouts/_media.scss
new file mode 100644
index 0000000..7483f12
--- /dev/null
+++ b/src/layouts/_media.scss
@@ -0,0 +1,40 @@
1@use 'sass:meta';
2@use 'iro-sass/src/iro-sass' as iro;
3@use '../props';
4
5@forward 'media.vars';
6@use 'media.vars' as vars;
7
8@mixin styles {
9 @include props.materialize(meta.module-variables('vars'));
10
11 @include iro.bem-layout('media') {
12 display: flex;
13 gap: props.get(vars.$gap);
14 align-items: center;
15 line-height: 1.4;
16
17 @each $mod, $size in vars.$sizes {
18 @include iro.bem-modifier($mod) {
19 gap: props.get($size);
20 }
21 }
22
23 @include iro.bem-modifier('wrap') {
24 flex-wrap: wrap;
25 }
26
27 @include iro.bem-elem('block') {
28 flex: 0 0 auto;
29
30 @include iro.bem-modifier('shrink', 'main') {
31 flex-shrink: 1;
32 min-inline-size: 0;
33 }
34
35 @include iro.bem-modifier('main') {
36 inline-size: 100%;
37 }
38 }
39 }
40}