Repository navigation
Expand file tree
/
Copy pathtabs.css
More file actions
88 lines (74 loc) · 1.53 KB
/
Copy pathtabs.css
File metadata and controls
88 lines (74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* Category tabs: a row of chips. The active one is filled with ink. */
.tabs-container {
flex-shrink: 0;
}
.tabs-scroll {
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar {
display: none;
}
.tabs-list {
display: flex;
gap: 8px;
min-width: min-content;
padding: 6px 4px; /* room for the focus ring, which the scroll area would otherwise clip */
}
.tab {
display: flex;
position: relative;
background: var(--card);
border: 2px solid var(--ink);
border-radius: 999px;
cursor: grab;
transition: background 0.15s ease;
}
.tab:active {
cursor: grabbing;
}
.tab:hover {
background: var(--input-bg);
}
.tab-active,
.tab-active:hover {
background: var(--ink);
}
.tab-button {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0 18px;
background: none;
border: none;
border-radius: 999px;
color: var(--ink);
cursor: inherit;
white-space: nowrap;
}
.tab-active .tab-button {
color: var(--on-fill);
}
.tab-name {
font-size: 15px;
font-weight: 700;
}
/* Drag and drop states */
.tab.dragging-tab {
opacity: 0.4;
cursor: grabbing;
}
.tab.drag-over-left {
box-shadow: -4px 0 0 0 var(--tomato);
}
.tab.drag-over-right {
box-shadow: 4px 0 0 0 var(--tomato);
}
/* The ring goes outside the chip: inside it, it would vanish against the active chip's ink */
.tab-button:focus-visible {
outline-offset: 4px;
}