Team:Ravenwood Raptors

From 2014hs.igem.org

(Difference between revisions)
Line 5: Line 5:
<style>
<style>
-
/* Hide Default Stuff */
+
/* Hide Defaults */
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
     display:none;}
     display:none;}
Line 28: Line 28:
/* Navigation */
/* Navigation */
-
nav {
+
@import url(http://fonts.googleapis.com/css?family=Open+Sans:700);
-
margin: 100px auto;  
+
#cssmenu {
-
text-align: center;
+
background: #aabceb;
 +
width: auto;
}
}
-
nav ul ul {
+
#cssmenu ul {
-
display: none;
+
list-style: none;
 +
margin: 0;
 +
padding: 0;
 +
line-height: 1;
 +
display: block;
 +
zoom: 1;
}
}
-
nav ul li:hover > ul {
+
#cssmenu ul:after {
 +
content: ' ';
display: block;
display: block;
 +
font-size: 0;
 +
height: 0;
 +
clear: both;
 +
visibility: hidden;
}
}
-
nav ul {
+
#cssmenu ul li {
-
background: #efefef;  
+
float: left;
-
background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
+
display: block;
-
background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);  
+
padding: 0;
-
background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);  
+
}
-
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
+
#cssmenu ul li a {
-
padding: 0 20px;
+
color: #ffffff;
-
border-radius: 10px;
+
text-decoration: none;
-
list-style: none;
+
display: block;
 +
padding: 15px 25px;
 +
font-family: 'Open Sans', sans-serif;
 +
font-weight: 700;
 +
text-transform: uppercase;
 +
font-size: 14px;
position: relative;
position: relative;
-
display: inline-table;
+
-webkit-transition: color .25s;
 +
-moz-transition: color .25s;
 +
-ms-transition: color .25s;
 +
-o-transition: color .25s;
 +
transition: color .25s;
}
}
-
nav ul:after {
+
#cssmenu ul li a:hover {
-
content: ""; clear: both; display: block;
+
color: #ffffff;
}
}
-
nav ul li {
+
#cssmenu ul li a:hover:before {
-
float: left;
+
width: 100%;
}
}
-
nav ul li:hover {
+
#cssmenu ul li a:after {
-
background: #4b545f;
+
content: '';
-
background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
+
display: block;
-
background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
+
position: absolute;
-
background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);
+
right: -3px;
 +
top: 19px;
 +
height: 6px;
 +
width: 6px;
 +
background: #ffffff;
 +
opacity: .5;
}
}
-
nav ul li:hover a {
+
#cssmenu ul li a:before {
-
color: #fff;
+
content: '';
-
}
+
display: block;
-
nav ul li a {
+
position: absolute;
-
display: block; padding: 25px 40px;
+
left: 0;
-
color: #757575; text-decoration: none;
+
bottom: 0;
 +
height: 3px;
 +
width: 0;
 +
background: #ffffff;
 +
-webkit-transition: width .25s;
 +
-moz-transition: width .25s;
 +
-ms-transition: width .25s;
 +
-o-transition: width .25s;
 +
transition: width .25s;
}
}
-
nav ul ul {
+
#cssmenu ul li.last > a:after,
-
background: #5f6975; border-radius: 0px; padding: 0;
+
#cssmenu ul li:last-child > a:after {
-
position: absolute; top: 100%;
+
display: none;
}
}
-
nav ul ul li {
+
#cssmenu ul li.active a {
-
float: none;
+
color: #ffffff;
-
border-top: 1px solid #6b727c;
+
-
border-bottom: 1px solid #575f6a; position: relative;
+
}
}
-
nav ul ul li a {
+
#cssmenu ul li.active a:before {
-
padding: 15px 40px;
+
width: 100%;
-
color: #fff;
+
}
-
}
+
@media screen and (max-width: 768px) {
-
nav ul ul li a:hover {
+
#cssmenu ul li {
-
background: #4b545f;
+
float: none;
 +
}
 +
#cssmenu ul li a {
 +
width: 100%;
 +
-moz-box-sizing: border-box;
 +
-webkit-box-sizing: border-box;
 +
box-sizing: border-box;
 +
}
 +
#cssmenu ul li a:after {
 +
display: none;
 +
}
 +
#cssmenu ul li a:before {
 +
height: 1px;
 +
background: #ffffff;
 +
width: 100%;
 +
opacity: .2;
 +
}
 +
#cssmenu ul li.last > a:before,
 +
#cssmenu ul li:last-child > a:before {
 +
display: none;
}
}
-
nav ul ul ul {
 
-
position: absolute; left: 100%; top:0;
 
}
}
Line 97: Line 145:
<!-- Navigation -->
<!-- Navigation -->
-
<nav>
+
<div id='cssmenu'>
<ul>
<ul>
-
<li><a href="#">Team</a></li>
+
  <li class='active'><a href='index.html'><span>Home</span></a></li>
-
<li><a href="#">Project</a></li>
+
  <li><a href='#'><span>Products</span></a></li>
-
<li><a href="#">Notebook</a></li>
+
  <li><a href='#'><span>About</span></a></li>
-
<li><a href="#">Sponsors</a></li>
+
  <li class='last'><a href='#'><span>Contact</span></a></li>
</ul>
</ul>
-
</nav>
+
</div>
</body>
</body>
</html>
</html>

Revision as of 15:14, 5 April 2014

RHS iGEM