added a new option "state" to taskbar push... set to 'active' to have it

load in an active (darkened) state, while 'pulse' will have it pulse
between darkened and light states
v1.18.x
Julian Lam 12 years ago
parent 4334e23c4d
commit 9fb8701f4f

@ -460,6 +460,17 @@ body .navbar .nodebb-inline-block {
max-height: 24px;
margin-right: 1em;
}
&.pulse {
-webkit-animation: pulsate 2500ms linear;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes pulsate {
0% { background: none; }
50% { background: rgb(170, 220, 170); }
100% { background: none; }
}
}
}
@ -631,9 +642,6 @@ body .navbar .nodebb-inline-block {
}
}
#mobile-sidebar {
height: 100%;
position: absolute;

@ -59,7 +59,7 @@ define(function() {
'</a>';
btnEl.setAttribute('data-module', module);
btnEl.setAttribute('data-uuid', uuid);
btnEl.className = 'active';
btnEl.className = options.state || 'active';
taskbar.tasklist.appendChild(btnEl);
taskbar.update();

Loading…
Cancel
Save