-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathNavListSection.css
53 lines (45 loc) · 1022 Bytes
/
NavListSection.css
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
.header {
padding: 0 var(--gutter-static-two-thirds);
display: flex;
align-items: flex-end;
border-bottom: 1px solid var(--color-border);
}
.label {
margin-bottom: var(--gutter-static-two-thirds);
font-size: var(--font-size-large);
color: var(--color-text-p2);
line-height: 1.2;
transition: color 0.07s;
}
.content {
position: relative;
composes: focusWithinIndicator withNegativeOffset from "../sharedStyles/focusWithinIndicator.css";
}
.root:focus-within {
& .label {
color: var(--color-text);
}
}
/*
Set height of header to add spacing when stacking NavList's
with one or more NavListSection's as children:
<NavList>
<NavListSection>
</NavList>
<-- create spacing -->
<NavList>
<NavListSection>
</NavList>
...and when NavListSections are stacked in general:
<NavList>
<NavListSection>
<NavListSection>
<NavListSection>
</NavList>
*/
.navListSectionControl + .navListSectionControl,
.root + .root {
& .header {
min-height: 62px;
}
}