Difference between revisions of "Template:Georgia State/sand"

 
(14 intermediate revisions by the same user not shown)
Line 2,219: Line 2,219:
 
}
 
}
  
.module {
+
<!---Mask effects--->
  background:
+
.view {
    linear-gradient(
+
  width: 300px;
      rgba(0, 0, 0, 0.6),
+
  height: 200px;
      rgba(0, 0, 0, 0.6)
+
  margin: 10px;
    ),
+
  float: left;
    url(https://static.igem.org/mediawiki/2018/a/a1/T--Georgia_State--Collage.jpg);
+
  border: 5px solid #fff;
  background-size: cover;
+
  overflow: hidden;
  width: 300px;
+
  position: relative;
  height: 200px;
+
  text-align: center;
  margin: 10px 0 0 10px;
+
  box-shadow: 0px 0px 5px #aaa;
  position: relative;
+
  cursor: default;
  float: left;
+
 
}
 
}
 
+
.view .mask, .view .content {
.top h2 {
+
  width: 300px;
  color: white;
+
  height: 200px;
  margin: 0;
+
  position: absolute;
  padding: 20px;
+
  overflow: hidden;
 +
  top: 0;
 +
  left: 0;
 
}
 
}
 
+
.view img {
.lr p {
+
  display: block;
  font-family: 'Roboto', sans-serif;
+
  position: relative;
  position: absolute;
+
  bottom: 20px;
+
  left: 20px;
+
  color: white;
+
  margin: 0;
+
 
}
 
}
 
+
.view a.info {
.mid h2 {
+
  background:url(../img/link.png) center no-repeat;
  font-family: 'Roboto', sans-serif;
+
  display: inline-block;
  font-weight: 900;
+
  text-decoration: none;
  color: white;
+
  padding:0;
  text-transform: uppercase;
+
  text-indent:-9999px;
  margin: 0;
+
  width:20px;
  position: absolute;
+
  height:20px;
  top: 50%;
+
  left: 50%;
+
  font-size: 2rem;
+
  transform: translate(-50%, -50%);
+
 
}
 
}
 
+
.collage-text .mask {
.cap p {
+
  opacity: 0;
  padding: 20px;
+
  overflow:visible;
  color: white;
+
  border:100px solid rgba(0,0,0,0.7);
  font: 12px Monaco, Mono-Space;
+
  -moz-box-sizing:border-box;
  margin: 0;
+
  -webkit-box-sizing:border-box;
 +
  box-sizing:border-box;
 +
  -webkit-transition: all 0.4s ease-in-out;
 +
  -moz-transition: all 0.4s ease-in-out;
 +
  -o-transition: all 0.4s ease-in-out;
 +
  -ms-transition: all 0.4s ease-in-out;
 +
  transition: all 0.4s ease-in-out;
 +
  }
 +
.collage-text .mask h2 {
 +
color: white;
 
}
 
}
 +
.collage-text a.info {
 +
  position:relative;
 +
  top:-10px;
 +
  opacity: 0;
 +
  -webkit-transition: opacity 0.5s 0s ease-in-out;
 +
  -moz-transition: opacity 0.5s 0s ease-in-out;
 +
  -o-transition: opacity 0.5s 0s ease-in-out;
 +
  -ms-transition: opacity 0.5s 0s ease-in-out;
 +
  transition: opacity 0.5s 0s ease-in-out;
 +
}
 +
.collage-text:hover .mask {
 +
  opacity: 1;
 +
  border:100px solid rgba(0,0,0,0.7);
 +
}
 +
.collage-text:hover a.info {
 +
opacity:1;
 +
-moz-transition-delay: 0.3s;
 +
-webkit-transition-delay: 0.3s;
 +
-o-transition-delay: 0.3s;
 +
-ms-transition-delay: 0.3s;
 +
transition-delay: 0.3s;
 +
}
 +
<!--Hoverbox-->
 +
.hvrbox * {
 +
box-sizing: border-box;
 +
}
 +
.hvrbox {
 +
position: relative;
 +
display: inline-block;
 +
overflow: hidden;
 +
max-width: 100%;
 +
height: auto;
 +
}
 +
.hvrbox img {
 +
max-width: 100%;
 +
}
 +
.hvrbox .hvrbox-layer_bottom {
 +
display: block;
 +
}
 +
.hvrbox .hvrbox-layer_top {
 +
opacity: 0;
 +
position: absolute;
 +
top: 0;
 +
left: 0;
 +
right: 0;
 +
bottom: 0;
 +
width: 100%;
 +
height: 100%;
 +
background: rgba(0, 0, 0, 0.6);
 +
color: #fff;
 +
padding: 15px;
 +
-moz-transition: all 0.4s ease-in-out 0s;
 +
-webkit-transition: all 0.4s ease-in-out 0s;
 +
-ms-transition: all 0.4s ease-in-out 0s;
 +
transition: all 0.4s ease-in-out 0s;
 +
}
 +
.hvrbox:hover .hvrbox-layer_top,
 +
.hvrbox.active .hvrbox-layer_top {
 +
opacity: 1;
 +
}
 +
.hvrbox .hvrbox-text {
 +
text-align: center;
 +
font-size: 18px;
 +
display: inline-block;
 +
position: absolute;
 +
top: 50%;
 +
left: 50%;
 +
-moz-transform: translate(-50%, -50%);
 +
-webkit-transform: translate(-50%, -50%);
 +
-ms-transform: translate(-50%, -50%);
 +
transform: translate(-50%, -50%);
 +
}
 +
.hvrbox .hvrbox-text_mobile {
 +
font-size: 15px;
 +
border-top: 1px solid rgb(179, 179, 179); /* for old browsers */
 +
border-top: 1px solid rgba(179, 179, 179, 0.7);
 +
margin-top: 5px;
 +
padding-top: 2px;
 +
display: none;
 +
}
 +
.hvrbox.active .hvrbox-text_mobile {
 +
display: block;
 +
}
 +
  
 
 
</style>
 
</style>
  

Latest revision as of 19:22, 17 October 2018