Team:UCLA/sams extra css
From 2014.igem.org
(Difference between revisions)
Samichaels (Talk | contribs) |
Samichaels (Talk | contribs) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/css"> | <script type="text/css"> | ||
- | #wrapper { | + | #sidebar-wrapper { |
- | + | margin-right: -250px; | |
- | + | right: 0; | |
- | } | + | width: 250px; |
+ | background: rgb(0,0,0); | ||
+ | position: fixed; | ||
+ | height: 100%; | ||
+ | overflow-y: auto; | ||
+ | z-index: 1000; | ||
+ | transition: all 0.5s ease-in 0s; | ||
+ | -webkit-transition: all 0.5s ease-in 0s; | ||
+ | -moz-transition: all 0.5s ease-in 0s; | ||
+ | -ms-transition: all 0.5s ease-in 0s; | ||
+ | -o-transition: all 0.5s ease-in 0s; | ||
+ | } | ||
- | + | .sidebar-nav { | |
- | + | position: absolute; | |
- | + | top: 0; | |
- | + | width: 250px; | |
- | + | list-style: none; | |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | } | |
- | + | ||
- | + | ||
- | } | + | |
- | + | .sidebar-nav li { | |
- | + | line-height: 50px; | |
- | } | + | text-indent: 20px; |
+ | } | ||
- | + | .sidebar-nav li a { | |
- | + | color: #999999; | |
- | } | + | display: block; |
+ | text-decoration: none; | ||
+ | } | ||
- | + | .sidebar-nav li a:hover { | |
- | + | color: #fff; | |
- | } | + | background: rgba(255,255,255,0.2); |
+ | text-decoration: none; | ||
+ | } | ||
- | + | .sidebar-nav li a:active, .sidebar-nav li a:focus { | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | .sidebar-nav li a | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | .sidebar-nav li a:focus | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
text-decoration: none; | text-decoration: none; | ||
- | } | + | } |
- | . | + | .sidebar-nav > .sidebar-brand { |
- | + | height: 55px; | |
- | } | + | line-height: 55px; |
+ | font-size: 18px; | ||
+ | } | ||
- | . | + | .sidebar-nav > .sidebar-brand a { |
- | + | color: #999999; | |
- | } | + | } |
- | + | .sidebar-nav > .sidebar-brand a:hover { | |
+ | color: #fff; | ||
+ | background: none; | ||
+ | } | ||
- | # | + | #menu-toggle { |
- | + | top: 0; | |
- | } | + | right: 0; |
+ | position: fixed; | ||
+ | z-index: 1; | ||
+ | } | ||
- | #sidebar-wrapper { | + | #sidebar-wrapper.active { |
- | + | right: 250px; | |
- | } | + | width: 250px; |
+ | transition: all 0.5s ease-out 0s; | ||
+ | -webkit-transition: all 0.5s ease-out 0s; | ||
+ | -moz-transition: all 0.5s ease-out 0s; | ||
+ | -ms-transition: all 0.5s ease-out 0s; | ||
+ | -o-transition: all 0.5s ease-out 0s; | ||
+ | } | ||
- | + | .toggle { | |
- | + | margin: 5px 5px 0 0; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
</script> | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $("#menu-close").click(function(e) { | |
- | + | e.preventDefault(); | |
- | + | $("#sidebar-wrapper").toggleClass("active"); | |
- | + | }); | |
- | + | $("#menu-toggle").click(function(e) { | |
- | + | e.preventDefault(); | |
- | + | $("#sidebar-wrapper").toggleClass("active"); | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 00:23, 7 August 2014