.lightbox-wrapper .lightbox {
position: relative;
display: inline-block;
overflow: hidden;
&:hover .meta {
opacity: 0.9;
transition: opacity 0.5s;
}
}
.d-lazyload-hidden {
box-sizing: border-box;
}
.onebox img.d-lazyload-hidden {
border: 1px solid $primary-low;
}
.cooked img.d-lazyload {
transition: opacity 0.4s 0.75s ease;
}
.lightbox-wrapper {
display: inline-block;
img {
object-fit: cover;
object-position: top;
}
&,
* {
outline: 0;
}
}
.meta {
position: absolute;
bottom: 0;
width: 100%;
color: $secondary;
background: $primary;
opacity: 0;
transition: opacity 0.2s;
span {
float: left;
}
.filename {
margin: 6px 6px 2px 6px;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
&:before {
// ideally, the SVG used here should be in HTML and reference the SVG sprite
content: svg-uri(
''
);
margin-right: 5px;
display: inline-block;
vertical-align: middle;
opacity: 0.8;
}
}
.informations {
margin: 6px;
padding-right: 20px;
color: $secondary-high;
font-size: $font-0;
}
.expand {
position: absolute;
bottom: 2px;
right: 7px;
&:before {
// ideally, the SVG used here should be in HTML and reference the SVG sprite
// the SVG used here is the "expand" icon from FontAwesome 4.7.0
content: svg-uri(
''
);
opacity: 0.8;
}
}
}