2021-08-23 23:14:53 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.Lightbox {
|
|
|
|
&__container {
|
2021-08-24 21:47:14 +00:00
|
|
|
background-color: $color-black-alpha-90;
|
2021-08-23 23:14:53 +00:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-popup;
|
2021-10-12 20:25:09 +00:00
|
|
|
}
|
2021-10-05 17:28:32 +00:00
|
|
|
|
2021-10-12 20:25:09 +00:00
|
|
|
&__animated {
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-08-23 23:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__main-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
// To ensure that a large image doesnt overflow the flex layout
|
|
|
|
min-height: 50px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-10-06 16:16:51 +00:00
|
|
|
&__buttons {
|
2021-08-23 23:14:53 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
min-height: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__thumbnails {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
left: 50%;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
&--container {
|
|
|
|
height: 64px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
margin-top: 10px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__thumbnail {
|
|
|
|
@include button-reset;
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 64px;
|
|
|
|
margin-right: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 64px;
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 100%;
|
|
|
|
object-fit: contain;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--unavailable {
|
|
|
|
@include color-svg('../images/image.svg', $color-gray-25);
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__object {
|
|
|
|
&--container {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
2021-12-01 23:13:09 +00:00
|
|
|
// Using this so that the zoom cleanly goes over the footer
|
|
|
|
z-index: $z-index-base;
|
2021-10-12 20:25:09 +00:00
|
|
|
|
|
|
|
&--zoom {
|
|
|
|
backface-visibility: hidden;
|
|
|
|
}
|
2021-08-23 23:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
height: auto;
|
|
|
|
max-height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
object-fit: contain;
|
|
|
|
outline: none;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__unsupported {
|
|
|
|
@include button-reset;
|
|
|
|
flex-grow: 1;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 200px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&--image {
|
|
|
|
@include color-svg('../images/image.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--video {
|
|
|
|
@include color-svg('../images/movie.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--file {
|
|
|
|
@include color-svg('../images/file.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--missing {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/full-screen-flow/alert-outline.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-01 23:49:36 +00:00
|
|
|
&__zoomable-container {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2022-02-02 18:19:15 +00:00
|
|
|
margin: 0 40px;
|
2022-02-01 23:49:36 +00:00
|
|
|
}
|
|
|
|
|
2021-08-23 23:14:53 +00:00
|
|
|
&__zoom-button {
|
|
|
|
@include button-reset;
|
|
|
|
cursor: zoom-in;
|
|
|
|
}
|
|
|
|
|
2021-09-28 20:27:35 +00:00
|
|
|
&__object--container--zoom,
|
|
|
|
&__object--container--fill {
|
2021-08-23 23:14:53 +00:00
|
|
|
.Lightbox__zoom-button {
|
|
|
|
cursor: zoom-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__caption {
|
|
|
|
@include font-body-2;
|
|
|
|
color: $color-white;
|
|
|
|
margin: 12px 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__countdown {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__timestamp {
|
|
|
|
@include font-body-1;
|
|
|
|
background-color: $color-black;
|
|
|
|
border-radius: 15px;
|
|
|
|
color: #eeefef;
|
|
|
|
padding: 6px 18px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2021-12-01 23:13:09 +00:00
|
|
|
&__nav-next,
|
|
|
|
&__nav-prev {
|
2021-08-23 23:14:53 +00:00
|
|
|
bottom: 50%;
|
|
|
|
position: absolute;
|
2021-12-01 23:13:09 +00:00
|
|
|
// We need this so that the buttons stack above the container
|
|
|
|
z-index: $z-index-above-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__nav-next {
|
2021-08-23 23:14:53 +00:00
|
|
|
right: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__nav-prev {
|
|
|
|
left: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 56px;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 24px;
|
2021-10-12 20:25:09 +00:00
|
|
|
opacity: 1;
|
|
|
|
padding: 0 16px;
|
|
|
|
transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1);
|
2021-08-23 23:14:53 +00:00
|
|
|
|
|
|
|
&--container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--avatar {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--name {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--timestamp {
|
|
|
|
@include font-caption;
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-12 20:25:09 +00:00
|
|
|
&__footer {
|
|
|
|
opacity: 1;
|
|
|
|
padding: 0 16px;
|
|
|
|
transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__container--zoom {
|
|
|
|
.Lightbox__header,
|
|
|
|
.Lightbox__footer {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-23 23:14:53 +00:00
|
|
|
&__button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 24px;
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 4px solid $color-ultramarine;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
&::before {
|
|
|
|
background: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--forward {
|
|
|
|
&::before {
|
2021-08-25 21:08:32 +00:00
|
|
|
transform: scaleX(-1);
|
2021-08-23 23:14:53 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--save {
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--close {
|
|
|
|
&::before {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--previous {
|
|
|
|
margin-left: 0;
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--next {
|
|
|
|
margin-left: 0;
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-right-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|