discourse/app/assets/stylesheets/common/base/lightbox.scss

Failed to ignore revisions in .git-blame-ignore-revs.

90 lines
1.5 KiB
SCSS
Raw Normal View History

$meta-element-margin: 6px;
.lightbox-wrapper .lightbox {
2013-09-06 03:37:07 +08:00
position: relative;
display: inline-block;
overflow: hidden;
2013-09-06 03:37:07 +08:00
&:hover .meta {
2018-08-29 03:25:54 +08:00
opacity: 0.9;
transition: opacity 0.5s;
2013-09-06 03:37:07 +08:00
}
}
.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;
2013-09-06 03:37:07 +08:00
}
.lightbox-wrapper {
display: inline-block;
2018-12-11 19:23:39 +08:00
img {
object-fit: cover;
object-position: top;
}
&,
* {
outline: 0;
}
}
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;
transition: opacity 0.2s;
display: flex;
align-items: center;
2013-09-06 03:37:07 +08:00
.filename {
margin: $meta-element-margin;
@include ellipsis;
2013-09-06 03:37:07 +08:00
}
.d-icon {
margin: $meta-element-margin;
opacity: 0.8;
color: $secondary;
+ .filename {
margin-left: 0px;
}
}
2013-09-06 03:37:07 +08:00
.informations {
margin: $meta-element-margin;
2013-09-06 03:37:07 +08:00
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;
flex-shrink: 0;
flex-grow: 3;
2013-09-06 03:37:07 +08:00
}
}
.mfp-preloader .spinner {
margin: auto;
}
.discourse-no-touch {
@if is-light-color-scheme() {
a.lightbox {
-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
a.lightbox:hover {
border-radius: 5px;
box-shadow: 0 2px 5px 0 rgba($primary, 0.2),
0 2px 10px 0 rgba($primary, 0.2);
}
}
}