Use an added style and shadow for the focused element.
This commit is contained in:
parent
291acd27f3
commit
8cc60d2249
3 changed files with 25 additions and 5 deletions
|
@ -4,6 +4,11 @@
|
|||
.btn;
|
||||
.btn-default;
|
||||
|
||||
&.@{btn-prefix-cls}-focused {
|
||||
box-shadow: 0 0 2px @link-hover-color, 0 0 2px @link-hover-color, 0 0 2px @link-hover-color, 0 0 2px @link-hover-color;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&-long{
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -27,11 +27,12 @@
|
|||
.button-variant(@color; @background; @border) {
|
||||
.button-color(@color; @background; @border);
|
||||
|
||||
&:hover,
|
||||
&:focus
|
||||
&:hover
|
||||
// &:focus
|
||||
{
|
||||
.button-color(tint(@color, 20%); tint(@background, 20%); tint(@border, 20%));
|
||||
}
|
||||
|
||||
&:active,
|
||||
&.active {
|
||||
.button-color(shade(@color, 5%); shade(@background, 5%); shade(@background, 5%));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue