Skip to content

Commit bbd2a79

Browse files
committed
fix: keep sidebar readable in reduced transparency
1 parent 1d70508 commit bbd2a79

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/styles/base.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
--text-fainter: rgba(255, 255, 255, 0.45);
2222
--text-dim: rgba(255, 255, 255, 0.35);
2323
--surface-sidebar: rgba(18, 18, 18, 0.5);
24+
--surface-sidebar-opaque: rgb(18, 18, 18);
2425
--surface-topbar: rgba(10, 14, 20, 0.45);
2526
--surface-right-panel: rgba(9, 12, 20, 0.4);
2627
--surface-composer: rgba(10, 14, 20, 0.45);
@@ -79,6 +80,7 @@
7980

8081
.app.reduced-transparency {
8182
--surface-sidebar: rgba(18, 18, 18, 0.92);
83+
--surface-sidebar-opaque: rgb(18, 18, 18);
8284
--surface-topbar: rgba(10, 14, 20, 0.94);
8385
--surface-right-panel: rgba(9, 12, 20, 0.92);
8486
--surface-composer: rgba(10, 14, 20, 0.94);
@@ -115,6 +117,7 @@
115117
--text-fainter: rgba(17, 20, 28, 0.45);
116118
--text-dim: rgba(17, 20, 28, 0.35);
117119
--surface-sidebar: rgba(246, 247, 250, 0.82);
120+
--surface-sidebar-opaque: rgb(246, 247, 250);
118121
--surface-topbar: rgba(250, 251, 253, 0.9);
119122
--surface-right-panel: rgba(245, 247, 250, 0.82);
120123
--surface-composer: rgba(250, 251, 253, 0.9);
@@ -160,6 +163,7 @@
160163

161164
:root[data-theme="light"] .app.reduced-transparency {
162165
--surface-sidebar: rgba(240, 242, 247, 0.98);
166+
--surface-sidebar-opaque: rgb(240, 242, 247);
163167
--surface-topbar: rgba(244, 246, 250, 0.98);
164168
--surface-right-panel: rgba(242, 244, 248, 0.98);
165169
--surface-composer: rgba(244, 246, 250, 0.98);
@@ -197,6 +201,7 @@
197201
--text-fainter: rgba(17, 20, 28, 0.45);
198202
--text-dim: rgba(17, 20, 28, 0.35);
199203
--surface-sidebar: rgba(246, 247, 250, 0.82);
204+
--surface-sidebar-opaque: rgb(246, 247, 250);
200205
--surface-topbar: rgba(250, 251, 253, 0.9);
201206
--surface-right-panel: rgba(245, 247, 250, 0.82);
202207
--surface-composer: rgba(250, 251, 253, 0.9);
@@ -242,6 +247,7 @@
242247

243248
:root:not([data-theme]) .app.reduced-transparency {
244249
--surface-sidebar: rgba(240, 242, 247, 0.98);
250+
--surface-sidebar-opaque: rgb(240, 242, 247);
245251
--surface-topbar: rgba(244, 246, 250, 0.98);
246252
--surface-right-panel: rgba(242, 244, 248, 0.98);
247253
--surface-composer: rgba(244, 246, 250, 0.98);

src/styles/sidebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@
913913
}
914914
}
915915
.app.reduced-transparency .sidebar {
916-
background: var(--surface-sidebar);
916+
background: var(--surface-sidebar-opaque);
917917
backdrop-filter: none;
918918
}
919919

0 commit comments

Comments
 (0)