mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
176 lines
3.0 KiB
SCSS
176 lines
3.0 KiB
SCSS
@use "material" as *;
|
|
@use "sass:color";
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.alert {
|
|
padding: 0.8rem 1rem;
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
|
|
&.alert-success {
|
|
background-color: #C6F6D5;
|
|
color: #22543D;
|
|
}
|
|
|
|
&.alert-danger {
|
|
background-color: #FED7D7;
|
|
color: #742A2A;
|
|
}
|
|
}
|
|
|
|
.link {
|
|
color: $color-dark-primary;
|
|
font-weight: 600;
|
|
}
|
|
|
|
button, input {
|
|
font: inherit;
|
|
}
|
|
|
|
// Dialog content styles
|
|
.dialog-content {
|
|
h3 {
|
|
margin: 0 0 1rem 0;
|
|
color: $color-dark-on-surface;
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
mdui-text-field {
|
|
width: 100%;
|
|
}
|
|
|
|
.dialog-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: flex-end;
|
|
margin-top: 1rem;
|
|
}
|
|
}
|
|
|
|
.rich-text-area {
|
|
width: 100%;
|
|
resize: none;
|
|
transition: height 0.2s ease;
|
|
overflow-y: hidden;
|
|
background-color: transparent;
|
|
display: block;
|
|
}
|
|
|
|
.quote {
|
|
background-color: $color-dark-surface-primary-container-lightened;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
|
|
color: $color-dark-on-surface-variant;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
|
|
&.bg-surfaceContainer {
|
|
background-color: $color-dark-secondary-container;
|
|
|
|
.quote-inner {
|
|
border-left: 3px solid $color-dark-secondary;
|
|
}
|
|
}
|
|
|
|
.quote-inner {
|
|
border-left: 3px solid $color-dark-primary;
|
|
padding: 0.5rem;
|
|
}
|
|
}
|
|
|
|
// Verified badge styles
|
|
.verified-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: $color-dark-primary;
|
|
vertical-align: middle;
|
|
user-select: none;
|
|
|
|
&.small {
|
|
font-size: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
&.medium {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
&.large {
|
|
font-size: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
|
|
// Status badge styles (unified for verified and warning)
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
user-select: none;
|
|
|
|
&.verified {
|
|
color: $color-dark-primary;
|
|
}
|
|
|
|
&.warning {
|
|
color: #ff9800; // Orange color for warnings
|
|
}
|
|
|
|
&.small mdui-icon {
|
|
font-size: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
&.medium mdui-icon {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
&.large mdui-icon {
|
|
font-size: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
|
|
// Profile dialog specific styles
|
|
.username-with-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.similarity-warning {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background-color: $color-dark-error-container;
|
|
color: $color-dark-on-error-container;
|
|
border-radius: 8px;
|
|
margin: 12px 0;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.verify-section {
|
|
margin: 16px 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.dm-list-headline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
} |