Skip to content

Commit 4318fdf

Browse files
committed
style: refine sidebar tab pills with inset track and depth
1 parent d9e90a8 commit 4318fdf

1 file changed

Lines changed: 26 additions & 13 deletions

File tree

src/styles/Extn-SidebarTabs.less

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,52 @@
2323
#navTabBar {
2424
display: none;
2525
align-items: center;
26-
gap: 0.25rem;
27-
background-color: @bc-ai-sidebar-bg;
28-
padding: 0.35rem 0.5rem;
26+
gap: 2px;
27+
width: fit-content;
28+
margin: 0.5rem 0.5rem 0.4rem;
29+
padding: 3px;
30+
background-color: rgba(0, 0, 0, 0.3);
31+
border-radius: 7px;
32+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
2933
user-select: none;
3034

3135
&.has-tabs {
32-
display: flex;
36+
display: inline-flex;
3337
}
3438
}
3539

3640
.sidebar-tab {
3741
display: inline-flex;
3842
align-items: center;
39-
gap: 0.35rem;
40-
padding: 0.25rem 0.7rem;
43+
gap: 0.4rem;
44+
padding: 0.25rem 0.75rem;
4145
cursor: pointer;
4246
color: @project-panel-text-2;
43-
font-size: 0.85rem;
44-
border-radius: 4px;
45-
transition: color 0.15s ease, background-color 0.15s ease;
47+
font-size: 0.8rem;
48+
font-weight: 500;
49+
border-radius: 5px;
50+
transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
4651

4752
i {
48-
font-size: 0.75rem;
53+
font-size: 0.78rem;
54+
opacity: 0.85;
4955
}
5056

51-
&:hover {
57+
&:hover:not(.active) {
5258
color: @project-panel-text-1;
53-
background-color: rgba(255, 255, 255, 0.06);
59+
background-color: rgba(255, 255, 255, 0.04);
5460
}
5561

5662
&.active {
5763
color: @project-panel-text-1;
58-
background-color: rgba(255, 255, 255, 0.12);
64+
background-color: rgba(255, 255, 255, 0.09);
65+
box-shadow:
66+
0 1px 0 rgba(255, 255, 255, 0.05) inset,
67+
0 1px 2px rgba(0, 0, 0, 0.2);
68+
69+
i {
70+
opacity: 1;
71+
}
5972
}
6073
}
6174

0 commit comments

Comments
 (0)