2018-12-13 15:17:08 +08:00
|
|
|
.lightbox-wrapper .lightbox {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2018-12-15 06:44:38 +08:00
|
|
|
overflow: hidden;
|
2013-09-06 03:37:07 +08:00
|
|
|
&:hover .meta {
|
2018-08-29 03:25:54 +08:00
|
|
|
opacity: 0.9;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: opacity 0.5s;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2018-12-11 04:44:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-lazyload-hidden {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2018-12-22 00:29:29 +08:00
|
|
|
.onebox img.d-lazyload-hidden {
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
}
|
|
|
|
|
2018-12-11 04:44:38 +08:00
|
|
|
.cooked img.d-lazyload {
|
|
|
|
transition: opacity 0.4s 0.75s ease;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2013-12-12 23:57:56 +08:00
|
|
|
.lightbox-wrapper {
|
|
|
|
display: inline-block;
|
2018-12-11 19:23:39 +08:00
|
|
|
img {
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: top;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&,
|
|
|
|
* {
|
|
|
|
outline: 0;
|
|
|
|
}
|
2013-12-12 23:57:56 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.meta {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
2018-08-29 03:25:54 +08:00
|
|
|
color: $secondary;
|
|
|
|
background: $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
opacity: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: opacity 0.2s;
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
span {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filename {
|
2018-08-29 03:25:54 +08:00
|
|
|
margin: 6px 6px 2px 6px;
|
2015-09-16 17:58:06 +08:00
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2013-09-06 03:37:07 +08:00
|
|
|
&:before {
|
2018-11-27 05:49:57 +08:00
|
|
|
// ideally, the SVG used here should be in HTML and reference the SVG sprite
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 512 512" fill="#{$secondary}"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"/></svg>'
|
|
|
|
);
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 5px;
|
2018-11-27 05:49:57 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
opacity: 0.8;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.informations {
|
|
|
|
margin: 6px;
|
|
|
|
padding-right: 20px;
|
2018-08-29 03:25:54 +08:00
|
|
|
color: $secondary-high;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.expand {
|
|
|
|
position: absolute;
|
2018-11-27 05:49:57 +08:00
|
|
|
bottom: 2px;
|
2013-09-06 03:37:07 +08:00
|
|
|
right: 7px;
|
|
|
|
&:before {
|
2018-11-27 05:49:57 +08:00
|
|
|
// ideally, the SVG used here should be in HTML and reference the SVG sprite
|
2018-12-04 11:29:20 +08:00
|
|
|
// the SVG used here is the "expand" icon from FontAwesome 4.7.0
|
2018-11-27 05:49:57 +08:00
|
|
|
content: svg-uri(
|
2018-12-04 11:29:20 +08:00
|
|
|
'<svg xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 1792 1792" fill="#{$secondary}"><path d="M883 1056q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23zm781-864v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45z"/></svg>'
|
2018-11-27 05:49:57 +08:00
|
|
|
);
|
|
|
|
opacity: 0.8;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|