-
Notifications
You must be signed in to change notification settings - Fork 250
Expand file tree
/
Copy pathtabs.css
More file actions
43 lines (38 loc) · 997 Bytes
/
Copy pathtabs.css
File metadata and controls
43 lines (38 loc) · 997 Bytes
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
@layer components {
[role="tablist"] {
display: inline-flex;
align-items: center;
gap: var(--space-1);
padding: var(--space-1);
background-color: var(--muted);
border-radius: var(--radius-medium);
}
[role="tab"] {
display: inline-flex;
align-items: center;
justify-content: center;
padding: var(--space-2) var(--space-3);
font-size: var(--text-7);
font-weight: var(--font-medium);
white-space: nowrap;
background-color: transparent;
color: var(--foreground);
border: none;
border-radius: calc(var(--radius-medium) - 2px);
cursor: pointer;
transition: background-color var(--transition-fast), color var(--transition-fast);
&:hover {
color: var(--muted-foreground);
}
&[aria-selected="true"] {
background-color: var(--background);
box-shadow: var(--shadow-small);
}
}
[role="tabpanel"] {
padding: var(--space-4) 0;
&:focus-visible {
outline: none;
}
}
}