diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-03-27 16:03:31 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-27 16:03:31 +0100 |
commit | 00b2afb2224f1319af367539c9db8bc484c1f8bd (patch) | |
tree | 853ffc743b58edf9dfc2330a014b48d02c4073f7 /apps/theming/css | |
parent | 448699502851a60883faf5f0d5cea4a9855bec66 (diff) | |
download | nextcloud-server-00b2afb2224f1319af367539c9db8bc484c1f8bd.tar.gz nextcloud-server-00b2afb2224f1319af367539c9db8bc484c1f8bd.zip |
Darken element color and add exception for primary buttons
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/css')
-rw-r--r-- | apps/theming/css/theming.scss | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss index 7db64924f34..ae0e7ad2f8b 100644 --- a/apps/theming/css/theming.scss +++ b/apps/theming/css/theming.scss @@ -203,6 +203,28 @@ input.primary, } } +/** Handle primary buttons for bright colors */ +@if (luma($color-primary) > 0.8) { + select, + button, .button, + input:not([type='range']), + textarea, + div[contenteditable=true], + .pager li a { + &.primary:not(:disabled) { + background-color: var(--color-background-dark); + color: var(--color-main-text); + border: 1px solid var(--color-background-darker); + + &:hover, &:focus, &:active { + background-color: var(--color-background-darker); + color: var(--color-main-text); + } + } + } + +} + @if ($color-primary == #ffffff) { /* show grey border below header */ #body-user #header, |