Signal-Desktop/stylesheets/components/MyStories.scss

153 lines
2.9 KiB
SCSS

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.MyStories {
&__distribution {
&__title {
@include font-body-1-bold;
color: $color-gray-05;
margin: 24px 10px 8px 10px;
}
}
&__story-button {
flex: 1;
}
&__story {
align-items: center;
border-radius: 10px;
display: flex;
height: 96px;
padding-right: 10px;
&:hover {
background: $color-gray-65;
& .MyStories__story__download,
.MyStories__story__more__button {
background: $color-gray-60;
}
}
&__details {
@include font-body-1-bold;
color: $color-gray-05;
display: flex;
flex-direction: column;
flex: 1;
margin-left: 12px;
}
&__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(
'../images/icons/v2/save-outline-24.svg',
$color-gray-15
);
content: '';
height: 18px;
width: 18px;
}
&:hover {
background: $color-gray-75 !important;
}
}
&__more__button {
align-items: center;
background: $color-gray-65;
border-radius: 100%;
display: flex;
height: 28px;
justify-content: center;
margin-left: 16px;
width: 28px;
&::after {
@include color-svg(
'../images/icons/v2/more-horiz-24.svg',
$color-gray-15
);
content: '';
height: 18px;
width: 18px;
}
&:hover {
background: $color-gray-75 !important;
}
}
}
&__icon {
&--save {
@include color-svg(
'../images/icons/v2/save-outline-24.svg',
$color-white
);
}
&--forward {
@include color-svg(
'../images/icons/v2/reply-outline-24.svg',
$color-white
);
transform: scaleX(-1);
}
&--delete {
@include color-svg(
'../images/icons/v2/trash-outline-24.svg',
$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;
right: -4px;
width: 20px;
z-index: $z-index-base;
&::after {
content: '';
@include color-svg('../images/icons/v2/plus-20.svg', $color-white);
height: 10px;
width: 10px;
}
}
}
.StoryListItem__button:hover .MyStories__avatar__add-story {
border-color: $color-gray-65;
}