Team:UCLA/Template/CSS test
From 2014.igem.org
(Difference between revisions)
Samichaels (Talk | contribs) |
Samichaels (Talk | contribs) |
||
Line 442: | Line 442: | ||
<!--SLIDING SIDE MENU--> | <!--SLIDING SIDE MENU--> | ||
- | . | + | body { |
- | background: | + | overflow-x: hidden |
+ | } | ||
+ | #wrapper { | ||
+ | position: relative; | ||
+ | z-index: 10; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | -webkit-transition: all 0.3s; | ||
+ | -moz-transition: all 0.3s; | ||
+ | -ms-transition: all 0.3s; | ||
+ | -o-transition: all 0.3s; | ||
+ | transition: all 0.3s; | ||
+ | } | ||
+ | section { | ||
+ | margin-bottom: 30px | ||
+ | } | ||
+ | section h1 { | ||
+ | font-family: "Oswald", sans-serif; | ||
+ | margin-bottom: 10px; | ||
+ | } | ||
+ | section p { | ||
+ | margin-bottom: 30px | ||
+ | } | ||
+ | section p:last-child { | ||
+ | margin-bottom: 0 | ||
+ | } | ||
+ | section:last-child { | ||
+ | margin-bottom: 0 | ||
+ | } | ||
+ | section.toggle { | ||
+ | text-align: center | ||
+ | } | ||
+ | .mask { | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | z-index: 15; | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | background: rgba(0, 0, 0, 0.8); | ||
+ | nav.menu { | ||
position: fixed; | position: fixed; | ||
+ | z-index: 20; | ||
+ | background-color: #67b5d1; | ||
+ | overflow: hidden; | ||
+ | -webkit-transition: all 0.3s; | ||
+ | -moz-transition: all 0.3s; | ||
+ | -ms-transition: all 0.3s; | ||
+ | -o-transition: all 0.3s; | ||
+ | transition: all 0.3s; | ||
} | } | ||
- | + | nav.menu ul { | |
- | . | + | list-style-type: none; |
- | + | ||
- | + | ||
- | + | ||
margin: 0; | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | nav.menu a { | ||
font-weight: 300; | font-weight: 300; | ||
- | + | color: #fff; | |
} | } | ||
- | + | button.close-menu { | |
- | . | + | background-color: #3184a1; |
- | + | ||
color: #fff; | color: #fff; | ||
- | |||
- | |||
} | } | ||
- | + | button.close-menu:focus { | |
- | . | + | outline: none |
- | + | nav.slide-menu-left { | |
+ | top: 0; | ||
+ | width: 300px; | ||
+ | height: 100%; | ||
} | } | ||
- | + | nav.slide-menu-left li { | |
- | . | + | display: block; |
- | + | text-align: center; | |
- | + | border-bottom: solid 1px #3184a1; | |
+ | border-top: solid 1px #b5dbe9; | ||
} | } | ||
- | + | nav.slide-menu-left li:first-child { | |
- | + | border-top: none | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | nav.slide-menu-left li:last-child { | |
- | . | + | border-bottom: none |
- | border-bottom: | + | |
- | + | ||
} | } | ||
- | + | nav.slide-menu-left a { | |
- | + | display: block; | |
- | + | padding: 10px; | |
- | . | + | font-size: 18px; |
- | + | } | |
+ | nav.slide-menu-left button.close-menu { | ||
+ | margin: 10px 0; | ||
+ | padding: 10px 30px; | ||
+ | background-color: #3184a1; | ||
+ | color: #fff; | ||
} | } | ||
- | + | nav.slide-menu-left { | |
- | . | + | left: -300px |
- | left: | + | |
} | } | ||
- | + | body.sml-open nav.slide-menu-left { | |
- | + | left: 0 | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
</style> | </style> | ||
</html> | </html> |
Revision as of 23:40, 6 August 2014