This commit is contained in:
legop3
2026-09-14 12:15:59 -04:00
parent 3d2e75572f
commit 4635e1b40c
18 changed files with 197 additions and 149 deletions
+89
View File
@@ -0,0 +1,89 @@
/* Administration Application Styles
* Purpose: Styles the schema-generated configuration tree used only by /admin.
* Scope: Keeps route-specific hierarchy and RJSF integration out of the shared global stylesheet.
*/
.configuration-tree {
/* A single ordered stack is the visual equivalent of YAML's top-to-bottom
document order. Separation comes from hierarchy, not unrelated tiles. */
@apply space-y-0.5;
}
.configuration-branch {
@apply min-w-0;
}
.configuration-branch-heading,
.configuration-item-heading {
/* Headings and their controls use normal left-to-right flow. Deliberately
omitting space-between prevents wide pages from marooning actions. */
@apply flex flex-wrap items-center gap-0.5 rounded-md bg-slate-800 px-0.5 py-0.5;
}
.configuration-branch-heading h3,
.configuration-item-title {
@apply text-sm font-semibold text-slate-100;
}
.configuration-branch-heading > div,
.configuration-branch-description {
@apply text-[0.7rem] text-slate-400;
}
.configuration-children {
/* Every container contributes exactly one indentation and one guide. Deep
descendants therefore explain their ancestry without calculating depth or
encoding service paths in frontend code. */
@apply ml-1 space-y-0.5 border-l border-sky-700/70 py-0.5 pl-1;
}
.configuration-line {
/* Each scalar is one logical YAML-like line. The bounded value column starts
immediately after its key instead of stretching to the viewport edge. */
@apply grid min-w-0 grid-cols-1 items-start gap-0.5 rounded-md bg-neutral-800 px-0.5 py-0.5 sm:grid-cols-[minmax(9rem,16rem)_minmax(12rem,40rem)];
justify-content: start;
}
.configuration-key,
.configuration-value {
@apply min-w-0;
}
.configuration-key .field-description,
.configuration-key .help-block,
.configuration-branch-description {
@apply block text-[0.7rem] leading-tight text-slate-500;
margin-top: 0.125rem;
}
.configuration-value input:not([type='checkbox']),
.configuration-value select,
.configuration-value textarea {
@apply w-full rounded-md border border-neutral-600 bg-neutral-700 px-0.5 py-0.5 text-white placeholder:text-slate-400 focus:outline-none focus:ring-1 focus:ring-sky-500;
}
.configuration-value input[type='checkbox'] {
@apply h-4 w-4 align-middle accent-sky-500;
}
.configuration-value .checkbox label {
/* RJSF hides its duplicate boolean label because the key column already
names the setting; this rule keeps the remaining checkbox compact. */
@apply flex min-h-7 items-center text-slate-100;
}
.configuration-value .error-detail {
@apply mt-0.5 text-xs text-red-300;
}
.configuration-value .help-block {
@apply mt-0.5 block text-[0.7rem] text-slate-500;
}
.configuration-secret {
@apply min-w-0;
}
.configuration-array-item + .configuration-array-item {
@apply mt-0.5;
}