signal-desktop/stylesheets/components/MyStories.scss

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