From 44970e49e7599d08fe33c95364102e4b5728c864 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 10 Jun 2022 22:31:06 +0200 Subject: Update --- src/layouts/_container.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index 3e3fcac..04a0e9e 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss @@ -6,9 +6,18 @@ --dims: ( --width: iro.fn-px-to-rem(700px), --width-50: iro.fn-px-to-rem(360px), + --pad-x: fn.global-dim(--size --200), + --pad-y: fn.global-dim(--size --400), ) ), 'dims'); + @include iro.props-store(( + --dims: ( + --pad-x: fn.global-dim(--size --100), + --pad-y: fn.global-dim(--size --300), + ) + ), 'sm'); + @include iro.bem-layout(iro.props-namespace()) { @include iro.bem-modifier('narrow') { max-width: fn.dim(--width); @@ -21,5 +30,15 @@ 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); + } } } -- cgit v1.2.3-70-g09d2