summaryrefslogtreecommitdiffstats
path: root/src/objects/_popover.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-19 14:46:06 +0200
committerVolpeon <git@volpeon.ink>2024-10-19 14:46:06 +0200
commit3799950b0a869aee0e2725a8aafbb53c26723942 (patch)
tree9d8ee6ee3e9f963358d6463aa6114d4020a90a39 /src/objects/_popover.scss
parentUpdate (diff)
downloadiro-design-3799950b0a869aee0e2725a8aafbb53c26723942.tar.gz
iro-design-3799950b0a869aee0e2725a8aafbb53c26723942.tar.bz2
iro-design-3799950b0a869aee0e2725a8aafbb53c26723942.zip
Update
Diffstat (limited to 'src/objects/_popover.scss')
-rw-r--r--src/objects/_popover.scss45
1 files changed, 15 insertions, 30 deletions
diff --git a/src/objects/_popover.scss b/src/objects/_popover.scss
index 13550eb..f539da5 100644
--- a/src/objects/_popover.scss
+++ b/src/objects/_popover.scss
@@ -1,39 +1,24 @@
1@use 'sass:meta';
1@use 'iro-sass/src/iro-sass' as iro; 2@use 'iro-sass/src/iro-sass' as iro;
2@use '../functions' as fn; 3@use '../props';
3 4
4@include iro.props-namespace('popover') { 5@forward 'popover.vars';
5 @include iro.props-store(( 6@use 'popover.vars' as vars;
6 --dims: (
7 --z-index: 10000,
8 --pad-i: 0,
9 --pad-b: fn.global-dim(--size --85),
10 --separator: fn.global-dim(--size --85),
11 --rounding: fn.global-dim(--rounding),
12 --border: fn.global-dim(--border --thin),
13 ),
14 --colors: (
15 --bg: fn.global-color(--bg-l2),
16 --border: fn.global-color(--border),
17 --filter: drop-shadow(
18 fn.global-dim(--shadow --x)
19 fn.global-dim(--shadow --y)
20 fn.global-dim(--shadow --blur)
21 fn.global-color(--shadow)
22 ),
23 ),
24 ));
25 7
26 @include iro.bem-object(iro.props-namespace()) { 8@mixin styles {
9 @include props.materialize(meta.module-variables('vars'));
10
11 @include iro.bem-object('popover') {
27 position: absolute; 12 position: absolute;
28 inset-block-start: 0; 13 inset-block-start: 0;
29 inset-inline-start: 0; 14 inset-inline-start: 0;
30 z-index: fn.dim(--z-index); 15 z-index: props.get(vars.$z-index);
31 padding-block: fn.dim(--pad-b); 16 padding-block: props.get(vars.$pad-b);
32 padding-inline: fn.dim(--pad-i); 17 padding-inline: props.get(vars.$pad-i);
33 background-color: fn.color(--bg); 18 background-color: props.get(vars.$bg-color);
34 filter: fn.color(--filter); 19 filter: props.get(vars.$filter);
35 border: fn.dim(--border) solid fn.color(--border); 20 border: props.get(vars.$border-width) solid props.get(vars.$border-color);
36 border-radius: fn.dim(--rounding); 21 border-radius: props.get(vars.$rounding);
37 transform: translate(var(--x), var(--y)); 22 transform: translate(var(--x), var(--y));
38 23
39 @include iro.bem-modifier('up-left') { 24 @include iro.bem-modifier('up-left') {