Team:Calgary Entrepreneurial/Stylesheets/main.css
From 2013.igem.org
Line 24: | Line 24: | ||
display: inline-block; | display: inline-block; | ||
*display: block; | *display: block; | ||
- | margin: 0 0 .5em 0; | + | margin: 0 0 .5em 0.5em; |
max-height: 100%; | max-height: 100%; | ||
max-width: 220px; | max-width: 220px; | ||
Line 167: | Line 167: | ||
.logo{ | .logo{ | ||
- | display: none; | + | display: none; /*hide main logos*/ |
min-width: 150px; | min-width: 150px; | ||
} | } | ||
- | #whiteheader | + | #whiteheader{ |
- | display: | + | display: none; |
} | } | ||
#mobilelogo{ | #mobilelogo{ | ||
- | display: inline-block; | + | display: inline-block; /*restores mini logo*/ |
margin-left: 0.5em; | margin-left: 0.5em; | ||
margin-top: 1em; | margin-top: 1em; | ||
Line 182: | Line 182: | ||
nav{ | nav{ | ||
- | margin: 0 | + | margin: 0 auto 0 auto; |
text-align: center; | text-align: center; | ||
+ | width: 100%; | ||
} | } | ||
Line 200: | Line 201: | ||
nav li a{ | nav li a{ | ||
font-size: 1.3rem; | font-size: 1.3rem; | ||
- | padding: .1em | + | padding: .1em .8em; |
} | } | ||
Revision as of 18:46, 24 October 2013
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.5em; max-height: 100%; max-width: 220px; 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; }
- em{
display:none; height: 1em; }
- jsnotice{
background: #FF0000; padding: .5em; position: relative; top: 8em; width: 100%; }
#jsnotice p{ color: #FFFFFF; margin: 0; padding: 0; }
- blackheader{
background: #404040; z-index: 3; }
- navbutton{
display: none; }
/*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: 170px; }
nav{ margin-top: 0.8em; }
nav ul{ padding: 0; }
nav li a{ font-size: 1.05rem; padding: .3em .5em 0 .5em; }
#blackheader{ margin-top: 1.3em; } }
/*mobile and tablet styling for less than 768px*/ @media only screen and (max-width: 768px){
.logo{ display: none; /*hide main logos*/ min-width: 150px; }
#whiteheader{ display: none; }
#mobilelogo{ display: inline-block; /*restores mini logo*/ margin-left: 0.5em; margin-top: 1em; }
nav{ margin: 0 auto 0 auto; text-align: center; width: 100%; }
nav ul{ border-bottom: 1px solid #555555; border-top: 2px solid #555555; padding: 0; width: 100%; }
nav li{ margin: 0; padding: 0; }
nav li a{ font-size: 1.3rem; padding: .1em .8em; }
#navbutton{
}
#footer li{ margin: 0 0.3em; }
}