Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"
Line 5: | Line 5: | ||
btn.onclick = function(){show_nav_click(this)} | btn.onclick = function(){show_nav_click(this)} | ||
var ctt = $('#content')[0] | var ctt = $('#content')[0] | ||
− | ctt.classList.add('nav- | + | ctt.classList.add('nav-toggle') |
var svg = btn.firstChild; | var svg = btn.firstChild; | ||
svg.transform.baseVal[0].matrix.a = -1 | svg.transform.baseVal[0].matrix.a = -1 | ||
Line 13: | Line 13: | ||
btn.onclick = function(){hide_nav_click(this)} | btn.onclick = function(){hide_nav_click(this)} | ||
var ctt = $('#content')[0] | var ctt = $('#content')[0] | ||
− | ctt.classList.remove('nav- | + | ctt.classList.remove('nav-toggle') |
var svg = btn.firstChild; | var svg = btn.firstChild; | ||
svg.transform.baseVal[0].matrix.a = 1 | svg.transform.baseVal[0].matrix.a = 1 | ||
Line 96: | Line 96: | ||
border-left: 0px; | border-left: 0px; | ||
border-right: 0px; | border-right: 0px; | ||
+ | } | ||
+ | |||
+ | #toc { | ||
+ | position: fixed; | ||
+ | right: 1em; | ||
+ | top: 10em; | ||
+ | width: 15em; | ||
+ | font-size: 0.6em; | ||
+ | } | ||
+ | #toc ul ul { | ||
+ | margin-left: 0px; | ||
+ | } | ||
+ | #toc ul ul li { | ||
+ | padding-left: 1em; | ||
} | } | ||
Line 106: | Line 120: | ||
padding-top: 20px; | padding-top: 20px; | ||
} | } | ||
− | #content.nav- | + | #content.nav-toggle { |
padding-left: 4em; | padding-left: 4em; | ||
} | } | ||
Line 121: | Line 135: | ||
overflow: visible; | overflow: visible; | ||
} | } | ||
− | .nav- | + | .nav-toggle nav { |
left: -15em; | left: -15em; | ||
} | } |
Revision as of 06:56, 16 August 2015