forked from folio-org/stripes-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavListItem.css
53 lines (44 loc) · 1.09 KB
/
NavListItem.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
/**
* NavListItem
*/
@import '../variables.css';
.NavListItem {
composes: interactionStyles hasDot focusDotPositionStart from "../sharedStyles/interactionStyles.css";
align-items: center;
color: var(--color-text);
display: flex;
font-size: var(--font-size-medium);
font-weight: var(--text-weight-medium);
line-height: var(--line-height);
min-height: var(--control-min-size-desktop);
outline: 0;
padding: var(--gutter-static-one-third) var(--gutter-static-two-thirds);
width: 100%;
background-color: var(--color-fill-table-row-even);
&::before {
border-radius: 0;
}
/* for anchor tags */
&:visited {
color: var(--color-text);
}
&:active {
color: #fff;
}
&.striped:nth-child(odd):not(.isActive) {
background-color: var(--color-fill-table-row-odd);
}
&.isActive {
color: #fff;
background-color: var(--color-fill-current);
/* Make sure child elements has
white text color when item is active */
& * {
color: #fff;
}
/* Custom universal interaction styling */
&::after {
background-color: #fff;
}
}
}