Explorar el Código

Darken element color and add exception for primary buttons

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v16.0.0beta2
Julius Härtl hace 5 años
padre
commit
00b2afb222
No account linked to committer's email address

+ 22
- 0
apps/theming/css/theming.scss Ver fichero

@@ -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,

+ 1
- 1
apps/theming/lib/Util.php Ver fichero

@@ -79,7 +79,7 @@ class Util {
public function elementColor($color) {
$l = $this->calculateLuminance($color);
if($l>0.8) {
return '#dddddd';
return '#aaaaaa';
}
return $color;
}

+ 1
- 0
core/img/actions/checkbox-mixed-dark.svg Ver fichero

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 16 16" width="16" height="16"><path d="M4 7v2h8V7H4z" fill="#fff"/></svg>

Cargando…
Cancelar
Guardar