Skip to content
Snippets Groups Projects
Unverified Commit 89880fb2 authored by Joas Schilling's avatar Joas Schilling Committed by GitHub
Browse files

Merge pull request #17098 from nextcloud/fix/css/variables-color-primary-light

Create color-primary-light variable
parents 8cc41974 223046b0
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ $invert: luma($color-primary) > 0.6;
}
@if ($invert) {
// too bright, use dark text to mix the primary
$color-primary-light: mix($color-primary, $color-main-text, 10%);
#appmenu:not(.inverted) svg {
filter: invert(1);
}
......
......@@ -11,6 +11,7 @@
--color-background-darker: $color-background-darker;
--color-primary: $color-primary;
--color-primary-light: $color-primary-light;
--color-primary-text: $color-primary-text;
--color-primary-text-dark: $color-primary-text-dark;
--color-primary-element: $color-primary-element;
......
......@@ -40,6 +40,7 @@ $color-background-dark: nc-darken($color-main-background, 7%) !default;
$color-background-darker: nc-darken($color-main-background, 14%) !default;
$color-primary: #0082c9 !default;
$color-primary-light: mix($color-primary, $color-main-background, 10%) !default;
$color-primary-text: #ffffff !default;
// do not use nc-darken/lighten in case of overriding because
// primary-text is independent of color-main-text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment