summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/_config.scss10
-rw-r--r--src/_objects.scss1
-rw-r--r--src/_utils.scss4
-rw-r--r--src/objects/_list-group.scss45
4 files changed, 53 insertions, 7 deletions
diff --git a/src/_config.scss b/src/_config.scss
index cdbd02c..8520b9e 100644
--- a/src/_config.scss
+++ b/src/_config.scss
@@ -20,12 +20,12 @@ $wanted-grays: (
20 --2: -1.1, 20 --2: -1.1,
21 --3: 1, 21 --3: 1,
22 22
23 --4: 1.15, 23 --4: 1.1,
24 --5: 1.3, 24 --5: 1.25,
25 --6: 1.7, 25 --6: 1.5,
26 26
27 --7: 2.4, 27 --7: 2.2,
28 --8: 3.3, 28 --8: 3.1,
29 --9: 6, 29 --9: 6,
30 --10: 11, 30 --10: 11,
31 --11: 19, 31 --11: 19,
diff --git a/src/_objects.scss b/src/_objects.scss
index 4049101..ce91f5b 100644
--- a/src/_objects.scss
+++ b/src/_objects.scss
@@ -16,3 +16,4 @@
16@use 'objects/backdrop'; 16@use 'objects/backdrop';
17@use 'objects/dialog'; 17@use 'objects/dialog';
18@use 'objects/lightbox'; 18@use 'objects/lightbox';
19@use 'objects/list-group';
diff --git a/src/_utils.scss b/src/_utils.scss
index ce0220a..1969a82 100644
--- a/src/_utils.scss
+++ b/src/_utils.scss
@@ -63,7 +63,7 @@ $dirs: (
63 margin#{$suffix}: auto; 63 margin#{$suffix}: auto;
64 } 64 }
65 65
66 @each $size in (0 10 50 100 200) { 66 @each $size in (0 10 50 100 200 400) {
67 @include iro.bem-utility('m#{$dir}-#{$size}') { 67 @include iro.bem-utility('m#{$dir}-#{$size}') {
68 margin#{$suffix}: fn.global-dim(--size --#{$size}); 68 margin#{$suffix}: fn.global-dim(--size --#{$size});
69 } 69 }
@@ -75,7 +75,7 @@ $dirs: (
75 padding#{$suffix}: auto; 75 padding#{$suffix}: auto;
76 } 76 }
77 77
78 @each $size in (0 10 50 100 200) { 78 @each $size in (0 10 50 100 200 400) {
79 @include iro.bem-utility('p#{$dir}-#{$size}') { 79 @include iro.bem-utility('p#{$dir}-#{$size}') {
80 padding#{$suffix}: fn.global-dim(--size --#{$size}); 80 padding#{$suffix}: fn.global-dim(--size --#{$size});
81 } 81 }
diff --git a/src/objects/_list-group.scss b/src/objects/_list-group.scss
new file mode 100644
index 0000000..521bc19
--- /dev/null
+++ b/src/objects/_list-group.scss
@@ -0,0 +1,45 @@
1@use 'iro-sass/src/index' as iro;
2@use '../functions' as fn;
3
4@include iro.props-namespace('list-group') {
5 @include iro.props-store((
6 --dims: (
7 --pad-x: fn.global-dim(--size --175),
8 --pad-y: fn.global-dim(--size --125),
9 --rounding: 3px,
10 ),
11 ), 'dims');
12
13 @include iro.props-store((
14 --colors: (
15 --bg: fn.global-color(--bg-hi2),
16 --border: fn.global-color(--obj),
17 --hover: fn.global-color(--bg),
18 --press: fn.global-color(--obj-hi),
19 )
20 ), 'colors');
21
22 @include iro.bem-object(iro.props-namespace()) {
23 border: 1px solid fn.color(--border);
24 border-radius: fn.dim(--rounding);
25 background-color: fn.color(--bg);
26
27 @include iro.bem-elem('item') {
28 padding: fn.dim(--pad-y) fn.dim(--pad-x);
29
30 @include iro.bem-next-twin-elem {
31 border-top: 1px solid fn.color(--border);
32 }
33
34 @include iro.bem-multi('&:link, &:visited, &:enabled', 'modifier' 'action') {
35 &:hover {
36 background-color: fn.color(--hover);
37 }
38
39 &:active {
40 background-color: fn.color(--press);
41 }
42 }
43 }
44 }
45}