Team:Calgary Entrepreneurial/Stylesheets/main.css

From 2013.igem.org

(Difference between revisions)
 
(8 intermediate revisions not shown)
Line 137: Line 137:
color: #FFFFFF !important;
color: #FFFFFF !important;
}
}
-
 
+
/*Font positioning breaks at 1050px screen width*/
/*Font positioning breaks at 1050px screen width*/
@media screen and (max-width: 1050px){
@media screen and (max-width: 1050px){
 +
 +
.logo{
.logo{
min-width: 170px;
min-width: 170px;
Line 147: Line 149:
nav{
nav{
margin-top: 0.8em;
margin-top: 0.8em;
 +
display: inline-block;
}
}
Line 170: Line 173:
@media only screen and (max-width: 768px){
@media only screen and (max-width: 768px){
 +
@-ms-viewport{
 +
    width: device-width;
 +
}
 +
 +
.logo{
.logo{
display: none; /*hide main logos*/
display: none; /*hide main logos*/
Line 227: Line 235:
#jsnotice{
#jsnotice{
top: 7em;
top: 7em;
 +
margin-bottom: 2em;
}
}
 +
 +
}
}
Line 233: Line 244:
@media only screen and (max-width: 634px){
@media only screen and (max-width: 634px){
#jsnotice{
#jsnotice{
-
margin-top: 9em;
+
top: 9em;
 +
margin-bottom: 4em;
 +
}
 +
 +
#blackcontainer{
 +
top: 5em;
 +
}
 +
 +
#herocaption{
 +
margin-top: 5em;
}
}
}
}

Latest revision as of 23:44, 3 January 2014

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; }

  1. em{

display:none; height: 1em; }

  1. jsnotice{

background: #FF0000; padding: 0; position: relative; top: 7.5em; width: 100%; }

#jsnotice p{ color: #FFFFFF; margin: 0; padding: .5em; }

  1. blackheader{

background: #404040; z-index: 3; }

  1. navbutton{

display: none; }

/*White header that appears if javascript is enabled... hopefully*/

  1. 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; display: inline-block; }

nav ul{ padding: 0; }

nav li a{ font-size: 1.05rem; padding: .3em .5em 0 .5em; }

#blackheader{ margin-top: 1.3em; }

#jsnotice{ top: 6.5em; } }

/*mobile and tablet styling for less than 768px*/ @media only screen and (max-width: 768px){

@-ms-viewport{

   width: device-width;

}


.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; font-size: 0; padding: 0; width: 100%; }

nav li{ margin: 0; padding: 0; }

nav li a{ font-size: 1.25rem; padding: .1em .68em; }

#navbutton{ display: none; }

#navbutton.active{ background: transparent; display: inline-block; float: right; margin: .5em .5em .5em 0; padding: .5em; }

#footer li{ margin: 0 0.3em; }

#jsnotice{ top: 7em; margin-bottom: 2em; }


}

/*specific for a second row of nav menu*/ @media only screen and (max-width: 634px){ #jsnotice{ top: 9em; margin-bottom: 4em; }

#blackcontainer{ top: 5em; }

#herocaption{ margin-top: 5em; } }