Deltacms/module/album/view/index/index.css

77 lines
1.2 KiB
CSS

.col3 {
padding: 5px;
}
.galleryPicture {
display: flex;
align-items: center;
justify-content: center;
position: relative;
height: 220px;
max-height: 50vmin;
text-align: center;
background-color: rgba(230, 230, 230, 0.7);
border: 1px solid #ddd;
border-radius: 6px;
transition: background-color 1.3s ease;
}
.galleryPicture:hover {
background-color: rgb(192, 192, 192);
}
.galleryName {
position: absolute;
left: 0;
right: 0;
bottom: 0;
line-height: 1.5;
color: #000;
font-size: 0.85em;
}
.galleryPicture img {
max-height: 80%;
max-width: 95%;
}
/* adaptation */
@media (max-width: 1281px) {
.galleryPicture {
height: 210px;
}
}
@media (max-width: 1025px) {
.galleryPicture {
height: 180px;
}
.galleryName {
font-size: 0.75em;
}
}
@media (max-width: 961px) {
.galleryPicture {
height: 165px;
}
}
@media (max-width: 799px) {
section > .row {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
section > .row > .col3 {
max-width: 50%;
}
}
@media (max-width: 799px) and (orientation: portrait) {
.galleryPicture {
max-height: 45vmin;
}
}
@media (min-width: 768px) and (max-width: 799px) and (orientation: portrait) {
section > .row {
display: flex;
flex-wrap: wrap;
justify-content: start;
}
.col3 {
flex: 0 0 25%;
}
}