button: make tap button pulse
This commit is contained in:
parent
6afffc4455
commit
507c143461
2 changed files with 32 additions and 3 deletions
|
|
@ -10,6 +10,12 @@
|
|||
height: 30rem;
|
||||
}
|
||||
|
||||
|
||||
@keyframes osc-button-pulse {
|
||||
0% {opacity: var(--alpha-fill-on);}
|
||||
100% {opacity: var(--alpha-fill-off);}
|
||||
}
|
||||
|
||||
.button-container {
|
||||
|
||||
--alpha-fill-off: .15;
|
||||
|
|
@ -46,13 +52,23 @@
|
|||
border: 2rem solid transparent;
|
||||
}
|
||||
|
||||
&.on, &.active {
|
||||
&.on {
|
||||
|
||||
--alpha-fill:var(--alpha-fill-on);
|
||||
color: var(--color-text-on);
|
||||
|
||||
}
|
||||
|
||||
// &.active {
|
||||
//
|
||||
// color: var(--color-text-on);
|
||||
//
|
||||
// }
|
||||
|
||||
&.pulse inner:after {
|
||||
animation: osc-button-pulse .15s 1 forwards;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.switch-container {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue