Difference between revisions of "Template:SJTU-BioX-Shanghai/Navigator"
Line 14: | Line 14: | ||
<nav> | <nav> | ||
<ul> | <ul> | ||
− | <li><a href="https://2015.igem.org/Team:SJTU-BioX-Shanghai">home</a></li> | + | <li><a href="https://2015.igem.org/Team:SJTU-BioX-Shanghai/Gamma">home</a></li> |
<li> | <li> | ||
<a href="#">project</a> | <a href="#">project</a> | ||
Line 56: | Line 56: | ||
<style> | <style> | ||
− | # | + | #globalWrapper { |
− | + | padding:0; | |
− | + | margin:0; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | #nav-trigger { | |
+ | position: relative; | ||
+ | } | ||
+ | #nav-trigger svg { | ||
+ | position: absolute; | ||
+ | top: 50%; | ||
+ | margin-top: -12px; | ||
} | } | ||
#nav nav { | #nav nav { | ||
+ | font-size: 0.8em; | ||
margin-left: 1em; | margin-left: 1em; | ||
− | + | margin-top: 1em; | |
} | } | ||
+ | #nav nav a { | ||
+ | color: #8AA28E; | ||
+ | font-weight: 100; | ||
+ | text-transform: uppercase; | ||
+ | text-decoration: none; | ||
− | #nav | + | display: block; |
− | + | box-sizing: border-box; | |
+ | height: 2em; | ||
+ | } | ||
+ | #nav nav ul ul { | ||
+ | font-size: 0.8em; | ||
+ | } | ||
+ | #nav nav a:hover { | ||
+ | text-decoration: none; | ||
+ | transition: font-size: 0.2s; | ||
+ | font-weight: 600; | ||
+ | } | ||
+ | |||
+ | #nav{ | ||
position: fixed; | position: fixed; | ||
− | |||
left: 0px; | left: 0px; | ||
+ | top:0px; | ||
+ | padding-top: calc(20px + 1em); | ||
+ | box-shadow: 5px 0px 3px grey; | ||
+ | padding-left: 0px; | ||
+ | width:10.5em; | ||
height: 100%; | height: 100%; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
#nav nav ul { | #nav nav ul { | ||
− | |||
− | |||
list-style: none; | list-style: none; | ||
− | |||
} | } | ||
− | #nav nav li { | + | #nav nav > ul { |
+ | padding: 0px; | ||
+ | width: 12em; | ||
+ | } | ||
+ | |||
+ | #nav nav > ul > li { | ||
position: relative; | position: relative; | ||
} | } | ||
+ | #nav nav ul ul { | ||
+ | background-color: rgba(255, 255, 255, 0.8); | ||
+ | |||
+ | margin: 0px; | ||
− | |||
position: absolute; | position: absolute; | ||
− | left: | + | left: 15em; |
top: 0px; | top: 0px; | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
transition: opacity 0.3s ease-out 0.2s, width 0s linear 0.5s; | transition: opacity 0.3s ease-out 0.2s, width 0s linear 0.5s; | ||
opacity: 0; | opacity: 0; | ||
+ | width: 0em; | ||
overflow: hidden; | overflow: hidden; | ||
+ | } | ||
− | + | #nav nav ul li:hover ul { | |
− | + | transition: opacity 0.5s; | |
− | + | ||
− | #nav nav li:hover ul | + | |
− | transition: opacity 0. | + | |
opacity: 1; | opacity: 1; | ||
− | width: | + | width: 13em; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
#nav nav > ul > li > a:not(:last-child)::before { | #nav nav > ul > li > a:not(:last-child)::before { | ||
− | + | content: "+"; | |
− | + | position: absolute; | |
− | + | left: -1em; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | #nav embed { | |
− | + | width: 100%; | |
+ | min-width: 10em; | ||
+ | height: 20%; | ||
} | } | ||
</style> | </style> |
Revision as of 10:57, 17 September 2015