2022-03-04 21:14:52 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.StoryViewer {
|
|
|
|
&__overlay {
|
2022-04-22 18:36:34 +00:00
|
|
|
background-size: contain;
|
2022-08-02 17:05:51 +00:00
|
|
|
height: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2022-03-04 21:14:52 +00:00
|
|
|
position: absolute;
|
2022-08-02 17:05:51 +00:00
|
|
|
top: 0;
|
2022-03-04 21:14:52 +00:00
|
|
|
width: 100%;
|
|
|
|
z-index: $z-index-popup-overlay;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
align-items: center;
|
2022-04-22 18:36:34 +00:00
|
|
|
backdrop-filter: blur(90px);
|
|
|
|
background: $color-black-alpha-20;
|
2022-03-04 21:14:52 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-08-02 17:05:51 +00:00
|
|
|
height: 100%;
|
2022-03-04 21:14:52 +00:00
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2022-03-04 21:14:52 +00:00
|
|
|
position: absolute;
|
2022-08-02 17:05:51 +00:00
|
|
|
top: 0;
|
2022-03-04 21:14:52 +00:00
|
|
|
width: 100%;
|
|
|
|
z-index: $z-index-popup-overlay;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
@include modal-close-button;
|
2022-07-29 00:25:21 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-15);
|
2022-07-29 00:25:21 +00:00
|
|
|
}
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2022-08-09 23:46:56 +00:00
|
|
|
top: var(--title-bar-drag-area-height);
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 28px;
|
2022-05-05 17:09:15 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
2024-04-15 20:14:26 +00:00
|
|
|
outline: none;
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__story {
|
|
|
|
max-height: 100%;
|
|
|
|
outline: none;
|
|
|
|
width: auto;
|
2022-08-03 15:53:23 +00:00
|
|
|
|
|
|
|
&__image {
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__meta {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center-x;
|
2022-03-04 21:14:52 +00:00
|
|
|
bottom: 0;
|
2022-09-22 18:56:49 +00:00
|
|
|
min-width: 284px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 16px;
|
2022-09-23 13:39:00 +00:00
|
|
|
width: clamp(0vh, 56.25vh, 100vw);
|
2022-07-22 01:38:27 +00:00
|
|
|
z-index: $z-index-story-meta;
|
2022-03-04 21:14:52 +00:00
|
|
|
|
2022-09-22 18:56:49 +00:00
|
|
|
&__list {
|
|
|
|
@include font-body-2;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/stories/stories-fill-compact.svg',
|
2022-09-22 18:56:49 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 14px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 6px;
|
2022-09-22 18:56:49 +00:00
|
|
|
width: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 21:14:52 +00:00
|
|
|
&--group-avatar {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: -8px;
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
2022-10-25 23:57:16 +00:00
|
|
|
&--title-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 8px;
|
2022-10-25 23:57:16 +00:00
|
|
|
}
|
|
|
|
|
2022-03-04 21:14:52 +00:00
|
|
|
&--title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
color: $color-white;
|
|
|
|
display: inline;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--timestamp {
|
|
|
|
@include font-body-2;
|
|
|
|
color: $color-white-alpha-60;
|
|
|
|
}
|
2022-05-06 19:02:44 +00:00
|
|
|
|
|
|
|
&__playback-bar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2022-09-22 18:56:49 +00:00
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
2022-05-06 19:02:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__playback-controls {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 17:02:12 +00:00
|
|
|
&__caption {
|
2022-05-03 23:50:44 +00:00
|
|
|
@include font-body-1;
|
2022-07-29 00:25:50 +00:00
|
|
|
color: $color-white;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 4px;
|
|
|
|
padding-inline: 0;
|
2022-04-22 18:36:34 +00:00
|
|
|
margin-bottom: 24px;
|
2024-08-05 20:32:40 +00:00
|
|
|
text-shadow: 0px 0px 48px 0px $color-black-alpha-80;
|
2022-04-14 17:02:12 +00:00
|
|
|
|
|
|
|
&__overlay {
|
2022-04-22 18:36:34 +00:00
|
|
|
@include button-reset;
|
2022-04-14 17:02:12 +00:00
|
|
|
background: $color-black-alpha-60;
|
|
|
|
height: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2022-04-14 17:02:12 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
z-index: $z-index-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 21:14:52 +00:00
|
|
|
&__actions {
|
2022-04-15 00:08:46 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2022-04-22 18:36:34 +00:00
|
|
|
min-height: 60px;
|
2022-11-16 22:10:11 +00:00
|
|
|
|
|
|
|
&__failed {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1;
|
|
|
|
align-items: center;
|
|
|
|
color: $color-white;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 18px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2022-11-16 22:10:11 +00:00
|
|
|
width: 18px;
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2022-11-16 22:10:11 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__reply {
|
|
|
|
@include button-reset;
|
2022-04-15 00:08:46 +00:00
|
|
|
color: $color-gray-05;
|
2022-04-07 21:11:33 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
2022-05-06 16:17:33 +00:00
|
|
|
|
|
|
|
&__arrow {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2022-05-06 16:17:33 +00:00
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/reply/reply.svg', $color-white);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__chevron {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
margin-inline-start: 4px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 16px;
|
2022-05-06 16:17:33 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2022-05-06 16:17:33 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
2022-07-25 18:55:44 +00:00
|
|
|
&__more__button {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-05-06 19:02:44 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
2022-07-25 18:55:44 +00:00
|
|
|
&::after {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/more/more.svg', $color-white);
|
2022-07-25 18:55:44 +00:00
|
|
|
content: '';
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2022-05-06 19:02:44 +00:00
|
|
|
|
2022-07-25 18:55:44 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-black;
|
|
|
|
}
|
2022-05-06 19:02:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__mute {
|
|
|
|
@include button-reset;
|
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: 24px;
|
2022-05-06 19:02:44 +00:00
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/speaker/speaker.svg', $color-white);
|
2022-05-06 19:02:44 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__pause {
|
|
|
|
@include button-reset;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/pause/pause.svg', $color-white);
|
2022-05-06 19:02:44 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__play {
|
|
|
|
@include button-reset;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/play/play-fill.svg', $color-white);
|
2022-05-06 19:02:44 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__unmute {
|
|
|
|
@include button-reset;
|
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: 24px;
|
2022-07-29 19:27:02 +00:00
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/speaker/speaker-slash.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2022-07-29 19:27:02 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__soundless {
|
|
|
|
@include button-reset;
|
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: 24px;
|
2022-05-06 19:02:44 +00:00
|
|
|
width: 20px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/speaker/speaker-x.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2022-05-06 19:02:44 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 21:14:52 +00:00
|
|
|
&__progress {
|
|
|
|
display: flex;
|
|
|
|
}
|
2022-05-03 23:50:44 +00:00
|
|
|
|
2022-05-04 17:43:22 +00:00
|
|
|
&__animated-emojis {
|
2022-08-02 17:05:51 +00:00
|
|
|
height: 100%;
|
2022-05-04 17:43:22 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
z-index: $z-index-above-base;
|
|
|
|
}
|
|
|
|
|
2022-05-03 23:50:44 +00:00
|
|
|
&__arrow {
|
2022-05-04 18:45:32 +00:00
|
|
|
@include button-reset;
|
2022-05-03 23:50:44 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2022-08-02 17:05:51 +00:00
|
|
|
height: 100%;
|
2022-05-03 23:50:44 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 25%;
|
2022-05-04 18:45:32 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2022-05-03 23:50:44 +00:00
|
|
|
|
2022-05-04 18:45:32 +00:00
|
|
|
&::before {
|
|
|
|
content: '';
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 28px;
|
2022-05-03 23:50:44 +00:00
|
|
|
opacity: 0;
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 28px;
|
2022-05-03 23:50:44 +00:00
|
|
|
transition: opacity 200ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--left {
|
|
|
|
justify-content: flex-start;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2022-05-03 23:50:44 +00:00
|
|
|
|
2022-05-04 18:45:32 +00:00
|
|
|
&::before {
|
2023-05-04 18:04:22 +00:00
|
|
|
margin-inline-start: 16px;
|
2022-05-03 23:50:44 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2022-05-03 23:50:44 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--right {
|
|
|
|
justify-content: flex-end;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 0;
|
2022-05-03 23:50:44 +00:00
|
|
|
|
2022-05-04 18:45:32 +00:00
|
|
|
&::before {
|
2023-05-04 18:04:22 +00:00
|
|
|
margin-inline-end: 16px;
|
2022-05-03 23:50:44 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2022-05-03 23:50:44 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-04 18:45:32 +00:00
|
|
|
&--visible::before {
|
2022-05-03 23:50:44 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__protection {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2022-05-04 18:45:32 +00:00
|
|
|
z-index: $z-index-base;
|
2022-05-03 23:50:44 +00:00
|
|
|
|
|
|
|
&--top {
|
|
|
|
background: linear-gradient($color-black-alpha-16, $color-transparent);
|
|
|
|
top: 0;
|
|
|
|
height: 80px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--bottom {
|
2022-07-29 00:25:50 +00:00
|
|
|
background: linear-gradient($color-transparent, $color-black-alpha-60);
|
2022-05-03 23:50:44 +00:00
|
|
|
bottom: 0;
|
2024-08-05 20:32:40 +00:00
|
|
|
height: 140px;
|
|
|
|
}
|
|
|
|
&--bottom.StoryViewer__protection--has-caption {
|
|
|
|
background: linear-gradient($color-transparent, $color-black-alpha-80);
|
|
|
|
height: 280px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--whole {
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: linear-gradient($color-transparent, $color-black-alpha-40);
|
2022-05-03 23:50:44 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-16 22:10:11 +00:00
|
|
|
|
|
|
|
&__sending {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&__spinner__container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 0 12px;
|
2022-11-16 22:10:11 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-04 21:14:52 +00:00
|
|
|
}
|