mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-20 13:40:42 +03:00
Resolves #766 Toggle button color variation incorrect
This commit is contained in:
parent
8f541fa58c
commit
82172a4c55
|
@ -64,16 +64,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& label input[type=checkbox]:checked {
|
// set bg when checked
|
||||||
& + .toggle {
|
input[type=checkbox]:checked {
|
||||||
|
+ .toggle {
|
||||||
background-color: fade(@brand-primary, 50%); // Switch bg on
|
background-color: fade(@brand-primary, 50%); // Switch bg on
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .toggle:after {
|
+ .toggle:after {
|
||||||
background-color: @brand-primary; // Handle on
|
background-color: @brand-primary; // Handle on
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .toggle:active:after {
|
+ .toggle:active:after {
|
||||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px fade(@brand-primary, 10%); // Ripple on
|
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px fade(@brand-primary, 10%); // Ripple on
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,16 +66,29 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& label input[type=checkbox]:checked {
|
//// Switch bg on
|
||||||
& + .toggle {
|
//.generic-variations(unquote(" label input[type=checkbox]:checked + .toggle"), $primary, {
|
||||||
|
// background-color: rgba($material-color, (50/100));
|
||||||
|
//});
|
||||||
|
//// Handle on
|
||||||
|
//.variations(unquote(" label input[type=checkbox]:checked + .toggle:after"), background-color, $primary);
|
||||||
|
//// Ripple on
|
||||||
|
//.generic-variations(unquote(" label input[type=checkbox]:checked + .toggle:active:after"), $primary, {
|
||||||
|
// box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba($material-color, (10/100));
|
||||||
|
//});
|
||||||
|
|
||||||
|
|
||||||
|
// set bg when checked
|
||||||
|
input[type=checkbox]:checked {
|
||||||
|
+ .toggle {
|
||||||
background-color: rgba($brand-primary, (50/100)); // Switch bg on
|
background-color: rgba($brand-primary, (50/100)); // Switch bg on
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .toggle:after {
|
+ .toggle:after {
|
||||||
background-color: $brand-primary; // Handle on
|
background-color: $brand-primary; // Handle on
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .toggle:active:after {
|
+ .toggle:active:after {
|
||||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on
|
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user