From bdd534a2fea536f4143d29dd26138a4705c1f825 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 8 Mar 2022 22:00:33 +0100 Subject: Improved dialog --- src/layouts/_card.scss | 9 +++++++++ src/layouts/_flex.scss | 23 +++++++++++++++++++++++ src/layouts/_overflow.scss | 9 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/layouts/_flex.scss create mode 100644 src/layouts/_overflow.scss (limited to 'src/layouts') 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 @@ --200: ( --pad-x: fn.global-dim(--size --300), --pad-y: fn.global-dim(--size --150), + ), + --300: ( + --pad-x: fn.global-dim(--size --450), + --pad-y: fn.global-dim(--size --225), ) ) ), 'dims'); @@ -35,6 +39,11 @@ gap: fn.dim(--200 --pad-x); } + @include iro.bem-modifier('300') { + padding: fn.dim(--300 --pad-y) fn.dim(--300 --pad-x); + gap: fn.dim(--300 --pad-x); + } + @include iro.bem-modifier('flush') { padding: 0; } 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 @@ +@use 'iro-sass/src/index' as iro; + +@include iro.props-namespace('flex') { + @include iro.bem-layout(iro.props-namespace()) { + display: flex; + + @include iro.bem-modifier('align-stretch') { + align-items: stretch; + } + + @include iro.bem-modifier('align-center') { + align-items: center; + } + + @include iro.bem-modifier('align-start') { + align-items: flex-start; + } + + @include iro.bem-modifier('align-end') { + align-items: flex-end; + } + } +} 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 @@ +@use 'iro-sass/src/index' as iro; +@use '../functions' as fn; + +@include iro.props-namespace('overflow') { + @include iro.bem-layout(iro.props-namespace()) { + overflow: auto; + scrollbar-color: fn.global-color(--obj-lo) transparent; + } +} -- cgit v1.2.3-54-g00ecf