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 | |
− | + | // nav.classList.add('nav-hided') | |
− | + | // this.innerHTML = '>' | |
− | + | // 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- | + | 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: | + | background-color: #BBBBBB; |
} | } | ||
nav #hide-nav svg{ | nav #hide-nav svg{ | ||
Line 125: | Line 125: | ||
top: 50%; | top: 50%; | ||
left: 3px; | left: 3px; | ||
− | height: | + | height: 40px; |
− | margin-top: - | + | margin-top: -20px; |
} | } | ||
Revision as of 00:53, 11 August 2015