diff options
author | Volpeon <git@volpeon.ink> | 2022-02-11 18:49:39 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-11 18:49:39 +0100 |
commit | 75857aedd1c6b58e6cf5ffaf184e994e4e2d52db (patch) | |
tree | 1f9d7a4be948ef54cbaf23e8b574d988edfdff70 /src | |
parent | Added backdrop and dialog (diff) | |
download | iro-design-75857aedd1c6b58e6cf5ffaf184e994e4e2d52db.tar.gz iro-design-75857aedd1c6b58e6cf5ffaf184e994e4e2d52db.tar.bz2 iro-design-75857aedd1c6b58e6cf5ffaf184e994e4e2d52db.zip |
Added button group
Diffstat (limited to 'src')
-rw-r--r-- | src/index.scss | 1 | ||||
-rw-r--r-- | src/layouts/_button-group.scss | 15 | ||||
-rw-r--r-- | src/objects/_dialog.scss | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/src/index.scss b/src/index.scss index 3796c18..21054db 100644 --- a/src/index.scss +++ b/src/index.scss | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | @use 'layouts/card'; | 7 | @use 'layouts/card'; |
8 | @use 'layouts/container'; | 8 | @use 'layouts/container'; |
9 | @use 'layouts/button-group'; | ||
9 | 10 | ||
10 | @use 'objects/icon'; | 11 | @use 'objects/icon'; |
11 | @use 'objects/heading'; | 12 | @use 'objects/heading'; |
diff --git a/src/layouts/_button-group.scss b/src/layouts/_button-group.scss new file mode 100644 index 0000000..aee2000 --- /dev/null +++ b/src/layouts/_button-group.scss | |||
@@ -0,0 +1,15 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('button-group') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --spacing: 1rem | ||
8 | ), | ||
9 | ), 'dims'); | ||
10 | |||
11 | @include iro.bem-layout(iro.props-namespace()) { | ||
12 | display: flex; | ||
13 | gap: 1rem; | ||
14 | } | ||
15 | } | ||
diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss index 453b32b..4f18b08 100644 --- a/src/objects/_dialog.scss +++ b/src/objects/_dialog.scss | |||
@@ -50,8 +50,8 @@ | |||
50 | } | 50 | } |
51 | 51 | ||
52 | @include iro.bem-elem('footer') { | 52 | @include iro.bem-elem('footer') { |
53 | padding-top: fn.dim(--pad-y); | 53 | justify-content: flex-end; |
54 | text-align: right; | 54 | padding-top: fn.dim(--pad-y); |
55 | } | 55 | } |
56 | } | 56 | } |
57 | } | 57 | } |