improvement: faster transition
This commit is contained in:
parent
1ced152bf7
commit
3ac690925d
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ $button_small: $lineheight_quarter;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button-hover() {
|
@mixin button-hover() {
|
||||||
transition: background 0.3s, border .3s, box-shadow .3s, color .3s;
|
transition: background .2s, border .2s, box-shadow .2s, color .2s;
|
||||||
&:hover, &:active, &:focus, a:hover > &, a:active > &, a:focus > & {
|
&:hover, &:active, &:focus, a:hover > &, a:active > &, a:focus > & {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
|
@ -46,7 +46,7 @@ $button_small: $lineheight_quarter;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
transition: background-color 0.3s;
|
transition: background-color .2s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue