ZwiiCMS/module/gallery/view/index/index.css

79 lines
1.8 KiB
CSS
Raw Normal View History

2020-04-18 16:33:48 +02:00
.galleryRow {
2020-04-22 18:28:49 +02:00
--thumbAlign: center;
2020-04-18 16:33:48 +02:00
}
.colPicture {
--thumbWidth: 18em;
--thumbMargin: .5em;
2020-04-18 16:33:48 +02:00
}
.galleryPicture,
.galleryGalleryPicture {
--thumbHeight: 15em;
--thumbBorder: .1em;
--thumbBorderColor: rgba(221, 221, 221, 1);
--thumbRadius: .3em;
--thumbShadows: 1px 1px 10px;
--thumbShadowsColor: rgba(125, 125, 125, 1);
2020-04-18 16:33:48 +02:00
}
.galleryName,
.galleryGalleryName {
--legendHeight: .375em;
2020-04-18 16:33:48 +02:00
--legendAlign: center;
--legendTextColor: rgba(255, 255, 255, 1);
--legendBgColor: rgba(0, 0, 0, .6);
2020-04-18 16:33:48 +02:00
}
.galleryPicture:hover,
.galleryGalleryPicture:hover {
--thumbOpacity: .7;
2020-04-18 16:33:48 +02:00
}
.galleryPicture,
.galleryGalleryPicture {
2018-04-02 08:29:19 +02:00
display: block;
2020-04-18 16:33:48 +02:00
border: var(--thumbBorder) solid var(--thumbBorderColor);
height: var(--thumbHeight);
2018-04-02 08:29:19 +02:00
background-size: cover;
background-repeat: no-repeat;
background-position: center;
position: relative;
-webkit-transition: opacity .3s ease-out;
transition: opacity .3s ease-out;
2020-04-18 19:18:34 +02:00
border-radius: var(--thumbRadius);
box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
-webkit-box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
-moz-box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
2018-04-02 08:29:19 +02:00
}
2020-04-18 16:33:48 +02:00
.galleryPicture:hover,
.galleryGalleryPicture:hover {
opacity: var(--thumbOpacity);
2018-04-02 08:29:19 +02:00
}
2020-04-18 16:33:48 +02:00
.galleryName,
.galleryGalleryName {
2018-04-02 08:29:19 +02:00
position: absolute;
left: 0;
right: 0;
bottom: 0;
2020-04-19 14:58:38 +02:00
border-radius: 0 0 calc(var(--thumbRadius)/2) calc(var(--thumbRadius)/2);
2020-04-18 16:33:48 +02:00
padding: var(--legendHeight);
background: var(--legendBgColor);
color: var(--legendTextColor);
text-align: var(--legendAlign);
}
2020-04-18 16:33:48 +02:00
.galleryRow {
display: flex;
flex-wrap: wrap;
2020-04-18 16:33:48 +02:00
justify-content: var(--thumbAlign);
}
.colPicture {
2020-04-18 16:33:48 +02:00
width : var(--thumbWidth);
max-width: 50%;
2020-04-18 19:18:34 +02:00
padding: var(--thumbMargin);
}
@media (max-width: 432px) {
.colPicture {
width: 90%;
max-width: 90%;
margin: 0.5em;
}
}