User:Pax/sandbox.css: Difference between revisions

From From Dusk till Jawn
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
.portraitcontainer {
.portraitcontainer {
   position: relative;
   position: relative;
   width: 50%;
   width: 587px;
}
}



Revision as of 06:49, 16 January 2021

.portraitcontainer {
  position: relative;
  width: 587px;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.portraitoverlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #140E0A;
}

.portraitcontainer:hover .portraitoverlay {
  opacity: .8;
}

.portraittext {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}