- only use native css variable instead of sass' (theming feature on the way)
- better sidepanel transition
This commit is contained in:
parent
70eedc2d7b
commit
fe32cd673e
19 changed files with 220 additions and 203 deletions
|
|
@ -118,7 +118,13 @@ var sidepanel = function(data){
|
|||
|
||||
var toggle = function(){
|
||||
$(`<li><a id="open-toggle">${icon('navicon')}</a></li>`).appendTo('.navigation.main ul').click(function(e){
|
||||
$('#open-toggle, #sidepanel, #container').toggleClass('sidepanel-open')
|
||||
var t = 0
|
||||
if (!$('#sidepanel').hasClass('sidepanel-open')) t = 250
|
||||
|
||||
$('#open-toggle, #sidepanel').toggleClass('sidepanel-open')
|
||||
setTimeout(function(){
|
||||
$('#container').toggleClass('sidepanel-open')
|
||||
},t)
|
||||
}).on('mousedown touchstart',function(e){e.stopPropagation()})
|
||||
|
||||
// in case where are hot loading a session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue