Difference between revisions of "Template:SJTU-BioX-Shanghai/Navigator1"
(Created page with "<html> <aside id="nav"> <embed src="/wiki/images/d/de/SJTUB_shade.svg" /> <div id="nav-trigger" onclick="toggle_nav()"> <svg width="6px" height="24px"><polygon points="6,0 0,1...") |
|||
Line 56: | Line 56: | ||
<style> | <style> | ||
+ | #nav { | ||
+ | position: fixed; | ||
+ | top: 0px; | ||
+ | left: 0px; | ||
+ | |||
+ | box-sizing: border-box; | ||
+ | width: 10.5em; | ||
+ | height: 100%; | ||
+ | padding-top: 20px; | ||
+ | |||
+ | box-shadow: 2px 0 1px grey; | ||
+ | |||
+ | background-color: white; | ||
+ | } | ||
+ | |||
+ | #nav #nav-trigger { | ||
+ | position: absolute; | ||
+ | top: 0px; | ||
+ | left: 0px; | ||
+ | height: 100%; | ||
+ | width: 0.5em; | ||
+ | |||
+ | background-color: #55A463; | ||
+ | } | ||
+ | |||
+ | #nav #nav-trigger svg { | ||
+ | position: absolute; | ||
+ | top: 50%; | ||
+ | fill: white; | ||
+ | } | ||
+ | |||
</style> | </style> | ||
</aside> | </aside> | ||
</html> | </html> |
Revision as of 06:55, 17 September 2015