fix(css): re-use old --color-scrollbar variable

Signed-off-by: protoclown <ornano@felinn.org>
pull/47617/head
protoclown 2 years ago committed by Ferdinand Thiessen
parent afc4940f50
commit d1f82e7fc7
  1. 1
      apps/theming/css/default.css
  2. 2
      apps/theming/lib/Themes/DarkHighContrastTheme.php
  3. 2
      apps/theming/lib/Themes/DarkTheme.php
  4. 2
      apps/theming/lib/Themes/DefaultTheme.php
  5. 2
      apps/theming/lib/Themes/HighContrastTheme.php
  6. 1
      core/css/styles.scss

@ -22,7 +22,6 @@
--color-text-light: var(--color-main-text);
/** @deprecated use `--color-text-maxcontrast` instead */
--color-text-lighter: var(--color-text-maxcontrast);
--color-scrollbar: rgba(34,34,34, .15);
--color-error: #DB0606;
--color-error-rgb: 219,6,6;
--color-error-hover: #df2525;

@ -89,8 +89,6 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
'--color-info-hover' => $this->util->lighten($colorInfo, 10),
'--color-info-text' => $this->util->lighten($colorInfo, 20),
'--color-scrollbar' => $this->util->lighten($colorMainBackground, 35),
// used for the icon loading animation
'--color-loading-light' => '#000000',
'--color-loading-dark' => '#dddddd',

@ -66,8 +66,6 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-main-background-rgb' => $colorMainBackgroundRGB,
'--color-main-background-blur' => 'rgba(var(--color-main-background-rgb), .85)',
'--color-scrollbar' => $this->util->lighten($colorMainBackground, 15),
'--color-background-hover' => $this->util->lighten($colorMainBackground, 4),
'--color-background-dark' => $this->util->lighten($colorMainBackground, 7),
'--color-background-darker' => $this->util->lighten($colorMainBackground, 14),

@ -126,7 +126,7 @@ class DefaultTheme implements ITheme {
'--color-text-light' => 'var(--color-main-text)', // deprecated
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
'--color-scrollbar' => 'rgba(' . $colorMainTextRgb . ', .15)',
'--color-scrollbar' => 'var(--color-border-maxcontrast) transparent',
// error/warning/success/info feedback colours
'--color-error' => $colorError,

@ -94,7 +94,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
'--color-favorite' => '#936B06',
'--color-scrollbar' => $this->util->darken($colorMainBackground, 25),
'--color-scrollbar' => 'auto',
// used for the icon loading animation
'--color-loading-light' => '#dddddd',

@ -20,6 +20,7 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pr
font-family: inherit;
vertical-align: baseline;
cursor: default;
scrollbar-color: var(--color-scrollbar);
}
.js-focus-visible :focus:not(.focus-visible) {

Loading…
Cancel
Save