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

Line 4: Line 4:
 
function hide_nav_click(this) {
 
function hide_nav_click(this) {
 
   alert("hide")
 
   alert("hide")
  var nav = this.parentElement
+
//  var nav = this.parentElement
  nav.classList.add('nav-hided')
+
//  nav.classList.add('nav-hided')
  this.innerHTML = '>'
+
//  this.innerHTML = '>'
  this.onclick = "show_nav_click(this)"
+
//  this.onclick = "show_nav_click(this)"
 
}
 
}
 
function show_nav_click(this) {
 
function show_nav_click(this) {
Line 112: Line 112:
 
   overflow: visible;
 
   overflow: visible;
 
}
 
}
nav #hide-var {
+
nav #hide-nav {
 
   position: fixed;
 
   position: fixed;
 
   top: 0px;
 
   top: 0px;
Line 118: Line 118:
 
   width: 1em;
 
   width: 1em;
 
   height: 100%;
 
   height: 100%;
   background-color: black;   
+
   background-color: #BBBBBB;   
 
}
 
}
 
nav #hide-nav svg{
 
nav #hide-nav svg{
Line 125: Line 125:
 
   top: 50%;
 
   top: 50%;
 
   left: 3px;
 
   left: 3px;
   height: 10px;
+
   height: 40px;
   margin-top: -5px;
+
   margin-top: -20px;
 
}
 
}
  

Revision as of 00:53, 11 August 2015