signal-desktop/stylesheets/components/StoryListItem.scss
Jamie Kyle 0e490542a7
RTL
2023-04-20 10:03:43 -07:00

183 lines
3.4 KiB
SCSS

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.StoryListItem {
&__button {
@include button-reset;
align-items: center;
border-radius: 10px;
display: flex;
height: 96px;
min-height: 96px;
padding-block: 0;
padding-inline: 10px;
width: 100%;
@include keyboard-mode {
&:focus {
background: $color-gray-65;
}
}
// highlighted on hover and when it has triggered a context menu
// that has not been closed yet (active)
&:hover,
&--active {
background: $color-gray-65;
}
}
&--active-opacity,
&--active-opacity__button {
&:active {
opacity: 0.3;
}
}
&__click-container {
align-items: center;
display: flex;
height: 100%;
width: 100%;
&:focus {
outline: none;
}
@include keyboard-mode {
&:focus {
outline: 1px solid $color-ultramarine;
}
}
}
&__info {
display: flex;
flex-direction: column;
flex: 1;
justify-content: center;
margin-inline: 12px;
&--title {
@include font-body-1-bold;
color: $color-gray-05;
display: flex;
align-items: center;
}
&--timestamp,
&--sending,
&--send_failed {
@include font-body-2;
color: $color-gray-25;
}
&--send_failed {
display: flex;
align-items: center;
&::before {
content: '';
display: flex;
flex-shrink: 0;
height: 12px;
width: 12px;
margin-inline-end: 8px;
@include color-svg(
'../images/icons/v2/error-outline-12.svg',
$color-accent-red
);
}
}
&--replies {
&--others {
@include color-svg(
'../images/icons/v2/messages-solid-20.svg',
$color-gray-25
);
height: 20px;
width: 20px;
}
&--self {
@include color-svg(
'../images/icons/v2/reply-solid-24.svg',
$color-gray-25
);
height: 20px;
width: 20px;
}
}
}
&__previews {
height: 72px;
position: relative;
width: 46px;
&--image {
@include button-reset;
align-items: center;
background-color: $color-gray-60;
background-size: cover;
border-radius: 8px;
display: flex;
height: 72px;
justify-content: center;
inset-inline-start: 0;
overflow: hidden;
position: absolute;
top: 0;
width: 46px;
z-index: $z-index-base;
}
&--multiple &--image {
border: 1px solid $color-gray-80;
}
&--more {
background: #99a8a0;
border-radius: 6px;
height: 62px;
position: absolute;
transform: rotate(-12deg);
width: 40px;
}
}
&__icon {
&--chat {
@include color-svg('../images/icons/v2/open-24.svg', $color-white);
}
&--delete {
@include color-svg(
'../images/icons/v2/trash-outline-24.svg',
$color-white
);
}
&--hide {
@include color-svg('../images/icons/v2/x-24.svg', $color-white);
}
&--info {
@include color-svg(
'../images/icons/v2/info-outline-24.svg',
$color-white
);
}
}
&__chevron::after {
content: '';
display: inline-block;
height: 20px;
margin-inline-start: 6px;
vertical-align: middle;
width: 12px;
@include color-svg('../images/icons/v2/chevron-right-20.svg', $color-white);
}
}