signal-desktop/stylesheets/components/StoryViewer.scss

150 lines
2.7 KiB
SCSS
Raw Normal View History

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-03-04 21:14:52 +00:00
height: 100vh;
left: 0;
position: absolute;
top: 0;
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;
height: 100vh;
justify-content: center;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: $z-index-popup-overlay;
}
&__close-button {
@include button-reset;
@include modal-close-button;
2022-04-22 18:36:34 +00:00
right: 28px;
2022-04-07 23:27:20 +00:00
top: var(--title-bar-drag-area-height);
2022-04-22 18:36:34 +00:00
z-index: $z-index-above-base;
2022-03-04 21:14:52 +00:00
}
&__more {
@include button-reset;
height: 24px;
position: absolute;
2022-04-22 18:36:34 +00:00
right: 80px;
2022-04-07 23:27:20 +00:00
top: var(--title-bar-drag-area-height);
2022-03-04 21:14:52 +00:00
width: 24px;
2022-04-22 18:36:34 +00:00
z-index: $z-index-above-base;
2022-03-04 21:14:52 +00:00
@include color-svg('../images/icons/v2/more-horiz-24.svg', $color-white);
@include keyboard-mode {
&:focus {
background-color: $color-ultramarine;
}
}
2022-03-04 21:14:52 +00:00
}
&__container {
flex-grow: 1;
overflow: hidden;
position: relative;
z-index: $z-index-base;
}
&__story {
max-height: 100%;
outline: none;
width: auto;
}
&__meta {
bottom: 0;
left: 50%;
2022-04-22 18:36:34 +00:00
padding: 0 16px;
2022-03-04 21:14:52 +00:00
position: absolute;
transform: translateX(-50%);
width: 284px;
2022-03-29 01:10:08 +00:00
z-index: $z-index-above-base;
2022-03-04 21:14:52 +00:00
&--group-avatar {
margin-left: -8px;
}
&--title {
@include font-body-1-bold;
color: $color-white;
display: inline;
margin: 0 8px;
}
&--timestamp {
@include font-body-2;
color: $color-white-alpha-60;
}
}
2022-04-14 17:02:12 +00:00
&__caption {
@include font-body-1-bold;
color: $color-gray-05;
padding: 4px 0;
2022-04-22 18:36:34 +00:00
margin-bottom: 24px;
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%;
left: 0;
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-03-04 21:14:52 +00:00
}
&__reply {
@include button-reset;
2022-04-15 00:08:46 +00:00
color: $color-gray-05;
@include keyboard-mode {
&:focus {
color: $color-ultramarine;
}
}
2022-03-04 21:14:52 +00:00
}
&__progress {
display: flex;
&--container {
background: $color-white-alpha-40;
border-radius: 2px;
height: 2px;
margin: 12px 1px 0 1px;
overflow: hidden;
width: 100%;
}
&--bar {
background: $color-white;
background-size: 200% 100%;
border-radius: 2px;
display: block;
height: 100%;
}
}
}