summaryrefslogtreecommitdiffstats
path: root/src/layouts/_container.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-18 18:08:24 +0200
committerVolpeon <git@volpeon.ink>2024-10-18 18:08:24 +0200
commit365c56edcc36b5b92902bac01ce44b43d01e8685 (patch)
tree644611792591a76e605068d0c9e230fad6a633e7 /src/layouts/_container.scss
parentRevamped variable management (diff)
downloadiro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.gz
iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.bz2
iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.zip
Refactoring
Diffstat (limited to 'src/layouts/_container.scss')
-rw-r--r--src/layouts/_container.scss27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss
new file mode 100644
index 0000000..34c4bf0
--- /dev/null
+++ b/src/layouts/_container.scss
@@ -0,0 +1,27 @@
1@use 'sass:meta';
2@use 'iro-sass/src/iro-sass' as iro;
3@use '../props';
4
5@forward 'container.vars';
6@use 'container.vars' as vars;
7
8@mixin styles {
9 @include props.materialize(meta.module-variables('vars'));
10
11 @include iro.bem-layout('container') {
12 @each $mod, $size in vars.$fixed-sizes {
13 @include iro.bem-modifier($mod) {
14 max-inline-size: props.get($size);
15 margin-inline: auto;
16 }
17 }
18
19 @include iro.bem-modifier('pad-i') {
20 padding-inline: props.get(vars.$pad-i);
21 }
22
23 @include iro.bem-modifier('pad-b') {
24 padding-block: props.get(vars.$pad-b);
25 }
26 }
27}