Files
TaskHybrid/salesbook.Shared/Components/SingleElements/Card/NotificationCard.razor.css
2025-09-22 12:26:10 +02:00

109 lines
2.0 KiB
CSS

.row {
position: relative;
overflow: hidden;
border-radius: var(--mud-default-borderradius);
width: 100%;
}
.behind-left, .behind-right {
position: absolute;
inset: 0;
display: flex;
align-items: center;
z-index: 0;
}
.behind-right {
justify-content: flex-end;
padding-right: 14px;
background: var(--mud-palette-error);
}
.behind-left {
justify-content: flex-start;
padding-left: 14px;
background: var(--mud-palette-info);
}
.read-btn, .trash-btn {
color: white;
padding: 10px 15px;
cursor: pointer;
}
.notification-card {
position: relative;
z-index: 1;
display: flex;
align-items: center;
padding: 12px;
gap: 12px;
background: var(--light-card-background);
transition: transform .2s ease;
touch-action: pan-y;
will-change: transform;
transform: translateX(0);
}
.avatar {
min-width: 42px;
height: 42px;
border-radius: 12px;
display: grid;
place-items: center;
background: var(--mud-palette-background);
border: 1px solid var(--mud-palette-divider);
font-weight: bold;
color: var(--mud-palette-primary);
}
.notification-body {
width: 100%
}
.title-row {
display: flex;
gap: 8px;
justify-items: center;
align-items: flex-start;
justify-content: space-between;
}
.unread-dot {
width: 10px;
height: 10px;
background-color: var(--mud-palette-error);
border-radius: 50%;
}
.title {
font-weight: 700;
margin-bottom: unset !important;
line-height: normal;
}
.section-time {
display: flex;
gap: .65rem;
min-width: max-content;
justify-content: flex-end;
align-items: center;
}
.notification-time {
font-size: 13px;
color: #94a3b8;
line-height: normal;
}
.collapsing {
transition: height .22s ease, margin .22s ease, opacity .22s ease;
overflow: hidden;
}
.notification-body ::deep > .subtitle {
font-size: 12px;
color: var(--mud-palette-drawer-text);
line-height: inherit;
margin-top: .5rem;
}