mirror of
https://github.com/primer/css.git
synced 2025-01-07 14:58:54 +03:00
Add hover transition to buttons
This commit is contained in:
parent
d75c9d3cd9
commit
ddc13d5962
@ -78,13 +78,13 @@
|
|||||||
background-color: $bg-default;
|
background-color: $bg-default;
|
||||||
border-color: $border-color-button;
|
border-color: $border-color-button;
|
||||||
box-shadow: $box-shadow, $box-shadow-highlight;
|
box-shadow: $box-shadow, $box-shadow-highlight;
|
||||||
transition: background-color 0.18s ease-out;
|
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.hover,
|
&.hover,
|
||||||
[open] > & {
|
[open] > & {
|
||||||
background-color: $bg-hover;
|
background-color: $bg-hover;
|
||||||
transition: none;
|
transition-duration: 0.1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
|
Loading…
Reference in New Issue
Block a user