User:Pax/secret.css: Difference between revisions

From From Dusk till Jawn
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


#topbox, #midbox, #bottombox {font-family: Josefin Sans;}
#topbox, #midbox, #bottombox {font-family: Josefin Sans;}
.container {
  position: relative;
  width: 50%;
  border-radius:2em 2em 2em 2em;
}
.image {
  display: block;
  width: 100%;
  height: auto;
  border-radius:2em 2em 2em 2em;
}
.overlay {
  position: absolute;
  border-radius:2em 2em 2em 2em;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  transition: .5s ease;
  background-color: #140E0A;
}
.container:hover .overlay {
  opacity: 0;
    border-radius:2em 2em 2em 2em;
}
.text {
  color: white;
  font-size: 20px;
  position: absolute;
  font-family: Josefin Sans;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

Revision as of 16:35, 16 January 2021

#topbox {color: white; background-color: #140E0A; padding: .5em; border-radius:2em 2em 0 0; font-size: 12pt; text-align: center; font-weight: bold;}
#midbox {color: white; background-color: #140E0A; font-size: 12pt; padding: 2em;}
#bottombox {color: #140E0A; background-color: #140E0A; padding: .5em; border-radius: 0 0 2em 2em; font-size: 12pt;}

#topbox, #midbox, #bottombox {font-family: Josefin Sans;}
.container {
  position: relative;
  width: 50%;
  border-radius:2em 2em 2em 2em;
}

.image {
  display: block;
  width: 100%;
  height: auto;
  border-radius:2em 2em 2em 2em;
}

.overlay {
  position: absolute;
  border-radius:2em 2em 2em 2em;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  transition: .5s ease;
  background-color: #140E0A;
}

.container:hover .overlay {
  opacity: 0;
    border-radius:2em 2em 2em 2em;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;
  font-family: Josefin Sans;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;

}