Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 4: Line 4:
 
function hide_nav_click(btn) {
 
function hide_nav_click(btn) {
 
   alert('hide')
 
   alert('hide')
   btn.onclick = "alert(show)"
+
   btn.onclick = function(){console.log(this)}
 
   var nav = btn.parentNode;
 
   var nav = btn.parentNode;
 
   var svg = btn.firstChild;
 
   var svg = btn.firstChild;
Line 108: Line 108:
 
   left: -15em;
 
   left: -15em;
 
}
 
}
 
+
nav > * {
 +
  z-index: 1;
 +
}
 
nav #hide-nav {
 
nav #hide-nav {
 
   position: fixed;
 
   position: fixed;
Line 115: Line 117:
 
   width: 1em;
 
   width: 1em;
 
   height: 100%;
 
   height: 100%;
   background-color: #BBBBBB;
+
   background-color: #BBBBBB;
 +
  z-index = 2;
 
}
 
}
 
nav #hide-nav svg{
 
nav #hide-nav svg{

Revision as of 01:27, 11 August 2015