sd_image_selector/static/gallery_styles.css

100 lines
2.1 KiB
CSS
Raw Normal View History

2024-10-21 10:17:56 +00:00
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #ffeeee 25%, #dce2ff 75%);
2024-10-22 10:20:03 +00:00
background-attachment: fixed;
2024-10-21 10:17:56 +00:00
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
h1 {
color: #333;
margin: 20px 0;
font-size: 24px;
text-align: center;
}
2024-10-24 15:25:46 +00:00
.button-container {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 20px;
padding: 20px;
}
.button {
padding: 10px 50px;
background-color: #ebbbff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
font-size: 16px;
text-decoration: none;
text-align: center;
}
.button:hover {
background-color: #e099ff;
transform: scale(1.02);
}
2024-10-21 10:17:56 +00:00
.gallery-container {
2024-10-22 10:20:03 +00:00
display: flex;
flex-direction: column;
gap: 20px;
2024-10-21 10:17:56 +00:00
padding: 20px;
width: 100%;
max-width: 1200px;
box-sizing: border-box;
2024-10-22 10:20:03 +00:00
transition: all 0.5s ease-in-out;
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
.batch-container {
display: grid;
gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
hr {
border: none;
border-top: 2px solid #ddd;
margin: 20px 0;
2024-10-21 10:17:56 +00:00
}
.responsive-img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
2024-10-22 10:20:03 +00:00
transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
2024-10-21 10:17:56 +00:00
}
.responsive-img.loaded {
opacity: 1;
}
2024-10-22 10:20:03 +00:00
.responsive-img:not(.loaded) {
opacity: 0;
}
2024-10-21 10:17:56 +00:00
.responsive-img:hover {
transform: scale(1.05);
2024-10-22 10:20:03 +00:00
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
.added {
animation: fadeIn 0.5s ease-in-out;
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
.removed {
animation: fadeOut 0.5s ease-in-out;
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
2024-10-21 10:17:56 +00:00
}
2024-10-22 10:20:03 +00:00
/* Media queries for responsive padding */
@media (max-width: 1199px) {
2024-10-21 10:17:56 +00:00
.gallery-container {
2024-10-22 10:20:03 +00:00
padding-left: 40px;
padding-right: 40px;
2024-10-21 10:17:56 +00:00
}
}