Skip to content

Commit a484760

Browse files
Merge pull request #47693 from nextcloud/backport/47617/stable30
[stable30] fix(css): make scrollbar visible again
2 parents bf5d09c + be1e98f commit a484760

10 files changed

Lines changed: 9 additions & 12 deletions

File tree

apps/theming/css/default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
--color-text-light: var(--color-main-text);
2323
/** @deprecated use `--color-text-maxcontrast` instead */
2424
--color-text-lighter: var(--color-text-maxcontrast);
25-
--color-scrollbar: rgba(34,34,34, .15);
25+
--color-scrollbar: var(--color-border-maxcontrast) transparent;
2626
--color-error: #DB0606;
2727
--color-error-rgb: 219,6,6;
2828
--color-error-hover: #df2525;

apps/theming/lib/Themes/DarkHighContrastTheme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getCSSVariables(): array {
8989
'--color-info-hover' => $this->util->lighten($colorInfo, 10),
9090
'--color-info-text' => $this->util->lighten($colorInfo, 20),
9191

92-
'--color-scrollbar' => $this->util->lighten($colorMainBackground, 35),
92+
'--color-scrollbar' => 'auto',
9393

9494
// used for the icon loading animation
9595
'--color-loading-light' => '#000000',

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public function getCSSVariables(): array {
6666
'--color-main-background-rgb' => $colorMainBackgroundRGB,
6767
'--color-main-background-blur' => 'rgba(var(--color-main-background-rgb), .85)',
6868

69-
'--color-scrollbar' => $this->util->lighten($colorMainBackground, 15),
70-
7169
'--color-background-hover' => $this->util->lighten($colorMainBackground, 4),
7270
'--color-background-dark' => $this->util->lighten($colorMainBackground, 7),
7371
'--color-background-darker' => $this->util->lighten($colorMainBackground, 14),

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function getCSSVariables(): array {
126126
'--color-text-light' => 'var(--color-main-text)', // deprecated
127127
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
128128

129-
'--color-scrollbar' => 'rgba(' . $colorMainTextRgb . ', .15)',
129+
'--color-scrollbar' => 'var(--color-border-maxcontrast) transparent',
130130

131131
// error/warning/success/info feedback colours
132132
'--color-error' => $colorError,

apps/theming/lib/Themes/HighContrastTheme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function getCSSVariables(): array {
9494

9595
'--color-favorite' => '#936B06',
9696

97-
'--color-scrollbar' => $this->util->darken($colorMainBackground, 25),
97+
'--color-scrollbar' => 'auto',
9898

9999
// used for the icon loading animation
100100
'--color-loading-light' => '#dddddd',

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/server.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pr
2020
font-family: inherit;
2121
vertical-align: baseline;
2222
cursor: default;
23-
scrollbar-color: var(--color-border-dark) transparent;
24-
scrollbar-width: thin;
23+
scrollbar-color: var(--color-scrollbar);
2524
}
2625

2726
.js-focus-visible :focus:not(.focus-visible) {

0 commit comments

Comments
 (0)