Add sub-tabs to records sections (Refs #18)
Records sections can be split into user-named sub-tabs with a General catch-all. Records and visual sequences move between tabs via a Sub-tab drop-down; up/down, collapse all and print work per tab. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,11 @@ textarea { width: 100%; display: block; } label { display: block; margin-top: .5
|
||||
.tools { display: inline-flex; gap: .2rem; } .addsec { display: grid; gap: .4rem; margin-top: 1rem; }
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
/* ---------- sub-tabs ---------- */
|
||||
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; }
|
||||
.tab { font: inherit; color: inherit; background: none; border: 1px solid transparent; border-bottom: 0; border-radius: .4rem .4rem 0 0; padding: .4rem .9rem; cursor: pointer; margin-bottom: -1px; }
|
||||
.tab.on { background: var(--card); border-color: var(--line); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
|
||||
|
||||
/* ---------- image fields ---------- */
|
||||
.fimg { display: block; max-width: 100%; max-height: 18rem; border: 1px solid var(--line); border-radius: .35rem; background: #fff; cursor: zoom-in; margin: .25rem 0; }
|
||||
.dropzone { border: 2px dashed var(--line); border-radius: .5rem; padding: .75rem; text-align: center; background: var(--bg); }
|
||||
@@ -85,6 +90,7 @@ dialog.lightbox { max-width: 92vw; max-height: 92vh; overflow: auto; } .bigimg {
|
||||
.psec:first-of-type { break-before: auto; }
|
||||
h2 { font-size: 17pt; border-bottom: 1pt solid #000; padding-bottom: 3pt; margin: 0 0 10pt; break-after: avoid; }
|
||||
h3 { font-size: 12.5pt; margin: 0 0 4pt; break-after: avoid; }
|
||||
h3.psubhead { font-size: 14pt; margin: 12pt 0 6pt; padding-bottom: 2pt; border-bottom: 0.5pt solid #666; font-family: system-ui, sans-serif; }
|
||||
.prec { break-inside: avoid; margin: 0 0 12pt; padding: 6pt 8pt; border: 0.75pt solid #888; border-left-width: 3pt; }
|
||||
.prec.tbd { border-left-color: #000; background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
|
||||
.prec table { border-collapse: collapse; width: 100%; font-size: 10.5pt; }
|
||||
|
||||
Reference in New Issue
Block a user