diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-08-11 15:11:47 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-09-04 14:30:46 +0200 |
commit | da5662c454cbdf9e81c6ac83cc0dfe72692fd883 (patch) | |
tree | b60b9082f707af8c3f43bf675173a0a23de027bd /core/css/inputs.scss | |
parent | 4fd3240b5f0d2f8a42675fa499c06a7f35b726fe (diff) | |
download | nextcloud-server-da5662c454cbdf9e81c6ac83cc0dfe72692fd883.tar.gz nextcloud-server-da5662c454cbdf9e81c6ac83cc0dfe72692fd883.zip |
Use separate element color in theming
This way we can use a grey color when the primary color is to bright
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/css/inputs.scss')
-rw-r--r-- | core/css/inputs.scss | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 10e3fcef015..5a7da4f50c9 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -50,7 +50,7 @@ textarea, &:focus, &.active { /* active class used for multiselect */ - border-color: $color-primary; + border-color: $color-primary-element; outline: none; } &:active { @@ -66,21 +66,21 @@ textarea, } /* Primary action button, use sparingly */ &.primary { - border: 1px solid #fff; - background-color: $color-primary; + background-color: $color-primary-element; + border: 1px solid $color-primary-text; color: $color-primary-text; cursor: pointer; &:not(:disabled) { &:hover, &:focus { - background-color: rgba($color-primary, .85); + background-color: rgba($color-primary-element, .85); } &:active { - background-color: rgba($color-primary, .7); + background-color: rgba($color-primary-element, .7); } } &:disabled { - background-color: rgba($color-primary, .7); + background-color: rgba($color-primary-element, .7); color: nc-lighten($color-main-text, 73%); } } @@ -225,15 +225,15 @@ input { } &:not(:disabled):not(:checked) + label:hover:before, &:focus + label:before { - border-color: $color-primary; + border-color: $color-primary-element; } &:checked + label:before, &.checkbox:indeterminate + label:before { /* ^ :indeterminate have a strange behavior on radio, so we respecified the checkbox class again to be safe */ box-shadow: inset 0px 0px 0px 2px $color-main-background; - background-color: $color-primary; - border-color: $color-primary + background-color: $color-primary-element; + border-color: $color-primary-element; } &:disabled + label:before { border: 1px solid nc-lighten($color-main-text, 53%); |