Difference between revisions of "Template:SMMU-China/CSS main"

Line 259: Line 259:
 
display: none;
 
display: none;
 
}
 
}
 +
 +
/*3d-card*/
 +
*, *:before, *:after {
 +
  box-sizing: border-box;
 +
}
 +
 +
.content {
 +
  display: flex;
 +
  margin: 0 auto;
 +
  justify-content: center;
 +
  align-items: center;
 +
  flex-wrap: wrap;
 +
  max-width: 1000px;
 +
}
 +
 +
.heading {
 +
  width: 100%;
 +
  margin-left: 1rem;
 +
  font-weight: 900;
 +
  font-size: 1.618rem;
 +
  text-transform: uppercase;
 +
  letter-spacing: .1ch;
 +
  line-height: 1;
 +
  padding-bottom: .5em;
 +
  margin-bottom: 1rem;
 +
  position: relative;
 +
}
 +
.heading:after {
 +
  display: block;
 +
  content: '';
 +
  position: absolute;
 +
  width: 60px;
 +
  height: 4px;
 +
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
 +
  bottom: 0;
 +
}
 +
 +
.description {
 +
  width: 100%;
 +
  margin-top: 0;
 +
  margin-left: 1rem;
 +
  margin-bottom: 3rem;
 +
}
 +
 +
.card {
 +
  color: inherit;
 +
  cursor: pointer;
 +
  width: calc(33% - 2rem);
 +
  min-width: calc(33% - 2rem);
 +
  height: 400px;
 +
  min-height: 400px;
 +
  perspective: 1000px;
 +
  margin: 1rem;
 +
  position: relative;
 +
}
 +
@media screen and (max-width: 800px) {
 +
  .card {
 +
    width: calc(50% - 2rem);
 +
  }
 +
}
 +
@media screen and (max-width: 500px) {
 +
  .card {
 +
    width: 100%;
 +
  }
 +
}
 +
 +
.front,
 +
.back {
 +
  display: flex;
 +
  border-radius: 6px;
 +
  background-position: center;
 +
  background-size: cover;
 +
  text-align: center;
 +
  justify-content: center;
 +
  align-items: center;
 +
  position: absolute;
 +
  height: 100%;
 +
  width: 100%;
 +
  -webkit-backface-visibility: hidden;
 +
  backface-visibility: hidden;
 +
  transform-style: preserve-3d;
 +
  transition: ease-in-out 600ms;
 +
}
 +
 +
.front {
 +
  background-size: cover;
 +
  padding: 2rem;
 +
  font-size: 1.618rem;
 +
  font-weight: 600;
 +
  color: #fff;
 +
  overflow: hidden;
 +
  font-family: Poppins, sans-serif;
 +
}
 +
.front:before {
 +
  position: absolute;
 +
  display: block;
 +
  content: '';
 +
  top: 0;
 +
  left: 0;
 +
  right: 0;
 +
  bottom: 0;
 +
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
 +
  opacity: .25;
 +
  z-index: -1;
 +
}
 +
.card:hover .front {
 +
  transform: rotateY(180deg);
 +
}
 +
.card:nth-child(even):hover .front {
 +
  transform: rotateY(-180deg);
 +
}
 +
 +
.back {
 +
  background: #fff;
 +
  transform: rotateY(-180deg);
 +
  padding: 0 2em;
 +
}
 +
.card:hover .back {
 +
  transform: rotateY(0deg);
 +
}
 +
.card:nth-child(even) .back {
 +
  transform: rotateY(180deg);
 +
}
 +
.card:nth-child(even):hover .back {
 +
  transform: rotateY(0deg);
 +
}
 +
 +
.button {
 +
  transform: translateZ(40px);
 +
  cursor: pointer;
 +
  -webkit-backface-visibility: hidden;
 +
  backface-visibility: hidden;
 +
  font-weight: bold;
 +
  color: #fff;
 +
  padding: .5em 1em;
 +
  border-radius: 100px;
 +
  font: inherit;
 +
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
 +
  border: none;
 +
  position: relative;
 +
  transform-style: preserve-3d;
 +
  transition: 300ms ease;
 +
}
 +
.button:before {
 +
  transition: 300ms ease;
 +
  position: absolute;
 +
  display: block;
 +
  content: '';
 +
  transform: translateZ(-40px);
 +
  -webkit-backface-visibility: hidden;
 +
  backface-visibility: hidden;
 +
  height: calc(100% - 20px);
 +
  width: calc(100% - 20px);
 +
  border-radius: 100px;
 +
  left: 10px;
 +
  top: 16px;
 +
  box-shadow: 0 0 10px 10px rgba(26, 87, 230, 0.25);
 +
  background-color: rgba(26, 87, 230, 0.25);
 +
}
 +
.button:hover {
 +
  transform: translateZ(55px);
 +
}
 +
.button:hover:before {
 +
  transform: translateZ(-55px);
 +
}
 +
.button:active {
 +
  transform: translateZ(20px);
 +
}
 +
.button:active:before {
 +
  transform: translateZ(-20px);
 +
  top: 12px;
 +
}
 +
  
 
@media only screen and (max-width:1400px) {
 
@media only screen and (max-width:1400px) {

Revision as of 14:50, 11 August 2019

/*general*/ @font-face{

    	font-family: 'SMMUFONT'; 
       src:url('https://static.igem.org/mediawiki/2019/8/8f/T--SMMU-China--SMMUFONT.ttf') format('truetype');
   }

body,h1,h2,h3,h4,h5,h6,p,th,td{font-family:"SMMUFONT"!important;} a{color:#333; text-decoration:none;} h1{font-size: 27px; line-height: 50px;} h2{font-size: 25px; line-height: 50px;} h3{font-size: 23px; line-height: 50px;} h4{font-size: 21px; line-height: 50px;} h5{font-size: 19px; line-height: 50px;} h6{font-size: 17px; line-height: 50px;}

.big_framework { background-color: white; display: block; width: 100%; }

.big_framework .page_banner { margin: auto; width: 100%; text-align: center; }

.big_framework .page_big_title_box { margin: 30px auto; width: 1160px; height: 180px; text-align: right; border-right: 10px solid #3B3B3B; padding-right: 30px; }

.big_framework .page_big_title_box .page_big_title{ font-size: 100px; color: #EE2C2C; line-height: 120px; font-weight: 1000; }

.big_framework .page_big_title_box .page_big_subtitle{ font-size: 40px; color: #3B3B3B; line-height: 60px; }

.big_framework .medium_framework { margin: auto; max-width: 1200px; padding: 20px 0px; width: 90%; text-align: center; }

.big_framework .medium_framework p{ font-size: 17px!important; line-height: 30px; }

.column50{ display: inline-block; width: 45%; padding: 0px 2%; margin-bottom: 0px; }

.blank_framework{ height: 90px; }

.footer{ margin-top: 50px; height: 300px; background-color: #282828; margin-bottom: -10px; }

.footer_left{ width: 50%; display: inline-block; }

.footer_right{ width: 50%; display: inline-block; float: right; }

.footer_title{ margin: auto; padding-top: 30px; height: 120px; line-height: 120px; font-size: 40px; color: #FFF; text-align: center; }

.footer_text{ display: inline-block; height: 150px; width: 100%; line-height: 40px; font-size: 20px!important; color: #FFF; text-align: center; }

/*header*/ .index-nav{ width: 100%; border-bottom: 3px solid #eeeeee; height: 83px; box-sizing: border-box; background:white; position: fixed; margin-top: 7px; }

.index-nav a{ color: #333; }

.index-nav-frame{ margin: 0px 50px; }

.index-nav-frame-line{ color: #333333; background: #ffffff00; float: left; position: relative; display: block; outline: none; cursor: pointer; width: 135px; line-height: 80px; text-align: center; font-weight: 700; font-size: 16px; }

.index-nav-frame-line.HP-button{ width: 210px; }

.index-nav-frame-logo{ background: #ffffff00; float: left; position: relative; display: block; outline: none; width: 400px; height: 80px; }

.index-nav-frame-logo-mobile{ display: none; }

.index-nav-frame-logo img{ width: 400px; }

.index-nav-frame-line.active{ color:#b63b4d; }

.index-nav-frame-line.first-one{ margin-left: 3%; width: 96px; }

.index-nav-frame-line.active > a{ color:#b63b4d; }

.index-nav-frame-line-center{ opacity: 0; height: 0; position: absolute; overflow: hidden; width: 100%; transition: all 0.5s; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; /* Firefox 4 */ -o-transition: all 0.5s; /* Opera */ }

.index-nav-frame-line-center.need-to-be-hidden{ display: none; }

.index-nav-frame-line-li{ width: 100%; font-weight: 500; text-align: center; background: white; color: #666666; line-height: 50px; }

.index-nav-frame-line-li:hover{ background: #444359; color: white; }

.index-nav-frame-line-li:hover a{ background: #444359; color: white; }

.index-nav-frame-line-focus:focus{ display: none; }

.index-nav-frame-line:hover .index-nav-frame-line-center{ height:auto; opacity: 1; }

.nav-line{ height: 50px; width: 100%; position: relative; display: none; outline: none; }

.nav-small{ width: 30px; height: 30px; position: absolute; right: 10px; top:10px; cursor: pointer; display: none; outline: none; }

.nav-small img{ width: 100%; height: 100%; object-fit: cover; }

.nav-small-focus{ position: absolute; width: 100%; height: 100%; display: none; }

.nav-small-focus:focus{ display: none; }

/*3d-card*/

  • , *:before, *:after {
 box-sizing: border-box;

}

.content {

 display: flex;
 margin: 0 auto;
 justify-content: center;
 align-items: center;
 flex-wrap: wrap;
 max-width: 1000px;

}

.heading {

 width: 100%;
 margin-left: 1rem;
 font-weight: 900;
 font-size: 1.618rem;
 text-transform: uppercase;
 letter-spacing: .1ch;
 line-height: 1;
 padding-bottom: .5em;
 margin-bottom: 1rem;
 position: relative;

} .heading:after {

 display: block;
 content: ;
 position: absolute;
 width: 60px;
 height: 4px;
 background: linear-gradient(135deg, #1a9be6, #1a57e6);
 bottom: 0;

}

.description {

 width: 100%;
 margin-top: 0;
 margin-left: 1rem;
 margin-bottom: 3rem;

}

.card {

 color: inherit;
 cursor: pointer;
 width: calc(33% - 2rem);
 min-width: calc(33% - 2rem);
 height: 400px;
 min-height: 400px;
 perspective: 1000px;
 margin: 1rem;
 position: relative;

} @media screen and (max-width: 800px) {

 .card {
   width: calc(50% - 2rem);
 }

} @media screen and (max-width: 500px) {

 .card {
   width: 100%;
 }

}

.front, .back {

 display: flex;
 border-radius: 6px;
 background-position: center;
 background-size: cover;
 text-align: center;
 justify-content: center;
 align-items: center;
 position: absolute;
 height: 100%;
 width: 100%;
 -webkit-backface-visibility: hidden;
 backface-visibility: hidden;
 transform-style: preserve-3d;
 transition: ease-in-out 600ms;

}

.front {

 background-size: cover;
 padding: 2rem;
 font-size: 1.618rem;
 font-weight: 600;
 color: #fff;
 overflow: hidden;
 font-family: Poppins, sans-serif;

} .front:before {

 position: absolute;
 display: block;
 content: ;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: linear-gradient(135deg, #1a9be6, #1a57e6);
 opacity: .25;
 z-index: -1;

} .card:hover .front {

 transform: rotateY(180deg);

} .card:nth-child(even):hover .front {

 transform: rotateY(-180deg);

}

.back {

 background: #fff;
 transform: rotateY(-180deg);
 padding: 0 2em;

} .card:hover .back {

 transform: rotateY(0deg);

} .card:nth-child(even) .back {

 transform: rotateY(180deg);

} .card:nth-child(even):hover .back {

 transform: rotateY(0deg);

}

.button {

 transform: translateZ(40px);
 cursor: pointer;
 -webkit-backface-visibility: hidden;
 backface-visibility: hidden;
 font-weight: bold;
 color: #fff;
 padding: .5em 1em;
 border-radius: 100px;
 font: inherit;
 background: linear-gradient(135deg, #1a9be6, #1a57e6);
 border: none;
 position: relative;
 transform-style: preserve-3d;
 transition: 300ms ease;

} .button:before {

 transition: 300ms ease;
 position: absolute;
 display: block;
 content: ;
 transform: translateZ(-40px);
 -webkit-backface-visibility: hidden;
 backface-visibility: hidden;
 height: calc(100% - 20px);
 width: calc(100% - 20px);
 border-radius: 100px;
 left: 10px;
 top: 16px;
 box-shadow: 0 0 10px 10px rgba(26, 87, 230, 0.25);
 background-color: rgba(26, 87, 230, 0.25);

} .button:hover {

 transform: translateZ(55px);

} .button:hover:before {

 transform: translateZ(-55px);

} .button:active {

 transform: translateZ(20px);

} .button:active:before {

 transform: translateZ(-20px);
 top: 12px;

}


@media only screen and (max-width:1400px) { .blank_framework{ height: 61px; }

.big_framework .page_big_title_box{ height: 120px; width: 90%; margin: 20px auto; text-align: left; border-left: 10px solid #3B3B3B; border-right: none;

   	padding-left: 30px;
   	padding-right: 0px;

}

.big_framework .page_big_title_box .page_big_title{ font-size: 50px; color: #EE2C2C; line-height: 80px; font-weight: 1000; }

.big_framework .page_big_title_box .page_big_subtitle{ font-size: 20px; color: #3B3B3B; line-height: 40px; }

.column50{ display: inline-block; width: 100%; padding: 0px; margin-bottom: 20px; }

.footer{ height: 600px; }

.footer_left{ width: 100%; }

.footer_right{ width: 100%; }


.index-nav{ height: inherit; }

.index-nav-frame-line-li a{ display: block; color: white; }

.nav-line{ display: block; border-bottom: 1px solid #eeeeee; }

.nav-small{ display: block; }

.nav-small:focus~.index-nav-frame-line{ height: auto; border-bottom: 1px solid #ccc; }

.nav-small:focus .nav-small-focus{ display: block; }

.index-nav-frame{ width: 100%; margin: 0px; }

.index-nav-frame-logo{ display: none; }

.index-nav-frame-logo-mobile{ background: #ffffff00; position: relative; display: block; outline: none; width: inherit; height: inherit; }

.index-nav-frame-logo-mobile img{ height: inherit; }

.index-nav-frame-line{ width: 100%; height: 0; overflow: hidden; }

.index-nav-frame-line.first-one{ margin-left: 0px; width: 100%; }

.index-nav-frame-line.HP-button{ width: 100%; }

.index-nav-frame-line-center{ position: relative; background: #444359; }

.index-nav-frame-line-center.need-to-be-hidden{ display: block; }

.index-nav-frame-line:hover .index-nav-frame-line-center{ height:0; opacity: 0; }

.index-nav-frame-line-li{ border-bottom: 1px solid #4b4a5e; color: #d9d9d9; background: #444359; }

.index-nav-frame-line-li:hover{ background: #b63b4d; }

.index-nav-frame-line:focus{ height: auto; border-bottom: 1px solid #ccc; }

.index-nav-frame-line:focus>.index-nav-frame-line-center{ height:auto; opacity: 1; }

.index-nav-frame-line:focus .index-nav-frame-line-header{ color: #B63B4D; }

.index-nav-frame-line-focus{ display: none; width: 100%; height: 50px; position: absolute; left: 0; top: 0; }

.index-nav-frame-line:focus .index-nav-frame-line-focus{ display: block; } }