mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Dev: Touch visual effects
This commit is contained in:
@@ -19,7 +19,7 @@ export default class NavBar extends util.Emitter
|
||||
add(name)
|
||||
{
|
||||
this._len++;
|
||||
this._$ul.prepend(`<li class="${name}">${name}</li>`);
|
||||
this._$ul.prepend(`<li class="${name}" ontouchstart>${name}</li>`);
|
||||
this._resetWidth();
|
||||
}
|
||||
remove(name)
|
||||
|
||||
@@ -23,9 +23,11 @@ $item-width: 69px;
|
||||
font-size: $font-size-s;
|
||||
text-align: center;
|
||||
text-transform: capitalize;
|
||||
transition: all $anim-duration;
|
||||
transition: background $anim-duration;
|
||||
&:active {
|
||||
background: $blue-dark;
|
||||
}
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: $blue-light;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user