signal-desktop/stylesheets/components/Stories.scss
2022-03-09 11:33:43 -08:00

135 lines
2.7 KiB
SCSS

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.Stories {
background: $color-gray-95;
display: flex;
height: 100vh;
left: 0;
position: absolute;
top: 0;
user-select: none;
width: 100%;
z-index: $z-index-popup-overlay;
&__pane {
background: $color-gray-80;
border-right: 1px solid $color-gray-65;
display: flex;
flex-direction: column;
height: 100%;
width: 380px;
padding-top: 42px;
&__header {
align-items: center;
display: flex;
justify-content: space-between;
padding: 0 16px;
&--centered {
justify-content: flex-start;
}
&--title {
@include font-body-1-bold;
color: $color-gray-05;
display: flex;
flex: 1;
justify-content: center;
}
&--centered .Stories__pane__header--title {
text-align: center;
width: 100%;
}
&--camera {
@include button-reset;
@include color-svg(
'../images/icons/v2/camera-outline-24.svg',
$color-white
);
height: 22px;
width: 22px;
}
&--back {
@include button-reset;
height: 24px;
width: 24px;
@include light-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-60
);
}
@include keyboard-mode {
&:focus {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-ultramarine
);
}
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-25
);
}
@include dark-keyboard-mode {
&:hover {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-ultramarine-light
);
}
}
}
}
&__list {
@include scrollbar;
flex: 1;
overflow-y: overlay;
&--empty {
@include font-body-1;
align-items: center;
color: $color-gray-45;
display: flex;
flex-direction: column;
justify-content: center;
}
}
}
&__search__container {
margin: 14px 16px 8px 16px;
}
&__placeholder {
align-items: center;
color: $color-gray-05;
display: flex;
flex-direction: column;
flex: 1;
justify-content: center;
&__stories {
height: 56px;
margin-bottom: 22px;
width: 56px;
@include color-svg(
'../images/icons/v2/stories-outline-56.svg',
$color-gray-05
);
}
}
}