Harden shell and tables interactions

This commit is contained in:
2026-04-12 22:38:18 +02:00
parent 222abc155b
commit 0dd1f42fac
18 changed files with 299 additions and 664 deletions

View File

@@ -199,6 +199,10 @@ html, body {
font-weight: 400;
}
html {
scroll-padding-top: calc(var(--shell-header-height, 5.75rem) + 1rem);
}
body {
margin: 0;
}
@@ -262,6 +266,13 @@ textarea {
font: inherit;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: var(--control-height);
}
code,
pre,
.code-block {
@@ -577,9 +588,11 @@ select.input-shell {
height: var(--control-height);
}
.input-shell:focus {
.input-shell:focus,
.input-shell:focus-visible {
outline: 2px solid var(--focus-ring);
border-color: var(--focus-border);
outline-offset: 1px;
}
.action-row {
@@ -592,6 +605,7 @@ select.input-shell {
.btn-ritual {
border: none;
border-radius: 999px;
min-height: var(--control-height);
padding: 0.8rem 1.15rem;
background: linear-gradient(135deg, var(--accent-4), var(--accent-5));
color: var(--text-on-accent);
@@ -603,9 +617,18 @@ select.input-shell {
background: linear-gradient(135deg, #c38a4d, #8f5a2f);
}
.btn-ritual:focus-visible,
.roll-button:focus-visible,
.play-action-link:focus-visible,
.shell-omnibox-close:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
.roll-button {
flex: 0 0 auto;
min-width: 4.5rem;
min-height: var(--control-height);
border-radius: 14px;
border: 1px solid var(--button-secondary-border);
background: var(--button-secondary-bg);
@@ -1083,6 +1106,7 @@ select.input-shell {
align-items: center;
justify-content: center;
gap: 0.55rem;
min-width: 0;
min-height: 2.75rem;
padding: 0.7rem 1rem;
border-radius: 999px;
@@ -1121,8 +1145,9 @@ select.input-shell {
.segmented-tabs-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
min-height: 2.25rem;
min-height: 2.75rem;
padding: 0.4rem 0.85rem;
border: none;
border-radius: 999px;
@@ -1130,6 +1155,11 @@ select.input-shell {
color: var(--text-muted);
}
.segmented-tabs-button:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
.segmented-tabs-button.is-selected {
background: var(--surface-elevated);
color: var(--text-strong);
@@ -1454,6 +1484,11 @@ select.input-shell {
scrollbar-gutter: stable;
}
.tables-index-rail:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 3px;
}
.tables-index-rail-header {
display: grid;
gap: 0.35rem;
@@ -1487,12 +1522,16 @@ select.input-shell {
}
.tables-family-filter {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.75rem;
border: 1px solid rgba(127, 96, 55, 0.2);
border-radius: 999px;
background: rgba(255, 250, 242, 0.86);
color: var(--ink-soft);
font-size: 0.8rem;
padding: 0.28rem 0.6rem;
padding: 0.35rem 0.8rem;
transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
@@ -1501,7 +1540,8 @@ select.input-shell {
border-color: rgba(184, 121, 59, 0.3);
background: rgba(255, 244, 228, 0.94);
color: var(--ink);
outline: none;
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
.tables-family-filter.is-selected {
@@ -1570,7 +1610,8 @@ select.input-shell {
.table-index-option:focus-visible {
border-color: rgba(184, 121, 59, 0.28);
background: rgba(255, 247, 235, 0.94);
outline: none;
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
.table-index-option.is-selected {
@@ -1649,46 +1690,6 @@ select.input-shell {
backdrop-filter: blur(12px);
}
.tables-reference-inspector-shell {
position: sticky;
top: calc(var(--shell-header-height) + 1rem);
}
.tables-inspector {
display: grid;
gap: 0.85rem;
}
.tables-inspector-sheet {
display: none;
}
.tables-inspector-empty {
margin: 0;
color: var(--ink-soft);
}
.tables-inspector-summary {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
}
.tables-inspector-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.85rem;
}
.tables-inspector-kicker {
margin: 0 0 0.2rem;
color: var(--ink-soft);
font-size: 0.76rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.table-shell {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
@@ -1777,6 +1778,10 @@ select.input-shell {
}
.tables-context-filter-chip {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.75rem;
border: 1px solid rgba(127, 96, 55, 0.2);
border-radius: 999px;
background: rgba(255, 246, 233, 0.88);
@@ -1790,7 +1795,8 @@ select.input-shell {
.tables-context-filter-chip:focus-visible {
border-color: rgba(184, 121, 59, 0.34);
background: rgba(255, 239, 214, 0.96);
outline: none;
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
.table-browser-reading-hint {
@@ -1810,62 +1816,11 @@ select.input-shell {
display: block;
}
.tables-reference-inspector-shell {
display: none;
}
.tables-selection-menu {
right: 0.75rem;
left: 0.75rem;
justify-content: flex-end;
}
.tables-inspector-sheet {
position: fixed;
inset: 0;
display: grid;
align-items: end;
z-index: 60;
}
.tables-inspector-sheet-backdrop {
position: absolute;
inset: 0;
border: none;
background: rgba(17, 18, 19, 0.38);
padding: 0;
}
.tables-inspector-sheet-panel {
position: relative;
display: grid;
gap: 0.85rem;
max-height: min(78vh, 42rem);
padding: 0.85rem 1rem 1rem;
border-radius: 24px 24px 0 0;
background: var(--surface-card-strong);
border: 1px solid rgba(127, 96, 55, 0.18);
box-shadow: 0 -12px 32px rgba(18, 14, 9, 0.18);
}
.tables-inspector-sheet-handle {
width: 3.2rem;
height: 0.32rem;
margin: 0 auto;
border-radius: 999px;
background: rgba(127, 96, 55, 0.22);
}
.tables-inspector-sheet-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.85rem;
}
.tables-inspector-sheet-body {
overflow: auto;
}
}
@media (min-width: 1024px) {
@@ -1988,7 +1943,7 @@ select.input-shell {
}
.critical-table-cell:focus-visible {
outline: 2px solid rgba(13, 148, 136, 0.45);
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}