This commit is contained in:
Đăng Nguyễn
2025-10-31 15:03:37 +07:00
parent aa2146e383
commit aea55d52f1
16 changed files with 1907 additions and 222 deletions

View File

@@ -4,7 +4,7 @@
gap: 1rem;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgba(30,30,30,0.95), rgba(20,20,20,0.95));
background: var(--mud-palette-surface, #ffffff);
color: #e6e6e6;
padding: 0.75rem 1rem;
border-radius: 0.375rem;
@@ -373,3 +373,148 @@
display: inline-block;
vertical-align: middle;
}
/* Overlay that blocks the whole viewport while loading */
.rcm-overlay {
position: absolute;
inset: 0; /* top:0; right:0; bottom:0; left:0; */
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 10, 13, 0.55);
z-index: 1050; /* above most UI layers */
pointer-events: auto; /* capture mouse interactions */
}
/* inner content: spinner + optional message */
.rcm-overlay-content {
display: inline-flex;
align-items: center;
gap: 0.6rem;
background: rgba(20, 20, 20, 0.85);
padding: 0.75rem 1rem;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.45);
color: #fff;
font-weight: 500;
transform: translateY(-6px);
}
/* message text */
.rcm-overlay-message {
font-size: 0.95rem;
color: #eef3ff;
}
/* ensure spinner is visible on dark overlay */
.rcm-overlay .spinner-border {
width: 1.25rem;
height: 1.25rem;
border-width: 0.18rem;
color: #ffffff;
}
/* Modal overlay (create dialog) */
.rcm-modal-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 10, 13, 0.45);
z-index: 1065;
pointer-events: auto;
}
/* Modal container */
.rcm-modal {
width: 820px;
max-width: calc(100% - 40px);
border-radius: 8px;
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
background: var(--mud-palette-surface, #0f1720);
color: #e6e6e6;
}
/* Ensure card inside modal uses default spacing already present */
.rcm-modal .card {
background: #0f1720;
border: 1px solid rgba(255,255,255,0.04);
}
/* Header styling */
.rcm-modal .card-header {
padding: 0.6rem 0.9rem;
background: rgba(255,255,255,0.02);
border-bottom: 1px solid rgba(255,255,255,0.03);
}
/* Modal message / spinner adjustments (already defined for overlay) */
.rcm-overlay .spinner-border {
width: 1.25rem;
height: 1.25rem;
border-width: 0.18rem;
color: #ffffff;
}
/* Keep responsive layout for modal form inputs */
.rcm-modal .card-body {
padding: 0.8rem;
color: #e6e6e6;
}
/* --- Contrast adjustments for modal form elements --- */
/* Improve readability by increasing text contrast and adjusting input backgrounds */
.rcm-modal {
color: #eaf4ff; /* default text inside modal */
}
/* labels, headers and small notes */
.rcm-modal .form-label,
.rcm-modal label,
.rcm-modal .card-header strong,
.rcm-modal .card-header,
.rcm-modal .form-text,
.rcm-modal .validation-message,
.rcm-modal .text-muted {
color: #cfe6ff;
}
/* form controls */
.rcm-modal .form-control,
.rcm-modal .form-select,
.rcm-modal input[type="text"],
.rcm-modal input[type="number"],
.rcm-modal textarea {
/*background: rgba(255,255,255,0.03);*/ /* subtle contrast with modal bg */
/*color: #ffffff;*/
border: 1px solid rgba(255,255,255,0.08);
box-shadow: none;
caret-color: #ffffff;
}
/* placeholder text */
.rcm-modal .form-control::placeholder,
.rcm-modal input::placeholder,
.rcm-modal textarea::placeholder {
color: rgba(255,255,255,0.55);
}
/* validation / summary messages */
.rcm-modal .validation-message,
.rcm-modal .validation-summary-valid,
.rcm-modal .validation-summary-errors,
.rcm-modal .field-validation-error {
color: #ffd2d2;
}
/* modal buttons */
.rcm-modal .btn-link {
color: #cfcfcf;
}
/* keep modal small text readable */
.rcm-modal .card-body {
font-size: 0.95rem;
line-height: 1.4;
}