Skip to content

Commit 9d91237

Browse files
Merge pull request #13039 from Snuffleupagus/issue-13036
Change the background to ensure that the sidebar is visible/readable when the viewer is narrow (issue 13036)
2 parents 63c5d44 + 7c52c01 commit 9d91237

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

web/viewer.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
--scrollbar-bg-color: auto;
3535
--toolbar-icon-bg-color: rgba(0, 0, 0, 1);
3636

37-
--sidebar-bg-color: rgba(245, 246, 247, 1);
37+
--sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9);
38+
--sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
3839
--toolbar-bg-color: rgba(249, 249, 250, 1);
3940
--toolbar-border-color: rgba(204, 204, 204, 1);
4041
--button-hover-color: rgba(221, 222, 223, 1);
@@ -108,7 +109,8 @@
108109
--scrollbar-bg-color: rgba(35, 35, 39, 1);
109110
--toolbar-icon-bg-color: rgba(255, 255, 255, 1);
110111

111-
--sidebar-bg-color: rgba(50, 50, 52, 1);
112+
--sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
113+
--sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
112114
--toolbar-bg-color: rgba(56, 56, 61, 1);
113115
--toolbar-border-color: rgba(12, 12, 13, 1);
114116
--button-hover-color: rgba(102, 102, 103, 1);
@@ -321,7 +323,7 @@ html[dir="rtl"]
321323
#toolbarSidebar {
322324
width: 100%;
323325
height: 32px;
324-
background-color: var(--sidebar-bg-color);
326+
background-color: var(--sidebar-toolbar-bg-color);
325327
}
326328
html[dir="ltr"] #toolbarSidebar {
327329
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
@@ -1789,8 +1791,8 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
17891791
}
17901792

17911793
@media all and (max-width: 840px) {
1792-
#sidebarContent {
1793-
background-color: rgba(0, 0, 0, 0.7);
1794+
#sidebarContainer {
1795+
background-color: var(--sidebar-narrow-bg-color);
17941796
}
17951797

17961798
html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {

0 commit comments

Comments
 (0)