Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
tf7software authored Sep 26, 2024
1 parent 412a1bd commit e5d90cc
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,70 @@ button:hover {
padding: 10px;
font-size: 15px;
}

/* New styles for image gallery */
.image-gallery {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin: 20px 0;
}

.image-gallery img {
width: 200px;
height: 150px;
margin: 10px;
border-radius: 8px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}

.image-gallery img:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-gallery img:active {
transform: scale(1.1);
}

/* Enlarged image modal */
#imageModal {
display: none;
position: fixed;
z-index: 1001;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
}

#imageModal img {
display: block;
margin: auto;
max-width: 90%;
max-height: 80%;
border-radius: 8px;
}

#imageModal .close {
position: absolute;
top: 15px;
right: 25px;
color: white;
font-size: 35px;
font-weight: bold;
cursor: pointer;
}

#imageModal .close:hover {
color: #ccc;
}

/* Image download on double-click */
.image-gallery img:active {
cursor: pointer;
}

0 comments on commit e5d90cc

Please sign in to comment.