This commit is contained in:
Aron Petau 2025-12-10 15:08:55 +01:00
parent ad85559db0
commit 431b467fd4
8 changed files with 16 additions and 1 deletions

View file

@ -222,18 +222,23 @@ section a:hover {
min-width: 80px;
overflow: hidden;
border-radius: 8px;
background-color: #f0f0f0;
/* Use white background so transparent PNGs render consistently */
background-color: #ffffff;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1;
cursor: pointer;
}
.course-image img {
display: block;
/* avoid inline gaps */
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: transform 0.3s ease;
background-color: #ffffff;
/* ensure transparent PNGs look the same as JPGs */
}
.course-card:hover .course-image {
@ -375,6 +380,8 @@ section a:hover {
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
animation: zoomIn 0.3s ease;
background-color: #ffffff;
/* ensure modal shows PNGs on white */
}
@keyframes zoomIn {