diff options
author | Volpeon <git@volpeon.ink> | 2024-11-23 17:44:29 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-11-23 17:44:29 +0100 |
commit | e3751b8b1c7912161e0c20d9168c1fb0a6bee3d9 (patch) | |
tree | 16bf278dd631d7b09146465f9beb035246439a4e | |
parent | Test end (diff) | |
download | iro-design-e3751b8b1c7912161e0c20d9168c1fb0a6bee3d9.tar.gz iro-design-e3751b8b1c7912161e0c20d9168c1fb0a6bee3d9.tar.bz2 iro-design-e3751b8b1c7912161e0c20d9168c1fb0a6bee3d9.zip |
Add layers mixin
-rw-r--r-- | src/_iro-design.scss | 1 | ||||
-rw-r--r-- | src/_layers.scss | 3 | ||||
-rw-r--r-- | src/objects/_card.scss | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/_iro-design.scss b/src/_iro-design.scss index 2010a2d..04857e3 100644 --- a/src/_iro-design.scss +++ b/src/_iro-design.scss | |||
@@ -23,6 +23,7 @@ $breakpoints: ( | |||
23 | @forward 'config' as config--*; | 23 | @forward 'config' as config--*; |
24 | @forward 'props' as props--*; | 24 | @forward 'props' as props--*; |
25 | @forward 'core' as core--*; | 25 | @forward 'core' as core--*; |
26 | @forward 'layers' as layers--*; | ||
26 | 27 | ||
27 | @forward 'layouts/button-group' as l-button-group--*; | 28 | @forward 'layouts/button-group' as l-button-group--*; |
28 | @forward 'layouts/card-list' as l-card-list--*; | 29 | @forward 'layouts/card-list' as l-card-list--*; |
diff --git a/src/_layers.scss b/src/_layers.scss new file mode 100644 index 0000000..cc3bb50 --- /dev/null +++ b/src/_layers.scss | |||
@@ -0,0 +1,3 @@ | |||
1 | @mixin styles { | ||
2 | @layer scope, theme, object, layout, component, utility; | ||
3 | } | ||
diff --git a/src/objects/_card.scss b/src/objects/_card.scss index 6628eab..ff95526 100644 --- a/src/objects/_card.scss +++ b/src/objects/_card.scss | |||
@@ -14,7 +14,7 @@ | |||
14 | position: relative; | 14 | position: relative; |
15 | display: flex; | 15 | display: flex; |
16 | flex-direction: column; | 16 | flex-direction: column; |
17 | margin-inline: calc(-1 * props.get(vars.$key-focus--border-width)); | 17 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); |
18 | background-color: props.get(vars.$bg-color); | 18 | background-color: props.get(vars.$bg-color); |
19 | background-clip: content-box; | 19 | background-clip: content-box; |
20 | border: props.get(vars.$key-focus--border-offset) solid transparent; | 20 | border: props.get(vars.$key-focus--border-offset) solid transparent; |