Team:Calgary Entrepreneurial/Stylesheets/main.css

From 2013.igem.org

(Difference between revisions)
Line 231: Line 231:
#blackcontainer{
#blackcontainer{
-
margin-top: 3em;
+
top: 3em;
}
}
}
}
Line 242: Line 242:
#blackcontainer{
#blackcontainer{
-
margin-top: 5em;
+
top: 5em;
}
}
}
}

Revision as of 02:26, 27 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; }

  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){

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

#blackcontainer{ top: 3em; } }

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

#blackcontainer{ top: 5em; } }