mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 23:28:20 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user