signal-desktop/stylesheets/components/Stories.scss

222 lines
4.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
.Stories {
display: flex;
height: 100vh;
2023-04-20 17:03:43 +00:00
inset-inline-start: 0;
2022-03-04 21:14:52 +00:00
position: absolute;
2022-06-23 15:40:21 +00:00
top: 0;
2022-03-04 21:14:52 +00:00
user-select: none;
width: 100%;
2022-04-08 18:50:26 +00:00
z-index: $z-index-stories;
2023-08-09 00:53:06 +00:00
@include light-theme {
background: $color-white;
}
@include dark-theme {
background: $color-gray-95;
}
2022-03-04 21:14:52 +00:00
&__pane {
display: flex;
flex-direction: column;
height: 100%;
width: 380px;
2023-08-09 00:53:06 +00: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 21:14:52 +00: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 19:23:24 +00:00
&__add-story__button {
2023-05-04 18:04:22 +00:00
height: 20px;
width: 20px;
@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);
}
&:focus {
@include keyboard-mode {
background-color: $color-ultramarine;
}
}
}
2022-03-04 21:14:52 +00:00
&__header {
align-items: center;
display: flex;
justify-content: space-between;
2023-04-20 17:03:43 +00:00
padding-block: 0;
padding-inline: 16px;
2022-07-22 01:38:27 +00:00
position: relative;
2022-03-04 21:14:52 +00:00
&--centered {
justify-content: flex-start;
}
&--title {
2023-08-09 00:53:06 +00:00
@include font-title-medium;
2022-03-04 21:14:52 +00:00
flex: 1;
2023-08-09 00:53:06 +00:00
@include light-theme {
color: $color-black;
}
@include dark-theme {
color: $color-gray-05;
}
2022-03-04 21:14:52 +00:00
}
&--centered .Stories__pane__header--title {
text-align: center;
width: 100%;
}
}
&__list {
2023-08-09 00:53:06 +00:00
@include NavTabs__Scroller;
display: flex;
flex-direction: column;
2022-03-04 21:14:52 +00:00
flex: 1;
overflow-y: overlay;
2023-08-09 00:53:06 +00:00
padding-inline: 16px;
2022-03-04 21:14:52 +00:00
&--empty {
@include font-body-1;
align-items: center;
2023-08-09 00:53:06 +00:00
@include light-theme() {
color: $color-gray-60;
}
@include dark-theme() {
color: $color-gray-45;
}
2022-03-04 21:14:52 +00:00
display: flex;
flex: 1;
2022-03-04 21:14:52 +00:00
flex-direction: column;
justify-content: center;
}
}
}
&__placeholder {
align-items: center;
display: flex;
flex-direction: column;
flex: 1;
justify-content: center;
opacity: 0.7;
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
2022-03-04 21:14:52 +00:00
&__stories {
height: 56px;
margin-bottom: 22px;
width: 56px;
@include light-theme {
2023-08-15 00:47:38 +00:00
@include color-svg(
'../images/icons/v3/stories/stories-display.svg',
$color-gray-60
);
}
@include dark-theme {
2023-08-15 00:47:38 +00:00
@include color-svg(
'../images/icons/v3/stories/stories-display.svg',
$color-gray-25
);
}
2022-03-04 21:14:52 +00:00
}
}
2022-04-15 22:31:18 +00:00
&__hidden-stories {
@include button-reset;
@include font-body-1-bold;
align-items: center;
display: flex;
justify-content: space-between;
2023-04-20 17:03:43 +00:00
padding-block: 12px;
padding-inline: 24px;
2022-04-15 22:31:18 +00:00
position: relative;
width: 100%;
2023-08-09 00:53:06 +00:00
@include light-theme {
color: $color-black;
}
@include dark-theme {
color: $color-gray-05;
}
2022-04-15 22:31:18 +00:00
&::after {
content: '';
height: 16px;
width: 16px;
}
2023-08-09 00:53:06 +00: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 22:31:18 +00:00
&--expanded {
2023-08-09 00:53:06 +00: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 22:31:18 +00:00
}
}
}
2022-03-04 21:14:52 +00:00
}
2023-08-09 00:53:06 +00: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);
}
}