signal-desktop/stylesheets/components/MyStories.scss

278 lines
6.4 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
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2022-03-04 21:14:52 +00:00
.MyStories {
&__distribution {
&__title {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-1-bold;
2023-04-20 17:03:43 +00:00
margin-block: 24px 8px;
margin-inline: 10px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
color: variables.$color-gray-90;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
color: variables.$color-gray-05;
}
2022-03-04 21:14:52 +00:00
}
}
2022-08-25 00:33:16 +00:00
&__story-button {
flex: 1;
}
2022-03-04 21:14:52 +00:00
&__story {
align-items: center;
2022-08-25 00:33:16 +00:00
border-radius: 10px;
2022-03-04 21:14:52 +00:00
display: flex;
height: 96px;
2023-04-20 17:03:43 +00:00
padding-inline-end: 10px;
2022-08-25 00:33:16 +00:00
&:hover {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background: variables.$color-gray-15;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: variables.$color-gray-65;
}
2022-08-25 00:33:16 +00:00
& .MyStories__story__download,
.MyStories__story__more__button {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
background: variables.$color-gray-20;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
background: variables.$color-gray-60;
}
2022-08-25 00:33:16 +00:00
}
}
2022-03-04 21:14:52 +00:00
&__details {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-1-bold;
2022-03-04 21:14:52 +00:00
display: flex;
flex-direction: column;
flex: 1;
2023-04-20 17:03:43 +00:00
margin-inline-start: 12px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
color: variables.$color-gray-90;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
color: variables.$color-gray-05;
}
2022-11-16 22:10:11 +00:00
&__failed {
align-items: center;
display: flex;
&::before {
content: '';
display: block;
height: 12px;
2023-04-20 17:03:43 +00:00
margin-inline-end: 12px;
2022-11-16 22:10:11 +00:00
width: 12px;
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/error/error-circle.svg',
2024-11-15 23:09:31 +00:00
variables.$color-accent-red
2022-11-16 22:10:11 +00:00
);
}
&__button {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
@include mixins.font-subtitle;
}
@include mixins.light-theme {
color: variables.$color-gray-90;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
}
2022-11-16 22:10:11 +00:00
}
}
2022-03-04 21:14:52 +00:00
}
&__timestamp {
font-weight: normal;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
color: variables.$color-gray-90;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
}
2022-03-04 21:14:52 +00:00
}
&__download {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
align-items: center;
border-radius: 100%;
display: flex;
height: 28px;
justify-content: center;
width: 28px;
}
@include mixins.light-theme {
background: variables.$color-gray-20;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: variables.$color-gray-65;
}
2022-03-04 21:14:52 +00:00
&::after {
content: '';
height: 18px;
width: 18px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg(
'../images/icons/v3/save/save-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-black
);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
'../images/icons/v3/save/save-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-15
);
}
2022-03-04 21:14:52 +00:00
}
2022-08-25 00:33:16 +00:00
&:hover {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
background: variables.$color-white !important;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
background: variables.$color-gray-75 !important;
}
2022-08-25 00:33:16 +00:00
}
2022-03-04 21:14:52 +00:00
}
2022-07-25 18:55:44 +00:00
&__more__button {
2022-03-04 21:14:52 +00:00
align-items: center;
border-radius: 100%;
display: flex;
height: 28px;
justify-content: center;
2023-04-20 17:03:43 +00:00
margin-inline-start: 16px;
2022-03-04 21:14:52 +00:00
width: 28px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background: variables.$color-gray-15;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: variables.$color-gray-65;
}
2022-03-04 21:14:52 +00:00
&::after {
content: '';
height: 18px;
width: 18px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg(
'../images/icons/v3/more/more-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-black
);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
'../images/icons/v3/more/more-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-15
);
}
2022-03-04 21:14:52 +00:00
}
2022-08-25 00:33:16 +00:00
&:hover {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
background: variables.$color-white !important;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
background: variables.$color-gray-75 !important;
}
2022-08-25 00:33:16 +00:00
}
2022-03-04 21:14:52 +00:00
}
}
&__icon {
&--forward {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
@include mixins.color-svg(
'../images/icons/v3/forward/forward-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-black
);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
@include mixins.color-svg(
'../images/icons/v3/forward/forward-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-white
);
}
2022-03-04 21:14:52 +00:00
}
&--delete {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
@include mixins.color-svg(
'../images/icons/v3/trash/trash-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-black
);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
@include mixins.color-svg(
'../images/icons/v3/trash/trash-compact.svg',
2024-11-15 23:09:31 +00:00
variables.$color-white
);
}
2022-03-04 21:14:52 +00:00
}
}
&__avatar-container {
position: relative;
}
&__avatar__add-story {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
@include mixins.rounded-corners;
align-items: center;
background: variables.$color-ultramarine-dawn;
border: 2px solid;
bottom: -2px;
display: flex;
height: 20px;
justify-content: center;
position: absolute;
inset-inline-end: -4px;
width: 20px;
z-index: variables.$z-index-base;
}
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
border-color: variables.$color-gray-04;
2023-08-09 00:53:06 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
border-color: variables.$color-gray-80;
2023-08-09 00:53:06 +00:00
}
&::after {
content: '';
2023-05-05 16:23:43 +00:00
height: 12px;
width: 12px;
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/plus/plus-compact-bold.svg',
2024-11-15 23:09:31 +00:00
variables.$color-white
);
}
}
2022-03-04 21:14:52 +00:00
}
2022-08-19 18:36:47 +00:00
2023-08-09 00:53:06 +00:00
.StoryListItem__button:hover,
.StoryListItem__button--active {
.MyStories__avatar__add-story {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
border-color: variables.$color-gray-15;
2023-08-09 00:53:06 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
border-color: variables.$color-gray-65;
2023-08-09 00:53:06 +00:00
}
}
2022-08-19 18:36:47 +00:00
}