68cf541bbe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
140 lines
3.2 KiB
CSS
140 lines
3.2 KiB
CSS
.nui-entry-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.nui-entry-form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.nui-entry-form-field > label {
|
|
font-weight: var(--fw-medium);
|
|
color: var(--text);
|
|
font-size: var(--fs-md);
|
|
}
|
|
|
|
.nui-entry-form-field input[type="text"],
|
|
.nui-entry-form-field input[type="number"],
|
|
.nui-entry-form-field select {
|
|
width: 100%;
|
|
padding: var(--space-2) var(--space-3);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
font-size: var(--fs-lg);
|
|
background-color: var(--surface);
|
|
color: var(--text);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.nui-entry-form-field input[type="text"]:focus,
|
|
.nui-entry-form-field input[type="number"]:focus,
|
|
.nui-entry-form-field select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
|
|
.nui-entry-form-field input[type="text"]:disabled,
|
|
.nui-entry-form-field input[type="number"]:disabled,
|
|
.nui-entry-form-field select:disabled {
|
|
background-color: var(--surface-hover);
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Hide number spinner */
|
|
.nui-entry-form-field input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
.nui-entry-form-field input[type="number"]::-webkit-outer-spin-button,
|
|
.nui-entry-form-field input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Error state */
|
|
.nui-entry-form-input-error {
|
|
border-color: var(--danger) !important;
|
|
}
|
|
|
|
.nui-entry-form-error {
|
|
font-size: var(--fs-base);
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Checkbox field */
|
|
.nui-entry-form-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
cursor: pointer;
|
|
font-weight: var(--fw-regular) !important;
|
|
font-size: var(--fs-lg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.nui-entry-form-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Actions */
|
|
.nui-entry-form-actions {
|
|
display: flex;
|
|
gap: var(--space-3);
|
|
justify-content: flex-end;
|
|
margin-top: var(--space-4);
|
|
padding-top: var(--space-4);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.nui-entry-form-cancel {
|
|
background-color: var(--text-muted);
|
|
color: var(--text-inverse);
|
|
padding: var(--space-2) var(--space-6);
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: var(--fs-lg);
|
|
font-weight: var(--fw-medium);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, transform 0.1s;
|
|
}
|
|
|
|
.nui-entry-form-cancel:hover {
|
|
background-color: var(--text);
|
|
}
|
|
|
|
.nui-entry-form-cancel:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.nui-entry-form-save {
|
|
background: var(--accent-gradient);
|
|
color: var(--accent-contrast);
|
|
padding: var(--space-2) var(--space-6);
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: var(--fs-lg);
|
|
font-weight: var(--fw-medium);
|
|
cursor: pointer;
|
|
transition: box-shadow 0.2s, transform 0.1s;
|
|
}
|
|
|
|
.nui-entry-form-save:hover:not(:disabled) {
|
|
box-shadow: 0 3px 8px var(--accent-soft);
|
|
}
|
|
|
|
.nui-entry-form-save:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.nui-entry-form-save:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|