2022-03-04 16:14:52 -05:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
.Stories {
|
|
|
|
display: flex;
|
2024-01-16 22:32:38 +01:00
|
|
|
height: 100vh;
|
2023-04-20 10:03:43 -07:00
|
|
|
inset-inline-start: 0;
|
2022-03-04 16:14:52 -05:00
|
|
|
position: absolute;
|
2022-06-23 08:40:21 -07:00
|
|
|
top: 0;
|
2022-03-04 16:14:52 -05:00
|
|
|
user-select: none;
|
|
|
|
width: 100%;
|
2022-04-08 14:50:26 -04:00
|
|
|
z-index: $z-index-stories;
|
2023-08-08 17:53:06 -07:00
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
|
|
|
|
&__pane {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
width: 380px;
|
2023-08-08 17:53:06 -07:00
|
|
|
padding-top: calc(2px + var(--title-bar-drag-area-height));
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-04;
|
|
|
|
border-inline-end: 1px solid $color-black-alpha-16;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-80;
|
|
|
|
border-inline-end: 1px solid $color-white-alpha-16;
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
|
2023-09-14 09:53:14 -07:00
|
|
|
&__add-story__container {
|
|
|
|
padding: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-black-alpha-06;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-06;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-04 15:23:24 -04:00
|
|
|
&__add-story__button {
|
2023-05-04 11:04:22 -07:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2023-09-14 09:53:14 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-black);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-15);
|
|
|
|
}
|
2022-10-28 12:41:50 -04:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
2022-07-20 20:07:09 -04:00
|
|
|
}
|
|
|
|
|
2022-03-04 16:14:52 -05:00
|
|
|
&__header {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-04-20 10:03:43 -07:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 16px;
|
2022-07-21 21:38:27 -04:00
|
|
|
position: relative;
|
2022-03-04 16:14:52 -05:00
|
|
|
|
|
|
|
&--centered {
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--title {
|
2023-08-08 17:53:06 -07:00
|
|
|
@include font-title-medium;
|
2022-03-04 16:14:52 -05:00
|
|
|
flex: 1;
|
2023-08-08 17:53:06 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-black;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&--centered .Stories__pane__header--title {
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__list {
|
2023-08-08 17:53:06 -07:00
|
|
|
@include NavTabs__Scroller;
|
2022-07-29 15:26:40 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-03-04 16:14:52 -05:00
|
|
|
flex: 1;
|
|
|
|
overflow-y: overlay;
|
2023-08-08 17:53:06 -07:00
|
|
|
padding-inline: 16px;
|
2022-03-04 16:14:52 -05:00
|
|
|
|
|
|
|
&--empty {
|
|
|
|
@include font-body-1;
|
|
|
|
align-items: center;
|
2023-08-08 17:53:06 -07:00
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
display: flex;
|
2022-07-29 15:26:40 -04:00
|
|
|
flex: 1;
|
2022-03-04 16:14:52 -05:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__placeholder {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
|
|
|
justify-content: center;
|
2023-08-14 16:28:47 -07:00
|
|
|
opacity: 0.7;
|
2024-08-13 16:34:42 -07:00
|
|
|
padding-block: 78px 28px;
|
|
|
|
|
2023-08-14 16:28:47 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
|
2024-08-13 16:34:42 -07:00
|
|
|
&__icon {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
2023-08-14 16:28:47 -07:00
|
|
|
@include light-theme {
|
2023-08-14 17:47:38 -07:00
|
|
|
@include color-svg(
|
2024-08-13 16:34:42 -07:00
|
|
|
'../images/icons/v3/stories/stories-display-bold.svg',
|
2023-08-14 17:47:38 -07:00
|
|
|
$color-gray-60
|
|
|
|
);
|
2023-08-14 16:28:47 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-08-14 17:47:38 -07:00
|
|
|
@include color-svg(
|
2024-08-13 16:34:42 -07:00
|
|
|
'../images/icons/v3/stories/stories-display-bold.svg',
|
2023-08-14 17:47:38 -07:00
|
|
|
$color-gray-25
|
|
|
|
);
|
2023-08-14 16:28:47 -07:00
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
}
|
2024-08-13 16:34:42 -07:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text__action {
|
|
|
|
vertical-align: text-top;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
}
|
2022-04-15 18:31:18 -04:00
|
|
|
|
|
|
|
&__hidden-stories {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-04-20 10:03:43 -07:00
|
|
|
padding-block: 12px;
|
|
|
|
padding-inline: 24px;
|
2022-04-15 18:31:18 -04:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2023-08-08 17:53:06 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-black;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2022-04-15 18:31:18 -04:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
2023-08-08 17:53:06 -07:00
|
|
|
&--collapsed {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-15 18:31:18 -04:00
|
|
|
&--expanded {
|
2023-08-08 17:53:06 -07:00
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-down.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-down.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
|
|
|
}
|
2022-04-15 18:31:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 16:14:52 -05:00
|
|
|
}
|
2023-08-08 17:53:06 -07:00
|
|
|
|
|
|
|
.StoriesTab__MoreActionsIcon {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v3/more/more.svg', $color-black);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v3/more/more.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|