-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.css
More file actions
65 lines (58 loc) · 1.48 KB
/
tabs.css
File metadata and controls
65 lines (58 loc) · 1.48 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
@layer aw-components {
.aw-tabs {
--aw-tabs-border: #e2e8f0;
--aw-tabs-text: #475569;
--aw-tabs-active-text: #0f172a;
--aw-tabs-active-border: #3b82f6;
--aw-tabs-hover-bg: #f8fafc;
--aw-tabs-font: system-ui, -apple-system, sans-serif;
--aw-tabs-radius: 6px;
font-family: var(--aw-tabs-font);
}
.aw-tablist {
display: flex;
gap: 0;
border-bottom: 1px solid var(--aw-tabs-border);
}
.aw-tab {
font-family: inherit;
font-size: 0.875rem;
font-weight: 500;
padding: 0.625rem 1rem;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--aw-tabs-text);
cursor: pointer;
outline: none;
transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
margin-bottom: -1px;
white-space: nowrap;
}
.aw-tab:hover {
background: var(--aw-tabs-hover-bg);
}
.aw-tab:focus-visible {
outline: 2px solid var(--aw-tabs-active-border);
outline-offset: -2px;
border-radius: var(--aw-tabs-radius);
}
.aw-tab-active {
color: var(--aw-tabs-active-text);
border-bottom-color: var(--aw-tabs-active-border);
}
.aw-tabpanel {
padding: 1rem 0;
font-size: 0.875rem;
color: var(--aw-tabs-text);
}
@media (prefers-color-scheme: dark) {
.aw-tabs {
--aw-tabs-border: #1e293b;
--aw-tabs-text: #94a3b8;
--aw-tabs-active-text: #e2e8f0;
--aw-tabs-active-border: #60a5fa;
--aw-tabs-hover-bg: #131c2e;
}
}
}