Team:Calgary Entrepreneurial/Stylesheets/main.css
From 2013.igem.org
header{ border: 0; text-align: justify; padding: 0; position: fixed; margin-top: 1.5em; width: 100%; z-index: 0; }
header:after{ content: ; display: inline-block; width: 100%; }
.logolink, .logolink:visited, .logolink:hover{
color: transparent;
}
.logo{ border: none; display: inline-block; *display: block; margin: 0 0 .5em 0; max-height: 100%; max-width: 100%; min-width: 200px; width: 18%; vertical-align: middle;
}
#mobilelogo{ display: none; /*will need to fix ghost link region*/ }
nav{ display: inline-block; *display: block; /*seems to be necessary for IE*/ margin-top: 0.1em; /*nudges it down to align with the logo*/ margin-right: .5em; vertical-align: middle; }
nav ul{ border-bottom: 2px solid white; *float: right; /*seems to be necessary for IE*/ list-style: none; margin: 0; }
nav li{ display: inline-block; *display: inline-table; *float: left; }
nav li a{ color: #FFFFFF !important; display: block; /*fills the full li element for clickability*/ font-family: Roboto, sans-serif; font-size: 1.4rem; font-weight: 300; line-height: 2em; padding: .3em .8em 0 .8em; text-decoration: none; }
nav li a:hover{ background: #7cb83d; text-decoration: none; }
.clear{ clear: both; }
- blackheader{
background: #404040; z-index: 3; }
/*White header that appears if javascript is enabled... hopefully*/
- whiteheader{
background: #FFFFFF; display: none; margin-top: 0; padding-top: 1em; /*sits at top of page*/ position: fixed; z-index: 4; }
#whiteheader .logo{ margin-left: 3.5%; min-width: 151px; width: 12.826%; }
#whiteheader nav{ margin-top: -1em; }
#whiteheader nav ul{ border-color: #777777; }
#whiteheader nav li a{ color: #777777 !important; }
#whiteheader nav li a:hover{ color: #FFFFFF !important; }
/*Font positioning breaks at 1050px screen width*/ @media screen and (max-width: 1050px){
.logo{ min-width: 160px; }
nav{ margin-top: 0.8em; }
nav ul{ padding: 0; }
nav li a{ font-size: 1.05rem; padding: .3em .5em 0 .5em; }
}
/*mobile and tablet styling for less than 768px*/ @media screen and (max-width: 768px){
.logo{ display: none; min-width: 150px; }
#mobilelogo{ display: inline-block; margin-left: 0.5em; margin-top: 1em; }
nav{ margin-top: 0.8em; }
nav ul{ padding: 0; }
nav li a{ font-size: 1rem; padding: .3em .5em 0 .5em; }
}