ZwiiCMS/module/gallery/view/index/index.css
2020-04-17 19:07:06 +02:00

43 lines
704 B
CSS
Executable File

.galleryPicture {
display: block;
border: 1px solid #DDD;
height: 14em;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
position: relative;
-webkit-transition: opacity .3s ease-out;
transition: opacity .3s ease-out;
}
.galleryPicture:hover {
opacity: .7;
}
.galleryName {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 8px;
background: rgba(0, 0, 0, .6);
color: #FFF;
text-align: center;
}
.galleryRow {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.colPicture {
width : 16em;
max-width: 50%;
margin: 0.5em;
}
@media (max-width: 432px) {
.colPicture {
width: 90%;
max-width: 90%;
margin: 0.5em;
}
}