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

Aus Stadtsprachen
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 6: Zeile 6:
   overflow: hidden;
   overflow: hidden;
   border-radius: 0.5rem; /* rounded-lg */
   border-radius: 0.5rem; /* rounded-lg */
  background-color: #f3f4f6; /* bg-gray-100 */
  padding: 1rem; /* p-4 */
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
   text-decoration: none; /* remove underline from link */
   text-decoration: none; /* remove underline from link */
Zeile 26: Zeile 24:
}
}


.image-card-gradient {
.image-card-overlay {
   background: linear-gradient(to top, rgba(55, 65, 81, 0.5), transparent, transparent); /* bg-gradient-to-t from-gray-800 via-transparent to-transparent opacity-50 */
  position: absolute;
  inset: 0;
   background-color: #343a40; /* bg-dark */
  opacity: 0.7; /* opacity-7 */
}
}


Zeile 34: Zeile 35:
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
  align-items: center; /* Center text horizontally */
  justify-content: center; /* Center text vertically */
  text-align: center; /* Ensure text is centered */
  padding: 1rem; /* Add some padding */
  width: 100%; /* Ensure text takes full width */
}
}


.image-card-text span:first-child {
.image-card-text span:first-child {
  color: #d1d5db; /* text-gray-300 */
}
.image-card-text span:last-child {
   font-size: 1.125rem; /* text-lg */
   font-size: 1.125rem; /* text-lg */
   font-weight: 600; /* font-semibold */
   font-weight: 600; /* font-semibold */
Zeile 46: Zeile 48:
}
}


@media (min-width: 1024px) {
.image-card-text span:last-child {
  .image-card-text span:last-child {
  font-size: 0.875rem; /* text-sm */
    font-size: 1.25rem; /* lg:text-xl */
   color: #d1d5db; /* text-gray-300 */
   }
}
}

Aktuelle Version vom 27. Februar 2025, 11:46 Uhr

.image-card {
  display: flex;
  flex-direction: column;
  height: 80vh; /* Approximate height */
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
  text-decoration: none; /* remove underline from link */
}

.image-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease-in-out;
}

.image-card:hover .image-card-image img {
  transform: scale(1.1);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background-color: #343a40; /* bg-dark */
  opacity: 0.7; /* opacity-7 */
}

.image-card-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center text horizontally */
  justify-content: center; /* Center text vertically */
  text-align: center; /* Ensure text is centered */
  padding: 1rem; /* Add some padding */
  width: 100%; /* Ensure text takes full width */
}

.image-card-text span:first-child {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  color: white; /* text-white */
}

.image-card-text span:last-child {
  font-size: 0.875rem; /* text-sm */
  color: #d1d5db; /* text-gray-300 */
}