forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.css
More file actions
63 lines (57 loc) · 1.53 KB
/
Copy pathtabs.css
File metadata and controls
63 lines (57 loc) · 1.53 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
/* ---------- Tab strip (Tabs.tsx) ---------- */
.tabs {
display: flex;
flex-direction: column;
gap: var(--space-4, 16px);
}
/* Scrolls sideways rather than wrapping. A wrapped strip changes height as
sheets are added, which moves the panel underneath it - and the number of
sheets is expected to grow. */
.tabs__strip {
display: flex;
gap: var(--space-1, 4px);
padding: var(--space-1, 4px);
background: var(--bg-sunken);
border-radius: 12px;
overflow-x: auto;
scrollbar-width: none;
}
.tabs__strip::-webkit-scrollbar {
display: none;
}
.tabs__tab {
flex: 1 0 auto;
min-height: var(--min-touch-target, 44px);
padding: 0 var(--space-3, 12px);
border: 0;
border-radius: 10px;
background: none;
color: var(--fg-2);
font-size: 14px;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
}
/* The selected tab is a raised surface rather than only a coloured word:
colour alone would be the sole signal of which map is being talked about,
and this window is read in sunlight. */
.tabs__tab[aria-selected='true'] {
background: var(--bg-surface);
color: var(--fg-1);
box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.tabs__panel {
display: flex;
flex-direction: column;
gap: var(--space-4, 16px);
}
/* The panel is focusable so a keyboard can reach content that holds nothing
focusable; it should not draw a focus ring when a click is what put focus
there. */
.tabs__panel:focus {
outline: none;
}
.tabs__panel:focus-visible {
outline: 2px solid var(--brand-primary);
outline-offset: 4px;
}