webapp/src/components/Inbox/DialogCard.module.scss

84 lines
1.2 KiB
SCSS
Raw Normal View History

2022-11-10 15:06:02 +00:00
.DialogCard {
display: inline-flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
font-size: 14px;
padding: 12px;
transition: background 0.3s ease-in-out;
2022-12-17 03:27:00 +00:00
width: 100%;
2022-11-10 15:06:02 +00:00
2022-12-17 03:27:00 +00:00
&.hovered:hover {
cursor: pointer;
2022-11-10 15:06:02 +00:00
background: #f7f7f7;
}
.avatar {
flex-basis: 40px;
margin-right: 12px;
}
2022-11-10 15:58:43 +00:00
.row {
2022-11-10 15:06:02 +00:00
flex-basis: 0;
flex-grow: 1;
min-width: 0;
2022-11-10 15:58:43 +00:00
.name,
.message {
2022-12-17 03:27:00 +00:00
width: 100%;
2022-11-10 15:58:43 +00:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2022-11-15 14:24:50 +00:00
2022-11-10 15:06:02 +00:00
.name {
color: #141414;
font-weight: 500;
}
2022-11-15 14:24:50 +00:00
2022-11-10 15:06:02 +00:00
.message {
color: #9fa1a7;
}
}
.activity {
font-size: 12px;
margin-left: 12px;
2022-11-15 14:24:50 +00:00
2022-11-10 15:06:02 +00:00
.time {
text-align: right;
color: #ccc;
}
.counter {
display: flex;
margin-left: auto;
align-items: center;
justify-content: center;
border-radius: 12px;
padding: 0 8px;
background: #d00820;
font-weight: 400;
color: #fff;
width: 22px;
height: 22px;
line-height: 6px;
2022-11-24 06:52:31 +00:00
span {
2022-11-10 15:06:02 +00:00
margin-bottom: -2px;
}
}
}
2022-12-17 03:27:00 +00:00
&.opened,
&.opened:hover {
background: #000;
2023-02-10 01:19:20 +00:00
2022-12-17 03:27:00 +00:00
.name,
.message,
.time {
color: #fff !important;
}
}
2022-11-10 15:06:02 +00:00
}