Team:Calgary Entrepreneurial/Stylesheets/main.css

From 2013.igem.org

(Difference between revisions)
 
(28 intermediate revisions not shown)
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: 230px;
+
max-width: 220px;
min-width: 200px;
min-width: 200px;
width: 18%;
width: 18%;
Line 78: Line 78:
}
}
 +
#em{
 +
display:none;
 +
height: 1em;
 +
}
 +
 +
#jsnotice{
 +
background: #FF0000;
 +
padding: 0;
 +
position: relative;
 +
top: 7.5em;
 +
width: 100%;
 +
}
 +
 +
#jsnotice p{
 +
color: #FFFFFF;
 +
margin: 0;
 +
padding: .5em;
 +
}
#blackheader{
#blackheader{
Line 84: Line 102:
}
}
 +
#navbutton{
 +
display: none;
 +
}
/*White header that appears if javascript is enabled... hopefully*/
/*White header that appears if javascript is enabled... hopefully*/
Line 116: 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 126: Line 149:
nav{
nav{
margin-top: 0.8em;
margin-top: 0.8em;
 +
display: inline-block;
}
}
Line 135: Line 159:
font-size: 1.05rem;
font-size: 1.05rem;
padding: .3em .5em 0 .5em;
padding: .3em .5em 0 .5em;
 +
}
 +
 +
#blackheader{
 +
margin-top: 1.3em;
}
}
 +
#jsnotice{
 +
top: 6.5em;
 +
}
}
}
/*mobile and tablet styling for less than 768px*/
/*mobile and tablet styling for less than 768px*/
-
@media screen and (max-width: 768px){
+
@media only screen and (max-width: 768px){
 +
@-ms-viewport{
 +
    width: device-width;
 +
}
 +
 +
.logo{
.logo{
-
display: none;
+
display: none; /*hide main logos*/
min-width: 150px;
min-width: 150px;
 +
}
 +
 +
#whiteheader{
 +
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 154: Line 194:
nav{
nav{
-
margin-top: 0.8em;
+
margin: 0 auto 0 auto;
 +
text-align: center;
 +
width: 100%;
}
}
nav ul{
nav ul{
 +
border-bottom: 1px solid #555555;
 +
border-top: 2px solid #555555;
 +
font-size: 0;
padding: 0;
padding: 0;
 +
width: 100%;
}
}
-
nav li a{
+
nav li{
-
font-size: 1rem;
+
margin: 0;
-
padding: .3em .5em 0 .5em;
+
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;
 +
}
}
}

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