blob: 1093ad8fc2e716aec2371d1b1d6ea2f5b2a89d78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@include iro.props-namespace('list-group') {
@include iro.props-store((
--dims: (
--pad-x: fn.global-dim(--size --175),
--pad-y: fn.global-dim(--size --125),
--rounding: 3px,
),
), 'dims');
@include iro.props-store((
--colors: (
--bg: fn.global-color(--bg-hi2),
--border: fn.global-color(--obj),
--hover: fn.global-color(--bg),
--press: fn.global-color(--obj-hi),
)
), 'colors');
@include iro.bem-object(iro.props-namespace()) {
border: 1px solid fn.color(--border);
border-radius: fn.dim(--rounding);
background-color: fn.color(--bg);
@include iro.bem-elem('item') {
padding: fn.dim(--pad-y) fn.dim(--pad-x);
@include iro.bem-next-twin-elem {
border-top: 1px solid fn.color(--border);
}
@include iro.bem-multi('&:link, &:visited, &:enabled', 'modifier' 'interactive') {
&:hover {
background-color: fn.color(--hover);
}
&:active {
background-color: fn.color(--press);
}
}
}
}
}
|