sasalka/Code/UI/ChatEntry.razor.scss
2025-06-26 01:56:08 +03:00

91 lines
1.5 KiB
SCSS

ChatEntry {
border-radius: 8px;
background-color: rgba(0, 0, 0, 0.28);
backdrop-filter: blur(2px);
flex-shrink: 0;
overflow: hidden;
padding: 2px;
.meta {
flex-shrink: 0;
gap: 10px;
}
.avatar, .type-icon {
width: 28px;
height: 28px;
border-radius: 6px;
background-color: rgba(100, 150, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
i {
font-family: 'Material Icons';
font-size: 16px;
}
}
.avatar {
background-size: cover;
background-position: center;
}
.author {
color: #a8e063;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
flex-shrink: 0;
max-width: 150px;
overflow: hidden;
font-weight: bold;
}
.message {
color: #fff;
align-content: flex-end;
text-align: left;
justify-content: center;
font-size: 15px;
padding-left: 10px;
font-weight: bold;
}
&.type-system {
background-color: rgba(100, 200, 255, 0.12);
.author {
color: #6ec6ff;
}
.type-icon {
background-color: rgba(100, 200, 255, 0.2);
}
}
&.type-admin {
.author {
color: #ff9e80;
}
.type-icon {
background-color: rgba(255, 100, 100, 0.2);
}
}
&.type-notification {
background-color: rgba(255, 224, 130, 0.15);
.author {
color: #ffd54f;
}
.type-icon {
background-color: rgba(255, 200, 50, 0.25);
}
}
}