blob: 81e4d4fd805a76cbc480d8239af347bf977c4471 (
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
46
47
48
49
50
51
52
53
|
@include namespace('header') {
@include store((
--colors: (
--fg: prop(--colors --fg-hi, $global: true),
--hover: (
--fg: prop(--colors --fg-lo, $global: true),
),
--active: (
--fg: prop(--colors --fg-lo, $global: true),
)
),
--dims: (
--height: 4rem,
--pad-x: .6rem,
)
));
@include component(namespace()) {
display: flex;
flex-direction: row;
justify-content: flex-start;
height: prop(--dims --height);
@include element('item') {
padding: 0 prop(--dims --pad-x);
line-height: prop(--dims --height);
color: prop(--colors --fg);
text-decoration: none;
&:hover {
color: prop(--colors --hover --fg);
}
@include modifier('icon') {
display: flex;
align-items: center;
justify-content: center;
padding: 0;
width: prop(--dims --height);
}
@include modifier('active') {
font-weight: bold;
color: prop(--colors --active --fg);
}
}
@include element('icon') {
width: 1.5em;
height: 1.5em;
}
}
}
|