From 365c56edcc36b5b92902bac01ce44b43d01e8685 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Oct 2024 18:08:24 +0200 Subject: Refactoring --- src/objects/_icon.scss | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/objects/_icon.scss (limited to 'src/objects/_icon.scss') diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss new file mode 100644 index 0000000..7cbb7db --- /dev/null +++ b/src/objects/_icon.scss @@ -0,0 +1,26 @@ +@use 'iro-sass/src/iro-sass' as iro; +@use '../functions' as fn; + +@include iro.props-namespace('icon') { + @include iro.props-store(( + --dims: ( + --stroke: 1.5px, + --size: calc(1 / 14 * 16em), + --valign: -.2em, + ) + )); + + @include iro.bem-object(iro.props-namespace()) { + display: inline; + inline-size: fn.dim(--size); + block-size: fn.dim(--size); + vertical-align: fn.dim(--valign); + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: fn.dim(--stroke); + + @include iro.bem-modifier('block') { + display: block; + } + } +} -- cgit v1.2.3-70-g09d2