Template:Team:HokkaidoU Japan/CSS

From 2014.igem.org

(Difference between revisions)
Line 243: Line 243:
}
}
 +
/* bookblock*/
-
/*
+
.bb-bookblock {
-
  jQuery MegaMenu Plugin
+
width: 400px;
-
  Author: GeekTantra
+
height: 300px;
-
  Author URI: http://www.geektantra.com
+
margin: 0 auto;
-
*/
+
position: relative;
-
ul.megamenu {
+
z-index: 100;
-
  background-color: transparent;
+
-webkit-perspective: 1300px;
-
  border-top: 1px solid transparent;
+
-moz-perspective: 1300px;
-
  border-bottom: 1px solid transparent;
+
perspective: 1300px;
-
  margin: 0px auto;
+
-webkit-backface-visibility: hidden;
-
  padding: 5px 10px;
+
-moz-backface-visibility: hidden;
-
  list-style: none;
+
backface-visibility: hidden;
}
}
-
ul.megamenu li.mm-item {
+
.bb-page {
 +
position: absolute;
 +
-webkit-transform-style: preserve-3d;
 +
-moz-transform-style: preserve-3d;
 +
transform-style: preserve-3d;
 +
-webkit-transition-property: -webkit-transform;
 +
-moz-transition-property: -moz-transform;
 +
transition-property: transform;
}
}
-
ul.megamenu li {
+
.bb-vertical .bb-page {
-
  margin: 0px;
+
width: 50%;
-
  padding: 0px;
+
height: 100%;
 +
left: 50%;
 +
-webkit-transform-origin: left center;
 +
-moz-transform-origin: left center;
 +
transform-origin: left center;
}
}
-
ul.megamenu li.clear-fix {
+
.bb-horizontal .bb-page {
-
  float: none;
+
width: 100%;
-
  clear: both;
+
height: 50%;
-
  margin: 0px;
+
top: 50%;
-
  padding: 0px;
+
-webkit-transform-origin: center top;
-
  height: 0px;
+
-moz-transform-origin: center top;
-
  font-size: 0px;
+
transform-origin: center top;
-
  line-height: 0px;
+
}
}
-
ul.megamenu a.mm-item-link:link, ul.megamenu a.mm-item-link:visited {
+
.bb-page > div,
-
  position: relative;
+
.bb-outer,
-
  display: inline-block;
+
.bb-content,
-
  color: #FFF;
+
.bb-inner {
-
  padding: 8px 15px;
+
position: absolute;
-
  margin: 0px 3px 0px 0px;
+
height: 100%;
-
  text-decoration: none;
+
width: 100%;
-
  z-index: 10;
+
top: 0;
-
  font-size: 14px;
+
left: 0;
-
  border-top: 1px solid transparent;
+
background: #fff;
-
  border-left: 1px solid transparent;
+
-
  border-right: 1px solid transparent;
+
}
}
-
*html ul.megamenu a.mm-item-link:link, *html ul.megamenu a.mm-item-link:visited {
+
 
-
  border-color: pink;
+
.bb-outer {
-
  filter: chroma(color=pink);
+
-webkit-backface-visibility: hidden;
 +
-moz-backface-visibility: hidden;
 +
backface-visibility: hidden;
}
}
-
ul.megamenu a.mm-item-link-hover:link, ul.megamenu a.mm-item-link-hover:visited {
+
.bb-vertical .bb-content {
-
  color: #444;
+
width: 200%;
-
  background: #transparent;
+
-
  border-top: 1px solid #transparent;
+
-
  border-left: 1px solid #transparent;
+
-
  border-right: 1px solid #transparent;
+
-
  -moz-border-radius: 3px 3px 0px 0px;
+
-
  border-radius: 3px 3px 0px 0px;
+
}
}
-
ul.megamenu div.mm-item-content {
+
.bb-horizontal .bb-content {
-
  background: #000;
+
height: 200%;
-
  padding: 0px;
+
-
  position: fixed;
+
-
  right: 0px;
+
-
  border: 1px solid #777;
+
-
  z-index: 9;
+
}
}
-
.mm-content-base {
+
.bb-page > div {
-
  background: white;
+
width: 100%;
-
  position: relative;
+
-webkit-transform-style: preserve-3d;
-
  z-index: 11;
+
-moz-transform-style: preserve-3d;
-
  padding: 10px;
+
transform-style: preserve-3d;
}
}
-
.mm-js-shadow {
+
.bb-page > div:not(:only-child) {
-
  background: black;
+
-webkit-backface-visibility: hidden;
-
  position: absolute;
+
-moz-backface-visibility: hidden;
-
  z-index: 10;
+
backface-visibility: hidden;
}
}
-
/* Mega menu end */
+
.bb-vertical .bb-back {
 +
-webkit-transform: rotateY(-180deg);
 +
-moz-transform: rotateY(-180deg);
 +
transform: rotateY(-180deg);
 +
}
 +
 
 +
.bb-horizontal .bb-back {
 +
-webkit-transform: rotateX(-180deg);
 +
-moz-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);
 +
-moz-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);
 +
-moz-transform: rotateX(180deg);
 +
transform: rotateX(180deg);
 +
}
 +
 
 +
/* Content display */
 +
.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);
 +
-moz-transform: rotateY(-180deg);
 +
transform: rotateY(-180deg);
 +
}
 +
 
 +
.bb-vertical .bb-flip-prev {
 +
-webkit-transform: rotateY(0deg);
 +
-moz-transform: rotateY(0deg);
 +
transform: rotateY(0deg);
 +
}
 +
 
 +
.bb-horizontal .bb-flip-next,
 +
.bb-horizontal .bb-flip-initial {
 +
-webkit-transform: rotateX(180deg);
 +
-moz-transform: rotateX(180deg);
 +
transform: rotateX(180deg);
 +
}
 +
 
 +
.bb-horizontal .bb-flip-prev {
 +
-webkit-transform: rotateX(0deg);
 +
-moz-transform: rotateX(0deg);
 +
transform: rotateX(0deg);
 +
}
 +
 
 +
.bb-vertical .bb-flip-next-end {
 +
-webkit-transform: rotateY(-15deg);
 +
-moz-transform: rotateY(-15deg);
 +
transform: rotateY(-15deg);
 +
}
 +
 
 +
.bb-vertical .bb-flip-prev-end {
 +
-webkit-transform: rotateY(-165deg);
 +
-moz-transform: rotateY(-165deg);
 +
transform: rotateY(-165deg);
 +
}
 +
 
 +
.bb-horizontal .bb-flip-next-end {
 +
-webkit-transform: rotateX(15deg);
 +
-moz-transform: rotateX(15deg);
 +
transform: rotateX(15deg);
 +
}
 +
 
 +
.bb-horizontal .bb-flip-prev-end {
 +
-webkit-transform: rotateX(165deg);
 +
-moz-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;
 +
}
 +
 
 +
/*Demo 4*/
 +
@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;
 +
}
 +
 
 +
.bb-custom-wrapper .bb-bookblock {
 +
width: 100%;
 +
height: 100%;
 +
-webkit-perspective: 2000px;
 +
-moz-perspective: 2000px;
 +
perspective: 2000px;
 +
}
 +
 
 +
.bb-custom-side {
 +
width: 50%;
 +
float: left;
 +
height: 100%;
 +
overflow: hidden;
 +
/* 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;
 +
}
 +
 
 +
.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;
 +
}
 +
 
 +
.bb-custom-wrapper > nav a {
 +
display: inline-block;
 +
width: 40px;
 +
height: 40px;
 +
text-align: center;
 +
border-radius: 2px;
 +
background: #1baede;
 +
color: #fff;
 +
font-size: 0;
 +
margin: 2px;
 +
}
 +
 
 +
.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);
 +
-moz-transform: rotate(180deg);
 +
-ms-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>
</html>
</html>

Revision as of 08:24, 10 September 2014