Team:SJTU-BioX-Shanghai/index.css

From 2014.igem.org

(Difference between revisions)
Line 15: Line 15:
     padding: 0;
     padding: 0;
}
}
 +
 +
@font-face{
 +
font-family: ProximaSansBlack;
 +
src: url('../fonts/ProximaSansBlack.ttf');
 +
}
 +
@font-face{
 +
font-family: OpenSans;
 +
src: url('../fonts/OpenSans.ttf');
 +
}
 +
body {
body {
Line 21: Line 31:
   line-height: 1.3;
   line-height: 1.3;
   color: #111111;  
   color: #111111;  
-
}
+
  }
-
 
+
.header_logo {
.header_logo {
     width: 100%;
     width: 100%;
-
     min-width: 1024px;
+
     min-width: 100%;
-
     height: 300px;
+
     background-color: #f2ce3a;
-
    background-color:#f2ce3a;
+
height:200px;
-
 
+
background-repeat: no-repeat;
 +
background-size: auto 100%;
}
}
.header_content {
.header_content {
     margin: 0 auto;
     margin: 0 auto;
-
    font-size: 5em;
+
size:5% auto;
 +
float: right;
}
}
-
.header_logo .biglogo {
+
.header_headlink {
-
    float: left;
+
-
    padding-top: 20px;
+
-
padding-left:42%;
+
-
}
+
-
.header_logo .name {
+
-
    float: left;
+
-
    padding-top: 0px;
+
-
padding-left:39%;
+
-
}
+
-
 
+
-
.header_logo .logo {
+
     float: right;
     float: right;
-
    padding-top: 10px;
 
}
}
-
 
#wrap {
#wrap {
     padding-top: 0;
     padding-top: 0;
-
     min-width: 1024px;
+
     min-width: 100%;
     /*position: relative;*/
     /*position: relative;*/
}
}
-
.content1 {
+
.content {
-
     height: 805px;
+
     height: 10000px;
-
     min-width: 1024px;
+
     width: 100%;
-
     background-color: #2d3e58;
+
     background-color: #ffffff;
}
}
-
.content1 h2{
 
-
 
-
padding-top:200px;
 
-
padding-left:38%;
 
-
color:white;}
 
-
.content2 {
 
-
    height: 805px;
 
-
    min-width: 1024px;
 
-
    background-color: #ffffff;
 
-
}
 
-
.content2 h2{
 
-
padding-left:38%;}
 
-
.content3 {
 
-
    height: 805px;
 
-
    min-width: 1024px;
 
-
    background-color:#8bcfd8 ;
 
-
}
 
-
.content3 h2{
 
-
padding-left:38%;}
 
a {
a {
     -webkit-transition: all 0.3s ease-in-out;
     -webkit-transition: all 0.3s ease-in-out;
Line 126: Line 105:
.footer {
.footer {
-
    min-width: 1024px;
 
     width: 100%;
     width: 100%;
     height: 150px;
     height: 150px;
     background-color: #2d3e58;
     background-color: #2d3e58;
 +
    font-family: "OpenSans";
 +
    font-weight: 100;
}
}
Line 145: Line 125:
.footer-link{
.footer-link{
     width: 100%;
     width: 100%;
-
    min-width: 1024px;
 
     background-color: #1b2232;
     background-color: #1b2232;
}
}
#footer-box {
#footer-box {
 +
font-family: "OpenSans";
 +
    font-weight: 100;
     /*width: 90%;*/
     /*width: 90%;*/
     margin: 0 auto;
     margin: 0 auto;
 +
}
}
Line 175: Line 157:
#f-poweredbyico {
#f-poweredbyico {
-
     padding-right: 5%;
+
     padding-right: 3%;
     float: right;
     float: right;
}
}
#f-copyrightico {
#f-copyrightico {
-
     padding-left: 5%;
+
     padding-left: 3%;
     float: left;
     float: left;
}
}
Line 351: Line 333:
[role="navigation"] ul li a {
[role="navigation"] ul li a {
-
     font-family: "proxima-nova", sans-serif;
+
     font-family: "ProximaSansBlack", sans-serif;
-
     font-weight: 700;
+
     font-weight: 300;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1px;
     letter-spacing: 1px;
Line 386: Line 368:
     top: 8px;
     top: 8px;
     margin-left: -26px;
     margin-left: -26px;
-
     background-image: url("https://static.igem.org/mediawiki/2014/8/8e/SJTU14_nav_Logo.png");
+
     background-image: url("../img/SJTU14_logoyellow.png");
     background-position: center center;
     background-position: center center;
     width: 52px;
     width: 52px;
Line 403: Line 385:
     position: absolute;
     position: absolute;
     display: block;
     display: block;
-
     background-image: url("../img/logo_outer.png");
+
     /*background-image: url("../img/logo-outer.png");*/
     background-position: center center;
     background-position: center center;
     width: 52px;
     width: 52px;
Line 428: Line 410:
     left: -12px;
     left: -12px;
     display: block;
     display: block;
-
     background-image: url("https://static.igem.org/mediawiki/2014/e/ec/SJTU14_home.png");
+
     background-image: url("../img/SJTU14_home.png");
     background-position: center center;
     background-position: center center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
Line 435: Line 417:
     background-size: 75px 13px;
     background-size: 75px 13px;
     opacity: 0;
     opacity: 0;
 +
}
 +
@media screen and (max-width: 55.6875em) {
 +
div.header_logo {
 +
height:100px;
 +
}
 +
}
 +
@media screen and (max-height: 25.25em) {
 +
div.header_logo {
 +
height:50px;
 +
}
}
}

Revision as of 17:45, 10 October 2014

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {

   margin: 0;
   padding: 0;

}

@font-face{ font-family: ProximaSansBlack; src: url('../fonts/ProximaSansBlack.ttf'); } @font-face{ font-family: OpenSans; src: url('../fonts/OpenSans.ttf'); }


body {

 font-family: serif;
 font-weight: 400;
 line-height: 1.3;
 color: #111111; 
 }

.header_logo {

   width: 100%;
   min-width: 100%;
   background-color: #f2ce3a;

height:200px; background-repeat: no-repeat; background-size: auto 100%; }

.header_content {

   margin: 0 auto;

size:5% auto; float: right; }

.header_headlink {

   float: right;

}

  1. wrap {
   padding-top: 0;
   min-width: 100%;
   /*position: relative;*/

}

.content {

   height: 10000px;
   width: 100%;
   background-color: #ffffff;

}

a {

   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   text-decoration: none;
   color: #e8cd4d;

}

a.alt {

   color: #111111;

}

a:hover, a:focus, a:active {

   color: #111111;

}

.ir {

   font-size: 0;
   color: transparent;
   display: block;
   background-repeat: no-repeat;
   background-position: left top;

}

.flex {

   clear: both;
   padding: 5px 10px;
   display: block;
   max-width: 1024px;
   max-width: 64rem;
   margin: 0 auto;

}

.flex:after {

   content: "";
   display: table;
   clear: both;

}

.footer {

   width: 100%;
   height: 150px;
   background-color: #2d3e58;
   font-family: "OpenSans";
   font-weight: 100;

}

.footer img {

   float: left;

}

.footer .footer-content {

   margin-top: 2%;
   float: left;
   margin-left: 5%;
   color: #f2ce3a;

}

.footer-link{

   width: 100%;
   background-color: #1b2232;

}

  1. footer-box {

font-family: "OpenSans";

   font-weight: 100;
   /*width: 90%;*/
   margin: 0 auto;

}

  1. footer {
   text-align: center;
   bottom:5px;
   

}

  1. f-list a {
   color: #17c4bb; 

}

  1. f-list a:hover {
   color: white; 

}

  1. footer li {
   display: inline;
   margin: 2%;
   font-size: 80%;

}

  1. f-poweredbyico {
   padding-right: 3%;
   float: right;

}

  1. f-copyrightico {
   padding-left: 3%;
   float: left;

}

ul {

   list-style-type: none;

}

[role="banner"] {

   background-color: #2d3e58;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;

}

[role="banner"]:after {

   content: "";
   display: table;
   clear: both;

}

[role="banner"] > .flex {

   padding-top: 0;
   padding-bottom: 0;

}

[role="banner"] h1 {

   padding: 0;
   margin: 0;

}

[role="banner"].sticky {

     position: fixed;
     overflow: visible;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 10;

}

/*[role="banner"].sticky .site-title {

   position: relative;
   opacity: 1;
   -webkit-transform: scale(1, 1);
   -moz-transform: scale(1, 1);
   -ms-transform: scale(1, 1);
   -o-transform: scale(1, 1);
   transform: scale(1, 1);
   height: 52px;

}

[role="banner"].sticky .site-title:before {

   opacity: 1;
   -webkit-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -moz-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -ms-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -o-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   transform: rotate(360deg) rotateX(0deg) rotateY(0deg);

}

[role="banner"].sticky .site-title:after {

   display: none;

}*/

[role="banner"].sticky [role="navigation"] ul li:nth-of-type(1) {

   padding: 0 10px 0 0;

}

[role="banner"].sticky [role="navigation"] ul li:nth-of-type(2) {

   padding: 0 5% 0 0;

}

[role="banner"].sticky [role="navigation"] ul li:nth-of-type(3) {

   padding: 0 0 0 5%;

}

[role="banner"].sticky [role="navigation"] ul li:nth-of-type(4) {

   padding: 0 0 0 10px;

}

[role="banner"].sticky .site-title {

   position: absolute;
   opacity: 1;
   -webkit-transform: scale(1, 1);
   -moz-transform: scale(1, 1);
   -ms-transform: scale(1, 1);
   -o-transform: scale(1, 1);
   transform: scale(1, 1);

}

[role="banner"].sticky .site-title:before {

   -webkit-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -moz-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -ms-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   -o-transform: rotate(360deg) rotateX(0deg) rotateY(0deg);
   transform: rotate(360deg) rotateX(0deg) rotateY(0deg);

}

[role="banner"].sticky .site-title:after {

   display: block;

}

[role="banner"].sticky .site-title:hover {

   -webkit-transform: translate(0, -35px);
   -moz-transform: translate(0, -35px);
   -ms-transform: translate(0, -35px);
   -o-transform: translate(0, -35px);
   transform: translate(0, -35px);

}

[role="banner"].sticky .site-title:hover:before {

   -webkit-transform: rotate(-180deg) rotateX(0deg) rotateY(0deg);
   -moz-transform: rotate(-180deg) rotateX(0deg) rotateY(0deg);
   -ms-transform: rotate(-180deg) rotateX(0deg) rotateY(0deg);
   -o-transform: rotate(-180deg) rotateX(0deg) rotateY(0deg);
   transform: rotate(-180deg) rotateX(0deg) rotateY(0deg);

}

[role="banner"].sticky .site-title:hover:after {

   opacity: 1;

}

[role="navigation"] {

   -webkit-transition: opacity 1s ease-in-out;
   -moz-transition: opacity 1s ease-in-out;
   -o-transition: opacity 1s ease-in-out;
   -ms-transition: opacity 1s ease-in-out;
   transition: opacity 1s ease-in-out;
   display: block;
   z-index: 2;
   overflow: visible;
   width: 100%;
   padding: 18px 10px;

}

[role="navigation"]:after {

   content: "";
   display: table;
   clear: both;

}

[role="navigation"] ul {

   list-style-type: none;
   display: inline-block;
   text-align: center;
   display: block;

}

[role="navigation"] ul:after {

   content: "";
   display: table;
   clear: both;

}

[role="navigation"] ul li {

   display: inline-block;
   text-align: center;
   margin: 0;
   width: 20%;
   padding: 5px 0;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;

}

[role="navigation"] ul li a {

   font-family: "ProximaSansBlack", sans-serif;
   font-weight: 300;
   text-transform: uppercase;
   letter-spacing: 1px;
   display: block;
   background: none;
   color: #f2ce3a;
   padding: 4px 10px;
   line-height: 1 !important;

}

[role="navigation"] ul li a:hover, [role="navigation"] ul li a:focus, [role="navigation"] ul li a:active {

   color: #efe771;

}

.epsilon {

   font-size: 1.2em;

}

.site-title {

   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   -webkit-transform: scale(0.5, 0.5);
   -moz-transform: scale(0.5, 0.5);
   -ms-transform: scale(0.5, 0.5);
   -o-transform: scale(0.5, 0.5);
   transform: scale(0.5, 0.5);
   position: absolute;
   z-index: 10;
   left: 50%;
   top: 8px;
   margin-left: -26px;
   background-image: url("../img/SJTU14_logoyellow.png");
   background-position: center center;
   width: 52px;
   height: 52px;
   background-size: 52px 52px;
   opacity: 0;

}

.site-title:before {

   -webkit-transition: all 0.6s ease-in-out;
   -moz-transition: all 0.6s ease-in-out;
   -o-transition: all 0.6s ease-in-out;
   -ms-transition: all 0.6s ease-in-out;
   transition: all 0.6s ease-in-out;
   content: ;
   position: absolute;
   display: block;
   /*background-image: url("../img/logo-outer.png");*/
   background-position: center center;
   width: 52px;
   height: 52px;
   background-size: 52px 52px;
   -webkit-transform: rotate(0deg) rotateX(0deg) rotateY(0deg);
   -moz-transform: rotate(0deg) rotateX(0deg) rotateY(0deg);
   -ms-transform: rotate(0deg) rotateX(0deg) rotateY(0deg);
   -o-transform: rotate(0deg) rotateX(0deg) rotateY(0deg);
   transform: rotate(0deg) rotateX(0deg) rotateY(0deg);

}

.site-title:after {

   -webkit-transition: all 0.5s ease-in-out;
   -moz-transition: all 0.5s ease-in-out;
   -o-transition: all 0.5s ease-in-out;
   -ms-transition: all 0.5s ease-in-out;
   transition: all 0.5s ease-in-out;
   content: ;
   position: absolute;
   top: 42px;
   padding-top: 10px;
   padding-bottom: 20px;
   left: -12px;
   display: block;
   background-image: url("../img/SJTU14_home.png");
   background-position: center center;
   background-repeat: no-repeat;
   width: 75px;
   height: 13px;
   background-size: 75px 13px;
   opacity: 0;

} @media screen and (max-width: 55.6875em) { div.header_logo { height:100px; } } @media screen and (max-height: 25.25em) { div.header_logo { height:50px; } }