fix: dark button color

This commit is contained in:
ycjcl868 2019-12-04 20:14:28 +08:00
parent 4e45bee68f
commit e15b9c5f37

View File

@ -67,10 +67,7 @@
&:hover,
&:focus {
& when (@theme = dark) {
.button-color(
~`colorPalette('@{btn-primary-bg}', 7) `; @background;
~`colorPalette('@{btn-primary-bg}', 7) `
);
.button-color(@primary-5; @background; @primary-5);
}
& when not (@theme = dark) {
.button-color(
@ -82,12 +79,9 @@
&:active,
&.active {
& when (@theme = dark) {
.button-color(
~`colorPalette('@{btn-primary-bg}', 5) `; @background;
~`colorPalette('@{btn-primary-bg}', 5) `
);
.button-color(@primary-7; @background; @primary-7);
}
& when not (@theme = default) {
& when not (@theme = dark) {
.button-color(
~`colorPalette('@{btn-primary-bg}', 7) `; @background;
~`colorPalette('@{btn-primary-bg}', 7) `