feat: #24355 support complex button backgrounds (#24372)

This commit is contained in:
Teng YANG 2020-05-21 23:45:25 +08:00 committed by GitHub
parent ae8603838a
commit b467cc5cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@
}
.button-color(@color; @background; @border) {
color: @color;
background-color: @background;
background: @background;
border-color: @border; // a inside Button which only work in Chrome
// http://stackoverflow.com/a/17253457
> a:only-child {
@ -347,7 +347,7 @@
.button-variant-other(@link-color, transparent, transparent);
box-shadow: none;
&:hover {
background-color: @btn-link-hover-bg;
background: @btn-link-hover-bg;
}
&:hover,
&:focus,
@ -363,13 +363,13 @@
&:hover,
&:focus {
color: @text-color;
background-color: @btn-text-hover-bg;
background: @btn-text-hover-bg;
border-color: transparent;
}
&:active {
color: @text-color;
background-color: fadein(@btn-text-hover-bg, 1%);
background: fadein(@btn-text-hover-bg, 1%);
border-color: transparent;
}