Skip to content

Commit c3524e6

Browse files
[ui] [tabs] fully redesigned tabs with better color for accessiblity on both dark and light mode
1 parent 6d82eac commit c3524e6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,39 @@
77
padding-left: 2.7rem;
88
}
99

10+
/* Style tabs to match table appearance with complete border and rounded corners */
11+
.plugin-tabs {
12+
border: 2px solid var(--coollabs-border-zinc-300-20) !important;
13+
border-radius: 8px !important;
14+
overflow: hidden !important;
15+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
16+
margin: 1.5rem 0 !important;
17+
}
18+
19+
.plugin-tabs--tab-list {
20+
background: var(--coollabs-bg-zinc-300-5) !important;
21+
border-bottom: 1.5px solid var(--vp-c-divider) !important;
22+
}
23+
24+
.plugin-tabs--content {
25+
background-color: var(--vp-c-bg) !important;
26+
border: none !important;
27+
}
28+
29+
.dark .plugin-tabs {
30+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
31+
}
32+
33+
.dark .plugin-tabs--tab-list {
34+
background: var(--coollabs-bg-zinc-300-5) !important;
35+
border-bottom: 1px solid var(--vp-c-divider) !important;
36+
}
37+
38+
.dark .plugin-tabs--content {
39+
background-color: var(--vp-c-bg) !important;
40+
border: none !important;
41+
}
42+
1043
@media (min-width: 1440px) {
1144
.VPContent.has-sidebar {
1245
padding-right: 0px !important;

0 commit comments

Comments
 (0)