Add edit messages

This commit is contained in:
dwrz
2026-06-30 19:48:39 +00:00
parent 95326ce02f
commit eeb7d6f504
4 changed files with 577 additions and 0 deletions

View File

@@ -1023,3 +1023,162 @@ body {
.footer__toolbar-context--critical {
color: var(--color-red);
}
/* ==================== */
.modal-overlay {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
padding: var(--s2);
}
.modal {
background: var(--color-surface);
border-radius: var(--radius);
border: var(--border-width) solid var(--color-border);
width: 100%;
max-width: 600px;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.modal__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--s-1) var(--s1);
border-bottom: 1px solid var(--color-border-light);
flex-shrink: 0;
}
.modal__header h2 {
font-size: var(--s0);
font-weight: 600;
margin: 0;
}
.modal__close {
background: none;
border: none;
cursor: pointer;
padding: var(--s-2);
color: var(--color-text-muted);
display: flex;
align-items: center;
flex-shrink: 0;
}
.modal__close .icon {
width: var(--icon-size);
height: var(--icon-size);
}
.modal__close:hover {
color: var(--color-text);
}
.modal__body {
padding: var(--s1);
overflow-y: auto;
flex: 1;
min-height: 0;
}
.modal__textarea {
width: 100%;
min-height: 200px;
height: 100%;
padding: var(--s-1);
font-family: var(--font-mono);
font-size: var(--s-1);
line-height: 1.5;
border: var(--border-width) solid var(--color-border-light);
border-radius: var(--radius);
resize: none;
outline: none;
}
.modal__textarea:focus {
border-color: var(--color-primary);
}
.modal__textarea--error {
border-color: var(--color-red);
}
.modal__footer {
padding: var(--s-1) var(--s1);
border-top: 1px solid var(--color-border-light);
display: flex;
justify-content: flex-end;
flex-shrink: 0;
}
.modal__save {
padding: var(--s-1) var(--s2);
font-size: var(--s0);
background: var(--color-primary);
color: white;
border: none;
border-radius: var(--radius);
cursor: pointer;
}
.modal__save:hover {
background: var(--color-primary-hover);
}
.modal__save--error {
background: var(--color-red);
animation: modal-flash 0.3s ease-in-out;
}
@keyframes modal-flash {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Mobile: full-screen modal */
@media (max-width: 768px) {
.modal-overlay {
padding: 0;
align-items: stretch;
}
.modal {
max-width: 100%;
max-height: 100%;
height: 100%;
border-radius: 0;
border: none;
}
.modal__header {
padding: var(--s-1) var(--s1);
}
.modal__body {
padding: var(--s-1) var(--s1);
}
.modal__footer {
padding: var(--s-1) var(--s1);
}
.modal__save {
width: 100%;
padding: var(--s-1) var(--s2);
font-size: var(--s0);
}
}