Difference between revisions of "Team:KSA KOREA"

(update with css links)
Line 7: Line 7:
 
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/Bulma&action=raw&ctype=text/css" />
 
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/Bulma&action=raw&ctype=text/css" />
  
 +
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/bbCSS&action=raw&ctype=text/css" />
  
<style>
+
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/demo&action=raw&ctype=text/css" />
.bb-bookblock {
+
width: 400px;
+
height: 300px;
+
margin: 0 auto;
+
position: relative;
+
z-index: 100;
+
-webkit-perspective: 1300px;
+
perspective: 1300px;
+
-webkit-backface-visibility: hidden;
+
backface-visibility: hidden;
+
}
+
  
.bb-page {
 
position: absolute;
 
-webkit-transform-style: preserve-3d;
 
transform-style: preserve-3d;
 
-webkit-transition-property: -webkit-transform;
 
transition-property: transform;
 
}
 
  
.bb-vertical .bb-page {
+
<script type="text/javascript" src="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/modernizr&action=raw&ctype=text/javascript"</script>
width: 50%;
+
height: 100%;
+
left: 50%;
+
-webkit-transform-origin: left center;
+
transform-origin: left center;
+
}
+
  
.bb-horizontal .bb-page {
 
width: 100%;
 
height: 50%;
 
top: 50%;
 
-webkit-transform-origin: center top;
 
transform-origin: center top;
 
}
 
  
.bb-page > div,
+
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/bookCSS&action=raw&ctype=text/css" />
.bb-outer,
+
.bb-content,
+
.bb-inner {
+
position: absolute;
+
height: 100%;
+
width: 100%;
+
top: 0;
+
left: 0;
+
-webkit-backface-visibility: hidden;
+
backface-visibility: hidden;
+
}
+
  
.bb-vertical .bb-content {
+
<link rel="stylesheet" type="text/css" href="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/imageZoomcss&action=raw&ctype=text/css" />
width: 200%;
+
}
+
  
.bb-horizontal .bb-content {
 
height: 200%;
 
}
 
  
.bb-page > div {
 
width: 100%;
 
-webkit-transform-style: preserve-3d;
 
transform-style: preserve-3d;
 
}
 
  
.bb-vertical .bb-back {
 
-webkit-transform: rotateY(-180deg);
 
transform: rotateY(-180deg);
 
}
 
 
.bb-horizontal .bb-back {
 
-webkit-transform: rotateX(-180deg);
 
transform: rotateX(-180deg);
 
}
 
 
.bb-outer {
 
width: 100%;
 
overflow: hidden;
 
z-index: 999;
 
}
 
 
.bb-overlay,
 
.bb-flipoverlay {
 
background-color: rgba(0, 0, 0, 0.7);
 
position: absolute;
 
top: 0px;
 
left: 0px;
 
width: 100%;
 
height: 100%;
 
opacity: 0;
 
}
 
 
.bb-flipoverlay {
 
background-color: rgba(0, 0, 0, 0.2);
 
}
 
 
.bb-bookblock.bb-vertical > div.bb-page:first-child,
 
.bb-bookblock.bb-vertical > div.bb-page:first-child .bb-back {
 
-webkit-transform: rotateY(180deg);
 
transform: rotateY(180deg);
 
}
 
 
.bb-bookblock.bb-horizontal > div.bb-page:first-child,
 
.bb-bookblock.bb-horizontal > div.bb-page:first-child .bb-back {
 
-webkit-transform: rotateX(180deg);
 
transform: rotateX(180deg);
 
}
 
 
/* Content display */
 
.bb-content {
 
background: #fff;
 
}
 
 
.bb-vertical .bb-front .bb-content {
 
left: -100%;
 
}
 
 
.bb-horizontal .bb-front .bb-content {
 
top: -100%;
 
}
 
 
/* Flipping classes */
 
.bb-vertical .bb-flip-next,
 
.bb-vertical .bb-flip-initial {
 
-webkit-transform: rotateY(-180deg);
 
transform: rotateY(-180deg);
 
}
 
 
.bb-vertical .bb-flip-prev {
 
-webkit-transform: rotateY(0deg);
 
transform: rotateY(0deg);
 
}
 
 
.bb-horizontal .bb-flip-next,
 
.bb-horizontal .bb-flip-initial {
 
-webkit-transform: rotateX(180deg);
 
transform: rotateX(180deg);
 
}
 
 
.bb-horizontal .bb-flip-prev {
 
-webkit-transform: rotateX(0deg);
 
transform: rotateX(0deg);
 
}
 
 
.bb-vertical .bb-flip-next-end {
 
-webkit-transform: rotateY(-15deg);
 
transform: rotateY(-15deg);
 
}
 
 
.bb-vertical .bb-flip-prev-end {
 
-webkit-transform: rotateY(-165deg);
 
transform: rotateY(-165deg);
 
}
 
 
.bb-horizontal .bb-flip-next-end {
 
-webkit-transform: rotateX(15deg);
 
transform: rotateX(15deg);
 
}
 
 
.bb-horizontal .bb-flip-prev-end {
 
-webkit-transform: rotateX(165deg);
 
transform: rotateX(165deg);
 
}
 
 
.bb-item {
 
width: 100%;
 
height: 100%;
 
position: absolute;
 
top: 0;
 
left: 0;
 
display: none;
 
background: #fff;
 
}
 
 
/* No JS */
 
.no-js .bb-bookblock,
 
.no-js ul.bb-custom-grid li {
 
width: auto;
 
height: auto;
 
}
 
 
.no-js .bb-item {
 
display: block;
 
position: relative;
 
}
 
 
</style>
 
 
 
 
<style>
 
@font-face {
 
  font-family: 'arrows';
 
  src: url('../fonts/arrows/arrows.eot');
 
  src: url('../fonts/arrows/arrows.eot?#iefix') format('embedded-opentype'),
 
    url('../fonts/arrows/arrows.woff') format('woff'),
 
    url('../fonts/arrows/arrows.ttf') format('truetype'),
 
    url('../fonts/arrows/arrows.svg#arrows') format('svg');
 
  font-weight: normal;
 
  font-style: normal;
 
}
 
 
.bb-custom-wrapper {
 
  width: 100%;
 
  height: 100%;
 
  position: relative;
 
  /* box-sizing: border-box; */
 
}
 
 
.bb-custom-wrapper .bb-bookblock {
 
  width: 100%;
 
  height: 100%;
 
  -webkit-perspective: 2000px;
 
  perspective: 2000px;
 
}
 
 
.bb-custom-side {
 
  width: 50%;
 
  float: left;
 
  height: 100%;
 
  overflow: hidden;
 
  background: #93D1D5;
 
  /* Centering with flexbox */
 
  display: -webkit-box;
 
  display: -moz-box;
 
  display: -webkit-flex;
 
  display: flex;
 
  -webkit-flex-direction: row;
 
  flex-direction: row;
 
  -webkit-flex-wrap: wrap;
 
  flex-wrap: wrap;
 
  -webkit-box-pack: center;
 
  -moz-box-pack: center;
 
  -webkit-justify-content: center;
 
  justify-content: center;
 
  -webkit-box-align: center;
 
  -moz-box-align: center;
 
  -webkit-align-items: center;
 
  align-items: center;
 
}
 
 
.bb-custom-firstpage h1 {
 
  font-size: 2.625em;
 
  line-height: 1.3;
 
  margin: 0;
 
  font-weight: 300;
 
  background: #93D1D5;
 
}
 
 
.bb-custom-firstpage h1 span {
 
  display: block;
 
  font-size: 60%;
 
  opacity: 0.3;
 
  padding: 0 0 0.6em 0.1em;
 
}
 
 
.bb-custom-firstpage {
 
  text-align: center;
 
  padding-top: 15%;
 
  width: 50%;
 
  float: left;
 
  height: 100%;
 
}
 
 
.bb-custom-side p {
 
  padding: 8%;
 
  font-size: 1.8em;
 
  font-weight: 300;
 
}
 
 
.bb-custom-wrapper h3 {
 
  font-size: 1.4em;
 
  font-weight: 300;
 
  margin: 0.4em 0 1em;
 
}
 
 
.bb-custom-wrapper>nav {
 
  width: 100%;
 
  height: 40px;
 
  margin: 1em auto 0;
 
  position: fixed;
 
  bottom: 20px;
 
  z-index: 1000;
 
  text-align: center;
 
}
 
 
#page-nav {
 
  width: 100%;
 
  height: 40px;
 
  margin: 1em auto 0;
 
  position: fixed;
 
  bottom: 20px;
 
  z-index: 1000;
 
  text-align: center;
 
}
 
 
#page-nav a {
 
  display: inline-block;
 
  width: 40px;
 
  height: 40px;
 
  text-align: center;
 
  border-radius: 2px;
 
  background: #93D1D5;
 
  color: #fff;
 
  font-size: 0;
 
  margin: 2px;
 
}
 
 
.bb-custom-wrapper>nav a {
 
  display: inline-block;
 
  width: 40px;
 
  height: 40px;
 
  text-align: center;
 
  border-radius: 2px;
 
  background: #93D1D5;
 
  color: #fff;
 
  font-size: 0;
 
  margin: 2px;
 
}
 
 
#page-nav a:hover {
 
  opacity: 0.6;
 
}
 
 
.bb-custom-wrapper>nav a:hover {
 
  opacity: 0.6;
 
}
 
 
.bb-custom-icon:before {
 
  font-family: 'arrows';
 
  speak: none;
 
  font-style: normal;
 
  font-weight: normal;
 
  font-variant: normal;
 
  text-transform: none;
 
  line-height: 1;
 
  font-size: 30px;
 
  line-height: 40px;
 
  display: block;
 
  -webkit-font-smoothing: antialiased;
 
}
 
 
.bb-custom-icon-first:before,
 
.bb-custom-icon-last:before {
 
  content: "\e002";
 
}
 
 
.bb-custom-icon-arrow-left:before,
 
.bb-custom-icon-arrow-right:before {
 
  content: "\e003";
 
}
 
 
.bb-custom-icon-arrow-left:before,
 
.bb-custom-icon-first:before {
 
  -webkit-transform: rotate(180deg);
 
  transform: rotate(180deg);
 
}
 
 
/* No JS */
 
.no-js .bb-custom-wrapper {
 
  height: auto;
 
}
 
 
.no-js .bb-custom-content {
 
  height: 470px;
 
}
 
 
@media screen and (max-width: 61.75em) {
 
  .bb-custom-side {
 
    font-size: 70%;
 
  }
 
}
 
 
@media screen and (max-width: 33em) {
 
  .bb-custom-side {
 
    font-size: 60%;
 
  }
 
}
 
</style>
 
 
 
 
<style>
 
/*
 
A. Mini Reset
 
*/
 
*, *:after, *:before {
 
  -webkit-box-sizing: border-box;
 
  -moz-box-sizing: border-box;
 
  box-sizing: border-box;
 
}
 
 
* {
 
  margin: 0;
 
  padding: 0;
 
}
 
 
::before,
 
::after {
 
  content: "";
 
}
 
 
html,
 
body {
 
  height: 100%;
 
  -webkit-font-smoothing: subpixel-antialiased;
 
}
 
 
html {
 
  font-size: 100%;
 
}
 
 
body {
 
  background: #ecf0f1;
 
  color: #34495e;
 
  font-family: 'Lato', 'Arial', sans-serif;
 
  font-weight: 400;
 
  line-height: 1.2;
 
}
 
 
ul {
 
  margin: 0;
 
  padding: 0;
 
  list-style: none;
 
}
 
 
a {
 
  color: #2c3e50;
 
  text-decoration: none;
 
}
 
 
.btn {
 
  /* display: inline-block; */
 
  display: block;
 
  text-transform: uppercase;
 
  /* border: 2px solid #2c3e50; */
 
  /* margin-top: 100px;  */
 
  margin-top: 20px;
 
  font-size: 0.7em;
 
  font-weight: 700;
 
  padding: 0.1em 0.4em;
 
  text-align: center;
 
  -webkit-transition: color 0.3s, border-color 0.3s;
 
  -moz-transition: color 0.3s, border-color 0.3s;
 
  transition: color 0.3s, border-color 0.3s;
 
}
 
 
.btn:hover {
 
  border-color: #16a085;
 
  color: #16a085;
 
}
 
 
/* basic grid, only for this demo */
 
.align {
 
  clear: both;
 
  margin: 90px auto 20px;
 
  width: 100%;
 
  /* max-width: 1170px; */
 
  max-width: 1400px;
 
  text-align: center;
 
  margin-left: 0;
 
  margin-top: 0;
 
  margin-bottom: 0;
 
}
 
 
.align>li {
 
  /* width: 500px; */
 
  width: 140px;
 
  /* min-height: 300px; */
 
  display: inline-block;
 
  margin: 30px 20px 30px 30px;
 
  /* padding: 0 0 0 60px; */
 
  vertical-align: top;
 
  margin-bottom: -25px;
 
}
 
 
/* ///////////////////////////////////////////////////
 
 
HARDCOVER
 
Table of Contents
 
 
1. container
 
2. background & color
 
3. opening cover, back cover and pages
 
4. position, transform y transition
 
5. events
 
6. Bonus
 
- Cover design
 
- Ribbon
 
- Figcaption
 
7. mini-reset
 
 
/////////////////////////////////////////////////////*/
 
/*
 
1. container
 
*/
 
.book {
 
  position: relative;
 
  /* width: 160px; */
 
  width: 120px;
 
  /* height: 220px; */
 
  height: 160px;
 
  -webkit-perspective: 1000px;
 
  -moz-perspective: 1000px;
 
  perspective: 1000px;
 
  -webkit-transform-style: preserve-3d;
 
  -moz-transform-style: preserve-3d;
 
  transform-style: preserve-3d;
 
}
 
 
/*
 
2. background & color
 
*/
 
/* HARDCOVER FRONT */
 
.hardcover_front li:first-child {
 
  background-color: #eee;
 
  -webkit-backface-visibility: hidden;
 
  -moz-backface-visibility: hidden;
 
  backface-visibility: hidden;
 
}
 
 
/* reverse */
 
.hardcover_front li:last-child {
 
  background: #fffbec;
 
}
 
 
/* HARDCOVER BACK */
 
.hardcover_back li:first-child {
 
  background: #fffbec;
 
}
 
 
/* reverse */
 
.hardcover_back li:last-child {
 
  background: #fffbec;
 
}
 
 
.book_spine li:first-child {
 
  background: #eee;
 
}
 
 
.book_spine li:last-child {
 
  background: #333;
 
}
 
 
/* thickness of cover */
 
.hardcover_front li:first-child:after,
 
.hardcover_front li:first-child:before,
 
.hardcover_front li:last-child:after,
 
.hardcover_front li:last-child:before,
 
.hardcover_back li:first-child:after,
 
.hardcover_back li:first-child:before,
 
.hardcover_back li:last-child:after,
 
.hardcover_back li:last-child:before,
 
.book_spine li:first-child:after,
 
.book_spine li:first-child:before,
 
.book_spine li:last-child:after,
 
.book_spine li:last-child:before {
 
  background: #999;
 
}
 
 
/* page */
 
.page>li {
 
  background: -webkit-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
 
  background: -moz-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
 
  background: -ms-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
 
  background: linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
 
  box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1), inset -1px 0px 1px rgba(150, 150, 150, 0.2);
 
  border-radius: 0px 5px 5px 0px;
 
}
 
 
/*
 
3. opening cover, back cover and pages
 
*/
 
.hardcover_front {
 
  -webkit-transform: rotateY(-34deg) translateZ(8px);
 
  -moz-transform: rotateY(-34deg) translateZ(8px);
 
  transform: rotateY(-34deg) translateZ(8px);
 
  z-index: 100;
 
}
 
 
.hardcover_back {
 
  -webkit-transform: rotateY(-15deg) translateZ(-8px);
 
  -moz-transform: rotateY(-15deg) translateZ(-8px);
 
  transform: rotateY(-15deg) translateZ(-8px);
 
}
 
 
.page li:nth-child(1) {
 
  -webkit-transform: rotateY(-28deg);
 
  -moz-transform: rotateY(-28deg);
 
  transform: rotateY(-28deg);
 
}
 
 
.page li:nth-child(2) {
 
  -webkit-transform: rotateY(-30deg);
 
  -moz-transform: rotateY(-30deg);
 
  transform: rotateY(-30deg);
 
}
 
 
.page li:nth-child(3) {
 
  -webkit-transform: rotateY(-32deg);
 
  -moz-transform: rotateY(-32deg);
 
  transform: rotateY(-32deg);
 
}
 
 
.page li:nth-child(4) {
 
  -webkit-transform: rotateY(-34deg);
 
  -moz-transform: rotateY(-34deg);
 
  transform: rotateY(-34deg);
 
}
 
 
.page li:nth-child(5) {
 
  -webkit-transform: rotateY(-36deg);
 
  -moz-transform: rotateY(-36deg);
 
  transform: rotateY(-36deg);
 
}
 
 
/*
 
4. position, transform & transition
 
*/
 
.hardcover_front,
 
.hardcover_back,
 
.book_spine,
 
.hardcover_front li,
 
.hardcover_back li,
 
.book_spine li {
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
  width: 100%;
 
  height: 100%;
 
  -webkit-transform-style: preserve-3d;
 
  -moz-transform-style: preserve-3d;
 
  transform-style: preserve-3d;
 
}
 
 
.hardcover_front,
 
.hardcover_back {
 
  -webkit-transform-origin: 0% 100%;
 
  -moz-transform-origin: 0% 100%;
 
  transform-origin: 0% 100%;
 
}
 
 
.hardcover_front {
 
  -webkit-transition: all 0.8s ease, z-index 0.6s;
 
  -moz-transition: all 0.8s ease, z-index 0.6s;
 
  transition: all 0.8s ease, z-index 0.6s;
 
}
 
 
/* HARDCOVER front */
 
.hardcover_front li:first-child {
 
  cursor: default;
 
  -webkit-user-select: none;
 
  -moz-user-select: none;
 
  user-select: none;
 
  -webkit-transform: translateZ(2px);
 
  -moz-transform: translateZ(2px);
 
  transform: translateZ(2px);
 
}
 
 
.hardcover_front li:last-child {
 
  -webkit-transform: rotateY(180deg) translateZ(2px);
 
  -moz-transform: rotateY(180deg) translateZ(2px);
 
  transform: rotateY(180deg) translateZ(2px);
 
}
 
 
/* HARDCOVER back */
 
.hardcover_back li:first-child {
 
  -webkit-transform: translateZ(2px);
 
  -moz-transform: translateZ(2px);
 
  transform: translateZ(2px);
 
}
 
 
.hardcover_back li:last-child {
 
  -webkit-transform: translateZ(-2px);
 
  -moz-transform: translateZ(-2px);
 
  transform: translateZ(-2px);
 
}
 
 
/* thickness of cover */
 
.hardcover_front li:first-child:after,
 
.hardcover_front li:first-child:before,
 
.hardcover_front li:last-child:after,
 
.hardcover_front li:last-child:before,
 
.hardcover_back li:first-child:after,
 
.hardcover_back li:first-child:before,
 
.hardcover_back li:last-child:after,
 
.hardcover_back li:last-child:before,
 
.book_spine li:first-child:after,
 
.book_spine li:first-child:before,
 
.book_spine li:last-child:after,
 
.book_spine li:last-child:before {
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
}
 
 
/* HARDCOVER front */
 
.hardcover_front li:first-child:after,
 
.hardcover_front li:first-child:before {
 
  /* width: 4px; */
 
  height: 100%;
 
}
 
 
.hardcover_front li:first-child:after {
 
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
}
 
 
.hardcover_front li:first-child:before {
 
  -webkit-transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
  -moz-transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
}
 
 
.hardcover_front li:last-child:after,
 
.hardcover_front li:last-child:before {
 
  /* width: 4px; */
 
  height: 160px;
 
}
 
 
.hardcover_front li:last-child:after {
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
 
}
 
 
.hardcover_front li:last-child:before {
 
  /* box-shadow: 0px 0px 30px 5px #333; */
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
 
}
 
 
/* thickness of cover */
 
.hardcover_back li:first-child:after,
 
.hardcover_back li:first-child:before {
 
  /* width: 4px; */
 
  height: 100%;
 
}
 
 
.hardcover_back li:first-child:after {
 
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
}
 
 
.hardcover_back li:first-child:before {
 
  -webkit-transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
  -moz-transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
 
}
 
 
.hardcover_back li:last-child:after,
 
.hardcover_back li:last-child:before {
 
  /* width: 4px; */
 
  height: 160px;
 
}
 
 
.hardcover_back li:last-child:after {
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
 
}
 
 
.hardcover_back li:last-child:before {
 
  /* box-shadow: 10px -1px 80px 20px #666; */
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
 
}
 
 
/* BOOK SPINE */
 
.book_spine {
 
  -webkit-transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
 
  -moz-transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
 
  transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
 
  /* width: 16px; */
 
  width: 20px;
 
  z-index: 0;
 
}
 
 
.book_spine li:first-child {
 
  -webkit-transform: translateZ(2px);
 
  -moz-transform: translateZ(2px);
 
  transform: translateZ(2px);
 
}
 
 
.book_spine li:last-child {
 
  -webkit-transform: translateZ(-2px);
 
  -moz-transform: translateZ(-2px);
 
  transform: translateZ(-2px);
 
}
 
 
/* thickness of book spine */
 
.book_spine li:first-child:after,
 
.book_spine li:first-child:before {
 
  width: 4px;
 
  height: 100%;
 
}
 
 
.book_spine li:first-child:after {
 
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
 
}
 
 
.book_spine li:first-child:before {
 
  -webkit-transform: rotateY(-90deg) translateZ(-12px);
 
  -moz-transform: rotateY(-90deg) translateZ(-12px);
 
  transform: rotateY(-90deg) translateZ(-12px);
 
}
 
 
.book_spine li:last-child:after,
 
.book_spine li:last-child:before {
 
  /* width: 4px; */
 
  height: 16px;
 
}
 
 
.book_spine li:last-child:after {
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
 
}
 
 
.book_spine li:last-child:before {
 
  /* box-shadow: 5px -1px 100px 40px rgba(0, 0, 0, 0.2); */
 
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
 
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
 
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
 
}
 
 
.page,
 
.page>li {
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
  -webkit-transform-style: preserve-3d;
 
  -moz-transform-style: preserve-3d;
 
  transform-style: preserve-3d;
 
}
 
 
.page {
 
  width: 100%;
 
  height: 98%;
 
  top: 1%;
 
  left: 3%;
 
  z-index: 10;
 
}
 
 
.page>li {
 
  width: 100%;
 
  height: 100%;
 
  -webkit-transform-origin: left center;
 
  -moz-transform-origin: left center;
 
  transform-origin: left center;
 
  -webkit-transition-property: transform;
 
  -moz-transition-property: transform;
 
  transition-property: transform;
 
  -webkit-transition-timing-function: ease;
 
  -moz-transition-timing-function: ease;
 
  transition-timing-function: ease;
 
}
 
 
.page>li:nth-child(1) {
 
  -webkit-transition-duration: 0.6s;
 
  -moz-transition-duration: 0.6s;
 
  transition-duration: 0.6s;
 
}
 
 
.page>li:nth-child(2) {
 
  -webkit-transition-duration: 0.6s;
 
  -moz-transition-duration: 0.6s;
 
  transition-duration: 0.6s;
 
}
 
 
.page>li:nth-child(3) {
 
  -webkit-transition-duration: 0.4s;
 
  -moz-transition-duration: 0.4s;
 
  transition-duration: 0.4s;
 
}
 
 
.page>li:nth-child(4) {
 
  -webkit-transition-duration: 0.5s;
 
  -moz-transition-duration: 0.5s;
 
  transition-duration: 0.5s;
 
}
 
 
.page>li:nth-child(5) {
 
  -webkit-transition-duration: 0.6s;
 
  -moz-transition-duration: 0.6s;
 
  transition-duration: 0.6s;
 
}
 
 
/*
 
5. events
 
*/
 
.book:hover>.hardcover_front {
 
  -webkit-transform: rotateY(-145deg) translateZ(0);
 
  -moz-transform: rotateY(-145deg) translateZ(0);
 
  transform: rotateY(-145deg) translateZ(0);
 
  z-index: 0;
 
}
 
 
.book:hover>.page li:nth-child(1) {
 
  -webkit-transform: rotateY(-30deg);
 
  -moz-transform: rotateY(-30deg);
 
  transform: rotateY(-30deg);
 
  -webkit-transition-duration: 1.5s;
 
  -moz-transition-duration: 1.5s;
 
  transition-duration: 1.5s;
 
}
 
 
.book:hover>.page li:nth-child(2) {
 
  -webkit-transform: rotateY(-35deg);
 
  -moz-transform: rotateY(-35deg);
 
  transform: rotateY(-35deg);
 
  -webkit-transition-duration: 1.8s;
 
  -moz-transition-duration: 1.8s;
 
  transition-duration: 1.8s;
 
}
 
 
.book:hover>.page li:nth-child(3) {
 
  -webkit-transform: rotateY(-118deg);
 
  -moz-transform: rotateY(-118deg);
 
  transform: rotateY(-118deg);
 
  -webkit-transition-duration: 1.6s;
 
  -moz-transition-duration: 1.6s;
 
  transition-duration: 1.6s;
 
}
 
 
.book:hover>.page li:nth-child(4) {
 
  -webkit-transform: rotateY(-130deg);
 
  -moz-transform: rotateY(-130deg);
 
  transform: rotateY(-130deg);
 
  -webkit-transition-duration: 1.4s;
 
  -moz-transition-duration: 1.4s;
 
  transition-duration: 1.4s;
 
}
 
 
.book:hover>.page li:nth-child(5) {
 
  -webkit-transform: rotateY(-140deg);
 
  -moz-transform: rotateY(-140deg);
 
  transform: rotateY(-140deg);
 
  -webkit-transition-duration: 1.2s;
 
  -moz-transition-duration: 1.2s;
 
  transition-duration: 1.2s;
 
}
 
 
/*
 
6. Bonus
 
*/
 
/* cover CSS */
 
.coverDesign {
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
  bottom: 0;
 
  right: 0;
 
  overflow: hidden;
 
  z-index: 1;
 
  -webkit-backface-visibility: hidden;
 
  -moz-backface-visibility: hidden;
 
  backface-visibility: hidden;
 
}
 
 
.coverDesign::after {
 
  background-image: -webkit-linear-gradient(-135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
 
  background-image: -moz-linear-gradient(-135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
 
  background-image: linear-gradient(-135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
  bottom: 0;
 
  right: 0;
 
}
 
 
.coverDesign h1 {
 
  color: #fff;
 
  font-size: 2.2em;
 
  letter-spacing: 0.05em;
 
  text-align: center;
 
  margin: 54% 0 0 0;
 
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
 
}
 
 
.coverDesign p {
 
  color: #f8f8f8;
 
  font-size: 1em;
 
  text-align: center;
 
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
 
}
 
 
.yellow {
 
  background-color: #f1c40f;
 
  background-image: -webkit-linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
 
  background-image: -moz-linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
 
  background-image: linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
 
}
 
 
.blue {
 
  background-color: #3498db;
 
  background-image: -webkit-linear-gradient(top, #3498db 58%, #2a90d4 0%);
 
  background-image: -moz-linear-gradient(top, #3498db 58%, #2a90d4 0%);
 
  background-image: linear-gradient(top, #3498db 58%, #2a90d4 0%);
 
}
 
 
.grey {
 
  background-color: #f8e9d1;
 
  background-image: -webkit-linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
 
  background-image: -moz-linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
 
  background-image: linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
 
}
 
 
/* Basic ribbon */
 
.ribbon {
 
  background: #c0392b;
 
  color: #fff;
 
  display: block;
 
  font-size: 0.7em;
 
  position: absolute;
 
  top: 11px;
 
  right: 1px;
 
  width: 40px;
 
  height: 20px;
 
  line-height: 20px;
 
  letter-spacing: 0.15em;
 
  text-align: center;
 
  -webkit-transform: rotateZ(45deg) translateZ(1px);
 
  -moz-transform: rotateZ(45deg) translateZ(1px);
 
  transform: rotateZ(45deg) translateZ(1px);
 
  -webkit-backface-visibility: hidden;
 
  -moz-backface-visibility: hidden;
 
  backface-visibility: hidden;
 
  z-index: 10;
 
}
 
 
.ribbon::before,
 
.ribbon::after {
 
  position: absolute;
 
  top: -20px;
 
  width: 0;
 
  height: 0;
 
  border-bottom: 20px solid #c0392b;
 
  border-top: 20px solid transparent;
 
}
 
 
.ribbon::before {
 
  left: -20px;
 
  border-left: 20px solid transparent;
 
}
 
 
.ribbon::after {
 
  right: -20px;
 
  border-right: 20px solid transparent;
 
}
 
 
/* Media Queries */
 
@media screen and (max-width: 37.8125em) {
 
  .align>li {
 
    width: 100%;
 
    min-height: 440px;
 
    height: auto;
 
    padding: 0;
 
    margin: 0 0 30px 0;
 
  }
 
 
  .book {
 
    margin: 0 auto;
 
  }
 
 
  figcaption {
 
    text-align: center;
 
    width: 320px;
 
    top: 250px;
 
    padding-left: 0;
 
    left: -80px;
 
    font-size: 90%;
 
  }
 
}
 
</style>
 
 
<style>
 
figure.containerZoom{background-position:50% 50%;position:relative;width:100%;overflow:hidden;cursor:zoom-in;margin:0}figure.containerZoom img{transition:opacity .5s;display:block;width:100%}figure.containerZoom.active img{opacity:0}
 
</style>
 
  
 
<style>
 
<style>
Line 1,184: Line 113:
 
<title>KSA Korea Wiki Page</title>
 
<title>KSA Korea Wiki Page</title>
  
<script type="text/javascript" src="https://2020.igem.org/wiki/index.php?title=Template:KSA_KOREA/modernizr&action=raw&ctype=text/javascript"</script>
 
  
  

Revision as of 14:14, 27 October 2020