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
This commit is contained in:
Julian Lam
2013-06-17 23:25:12 -04:00
parent 4334e23c4d
commit 9fb8701f4f
2 changed files with 12 additions and 4 deletions

View File

@@ -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;

View File

@@ -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();