1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

Colors rewrite (#30622)

This commit is contained in:
Martijn Cuppens
2020-10-13 09:58:06 +02:00
committed by GitHub
parent 5c6925385e
commit cdc12165a9
15 changed files with 150 additions and 139 deletions

View File

@@ -4,6 +4,6 @@
border-color: $border;
.alert-link {
color: darken($color, 10%);
color: shade-color($color, 20%);
}
}

View File

@@ -7,11 +7,11 @@
$background,
$border,
$color: color-contrast($background),
$hover-background: if($color == $color-contrast-light, darken($background, 7.5%), lighten($background, 7.5%)),
$hover-border: if($color == $color-contrast-light, darken($border, 10%), lighten($border, 5%)),
$hover-background: if($color == $color-contrast-light, shade-color($background, 15%), tint-color($background, 15%)),
$hover-border: if($color == $color-contrast-light, shade-color($border, 20%), tint-color($border, 10%)),
$hover-color: color-contrast($hover-background),
$active-background: if($color == $color-contrast-light, darken($background, 10%), lighten($background, 10%)),
$active-border: if($color == $color-contrast-light, darken($border, 12.5%), lighten($border, 5%)),
$active-background: if($color == $color-contrast-light, shade-color($background, 20%), tint-color($background, 20%)),
$active-border: if($color == $color-contrast-light, shade-color($border, 25%), tint-color($border, 10%)),
$active-color: color-contrast($active-background),
$disabled-background: $background,
$disabled-border: $border,

View File

@@ -9,7 +9,7 @@
&:hover,
&:focus {
color: $color;
background-color: darken($background, 5%);
background-color: shade-color($background, 10%);
}
&.active {