Vorlage:LandingPage/ImageCard/styles.css: Unterschied zwischen den Versionen

Aus Stadtsprachen
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
.image-card-container {
.overlay-image-container {
   position: relative;
   position: relative;
   display: inline-block; /* Or block, depending on layout */
   display: inline-block; /* Or block, depending on your layout */
}
}


.image-card-image {
.overlay-image-text {
  display: block;
  width: 100%; /* Ensure the image fills the container */
  height: auto;
}
 
.image-card-text {
   position: absolute;
   position: absolute;
   top: 50%;
   top: 50%;
   left: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transform: translate(-50%, -50%);
   background-color: rgba(0, 0, 0, 0.6);
   color: white; /* Or any desired text color */
  color: white;
   padding: 10px; /* Adjust padding as needed */
   padding: 10px;
   text-align: center;
   text-align: center;
   width: 90%;
   width: 100%;
  box-sizing: border-box;
}
}


.zoom {
.overlay-image-image img {
    transition: transform 0.3s ease;
  display: block;
}
  width: 100%; /* Make the image fill the container */
 
  height: auto;
.zoom:hover {
    transform: scale(1.1);
}
}


/* Make the container clickable */
.opacity-4 {
.image-card-container {
     opacity: 0.4;
     cursor: pointer;
}
}

Version vom 27. Februar 2025, 11:39 Uhr

.overlay-image-container {
  position: relative;
  display: inline-block; /* Or block, depending on your layout */
}

.overlay-image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* Or any desired text color */
  padding: 10px; /* Adjust padding as needed */
  text-align: center;
  width: 100%;
}

.overlay-image-image img {
  display: block;
  width: 100%; /* Make the image fill the container */
  height: auto;
}

.opacity-4 {
    opacity: 0.4;
}