-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSegmentedNav.module.scss
More file actions
82 lines (72 loc) · 1.72 KB
/
SegmentedNav.module.scss
File metadata and controls
82 lines (72 loc) · 1.72 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@use '../../tokens/text-styles' as *;
@use '../../tokens/mixins' as *;
.root {
display: inline-flex;
align-items: center;
}
.list {
display: inline-flex;
align-items: center;
padding: var(--spacing-3xs);
overflow: clip;
background: var(--surface-secondary);
@include smooth-corners(var(--corner-radius-sm));
}
.list > .link + .link {
margin-inline-start: var(--spacing-2xs);
}
.group {
position: relative;
display: inline-flex;
gap: var(--spacing-2xs);
align-items: center;
}
.group + .group {
margin-inline-start: var(--spacing-xs);
padding-inline-start: var(--spacing-xs);
&::before {
content: '';
position: absolute;
top: calc(-1 * var(--spacing-3xs));
bottom: calc(-1 * var(--spacing-3xs));
inset-inline-start: 0;
width: var(--stroke-xs);
background: var(--border-secondary);
}
}
.link {
@include label;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 32px;
padding: 0 var(--spacing-md);
border: var(--stroke-xs) solid transparent;
@include smooth-corners(var(--corner-radius-xs));
color: var(--text-primary);
text-decoration: none;
white-space: nowrap;
outline: none;
transition:
background-color 150ms ease,
border-color 150ms ease,
box-shadow 150ms ease,
color 150ms ease;
&[aria-current='page'] {
background: var(--surface-panel);
border-color: var(--border-primary);
box-shadow: var(--shadow-sm);
color: var(--text-primary);
}
&:focus-visible {
background: var(--surface-panel);
border-color: var(--border-secondary);
box-shadow: var(--input-focus);
color: var(--text-primary);
}
}
@media (prefers-reduced-motion: reduce) {
.link {
transition: none;
}
}