daedalOS/components/apps/Messenger/StyledContacts.ts
2024-12-07 13:22:47 -08:00

121 lines
2.3 KiB
TypeScript

import { m as motion } from "motion/react";
import styled from "styled-components";
import ScrollBars from "styles/common/ScrollBars";
const StyledContacts = styled(motion.ol)`
${ScrollBars()}
background-color: #242526;
height: 100%;
overflow-y: auto;
position: absolute;
scrollbar-gutter: auto;
top: 0;
width: 100%;
li {
border-radius: 10px;
color: #fff;
cursor: pointer;
margin: 8px;
padding: 8px;
position: relative;
button {
cursor: pointer;
}
&:hover {
background-color: #3a3b3c;
}
&:focus,
&.selected {
background-color: rgba(45, 136, 255, 20%);
}
figure {
cursor: pointer;
display: flex;
gap: 12px;
width: calc(100% - 15px);
div {
cursor: pointer;
}
img,
svg {
aspect-ratio: 1/1;
border-radius: 50%;
cursor: pointer;
height: 56px;
max-height: 56px;
max-width: 56px;
min-height: 56px;
min-width: 56px;
pointer-events: none;
width: 56px;
}
figcaption {
cursor: pointer;
display: flex;
flex-direction: column;
gap: 3px;
justify-content: center;
overflow: hidden;
place-items: flex-start;
> span {
color: #e4e6eb;
cursor: pointer;
font-size: 17px;
font-weight: 600;
}
> div {
color: #b0b3b8;
cursor: pointer;
display: flex;
font-size: 14px;
gap: 3px;
width: 100%;
div:first-child {
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.unread {
color: #fff;
font-weight: 600;
}
}
div:last-child {
color: #8b8d92;
cursor: pointer;
padding-right: 10px;
}
}
}
}
&.unread::after {
background-color: rgb(46, 137, 255);
border-radius: 50%;
content: "";
cursor: pointer;
height: 10px;
pointer-events: none;
position: absolute;
right: 8px;
top: calc(50% - 5px);
width: 10px;
}
}
`;
export default StyledContacts;