|
|
Line 1: |
Line 1: |
- | <html>
| |
- | <style>
| |
- |
| |
- | body {
| |
- | background: #e5e5e7;
| |
- | }
| |
| | | |
- |
| |
- | nav {
| |
- | font-family: Helvetica, Arial, "Lucida Grande", sans-serif;
| |
- | line-height: 1.5;
| |
- | width: 200px;
| |
- | -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
| |
- | -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
| |
- | box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
| |
- | position: fixed;
| |
- | }
| |
- |
| |
- | .menu-item {
| |
- | background: #fff;
| |
- | width: 200px;
| |
- | }
| |
- |
| |
- | /*Menu Header Styles*/
| |
- | .menu-item h4 {
| |
- | border-bottom: 1px solid rgba(0,0,0,0.3);
| |
- | border-top: 1px solid rgba(255,255,255,0.2);
| |
- | color: #fff;
| |
- | font-size: 15px;
| |
- | font-weight: 500;
| |
- | padding: 7px 12px;
| |
- |
| |
- | /*Gradient Heb deze site gebruikt om dit te maken: http://www.colorzilla.com/gradient-editor/*/
| |
- | background: #0047ab; /* Old browsers */
| |
- | background: -moz-linear-gradient(left, #0047ab 33%, #258dc8 100%); /* FF3.6+ */
| |
- | background: -webkit-gradient(linear, left top, right top, color-stop(33%,#0047ab), color-stop(100%,#258dc8)); /* Chrome,Safari4+ */
| |
- | background: -webkit-linear-gradient(left, #0047ab 33%,#258dc8 100%); /* Chrome10+,Safari5.1+ */
| |
- | background: -o-linear-gradient(left, #0047ab 33%,#258dc8 100%); /* Opera 11.10+ */
| |
- | background: -ms-linear-gradient(left, #0047ab 33%,#258dc8 100%); /* IE10+ */
| |
- | background: linear-gradient(to right, #0047ab 33%,#258dc8 100%); /* W3C */
| |
- | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0047ab', endColorstr='#258dc8',GradientType=1 ); /* IE6-9 */
| |
- | }
| |
- |
| |
- | .menu-item:hover ul {
| |
- | height: 93px;
| |
- | }
| |
- |
| |
- | .menu-item h4:hover {
| |
- | background: rgb(0,71,171); /* Old browsers */
| |
- | background: -moz-linear-gradient(left, rgba(0,71,171,1) 100%, rgba(125,185,232,1) 100%); /* FF3.6+ */
| |
- | background: -webkit-gradient(linear, left top, right top, color-stop(100%,rgba(0,71,171,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome,Safari4+ */
| |
- | background: -webkit-linear-gradient(left, rgba(0,71,171,1) 100%,rgba(125,185,232,1) 100%); /* Chrome10+,Safari5.1+ */
| |
- | background: -o-linear-gradient(left, rgba(0,71,171,1) 100%,rgba(125,185,232,1) 100%); /* Opera 11.10+ */
| |
- | background: -ms-linear-gradient(left, rgba(0,71,171,1) 100%,rgba(125,185,232,1) 100%); /* IE10+ */
| |
- | background: linear-gradient(to right, rgba(0,71,171,1) 100%,rgba(125,185,232,1) 100%); /* W3C */
| |
- | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0047ab', endColorstr='#7db9e8',GradientType=1 ); /* IE6-9 */
| |
- | }
| |
- |
| |
- | /*ul Styles*/
| |
- | .menu-item ul {
| |
- | background: #fff;
| |
- | font-size: 13px;
| |
- | line-height: 30px;
| |
- | height: 0px;
| |
- | list-style-type: none;
| |
- | overflow: hidden;
| |
- | padding: 0px;
| |
- |
| |
- | /*Animation*/
| |
- | -webkit-transition: height 1s ease;
| |
- | -moz-transition: height 1s ease;
| |
- | -o-transition: height 1s ease;
| |
- | -ms-transition: height 1s ease;
| |
- | transition: height 1s ease;
| |
- | }
| |
- |
| |
- | .menu-item ul a {
| |
- | margin-left: 20px;
| |
- | text-decoration: none;
| |
- | color: #aaa;
| |
- | display: block;
| |
- | width: 200px;
| |
- | }
| |
- |
| |
- | /*li Styles*/
| |
- | .menu-item li {
| |
- | border-bottom: 1px solid #eee;
| |
- | }
| |
- |
| |
- | .menu-item li:hover {
| |
- | background: #eee;
| |
- | }
| |
- |
| |
- | /*First Item Styles*/
| |
- | .alpha p {
| |
- | font-size: 13px;
| |
- | padding: 8px 12px;
| |
- | color: #aaa;
| |
- | }
| |
- |
| |
- | .menu-item h4 a {
| |
- | color: white;
| |
- | display: block;
| |
- | text-decoration: none;
| |
- | width: 200px;
| |
- | }
| |
- | </style>
| |
- |
| |
- |
| |
- | <nav>
| |
- | <div class="menu-item alpha">
| |
- | <h4><a href="#">Home</a></h4>
| |
- | <p>Lorem ipsum dolor sit...</p>
| |
- | </div>
| |
- |
| |
- | <div class="menu-item">
| |
- | <h4><a href="#">Team</a></h4>
| |
- | <ul>
| |
- | <li><a href="#">iGEM</a></li>
| |
- | <li><a href="#">Subs</a></li>
| |
- | </ul>
| |
- | </div>
| |
- |
| |
- | <div class="menu-item">
| |
- | <h4><a href="#">Project</a></h4>
| |
- | <ul>
| |
- | <li><a href="#">Discription</a></li>
| |
- | <li><a href="#">other stuff</a></li>
| |
- | </ul>
| |
- | </div>
| |
- |
| |
- | <div class="menu-item">
| |
- | <h4><a href="#">Modeling</a></h4>
| |
- | <ul>
| |
- | <li><a href="#">agenda</a></li>
| |
- | <li><a href="#">total waiting time</a></li>
| |
- | </ul>
| |
- | </div>
| |
- | </nav>
| |
- | </html>
| |