@@ -10,15 +10,79 @@
|
||||
// via DEFAULT_OPTIONS.classes. The content section and footer live inside PARTS.
|
||||
|
||||
.scrying-pool.directors-board {
|
||||
background: var(--sp-surface);
|
||||
background: linear-gradient(175deg, hsl(220, 18%, 13%) 0%, hsl(220, 15%, 10%) 100%);
|
||||
color: var(--sp-text-primary);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-top: 2px solid hsl(200, 55%, 40%);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
|
||||
// ── Hide Foundry's default window header ──────────────────────────────────
|
||||
header.window-header { display: none; }
|
||||
|
||||
// The inner container is position:relative so the close btn can be absolute.
|
||||
.directors-board__inner {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// ── Drag grip ─────────────────────────────────────────────────────────────
|
||||
.directors-board__grip {
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: grab;
|
||||
color: var(--sp-text-muted, hsl(0, 0%, 70%));
|
||||
opacity: 0.35;
|
||||
font-size: 10px;
|
||||
flex-shrink: 0;
|
||||
transition: opacity 0.15s, background 0.15s;
|
||||
user-select: none;
|
||||
border-radius: 8px 8px 0 0;
|
||||
|
||||
&:hover { opacity: 0.8; background: rgba(255, 255, 255, 0.03); }
|
||||
&:active { cursor: grabbing; opacity: 1; }
|
||||
}
|
||||
|
||||
// ── Custom close button ───────────────────────────────────────────────────
|
||||
.directors-board__close-btn {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 6px;
|
||||
z-index: 10;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 0;
|
||||
line-height: 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
border: none;
|
||||
border-radius: var(--sp-radius-sm, 3px);
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.15s, background 0.15s, color 0.15s;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--sp-text-primary);
|
||||
}
|
||||
&:active { opacity: 0.75; }
|
||||
}
|
||||
|
||||
// ── Participant grid ──────────────────────────────────────────────────────
|
||||
.directors-board__content {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
grid-template-columns: repeat(auto-fill, 68px);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
overflow-y: auto;
|
||||
flex: 1 1 auto;
|
||||
list-style: none;
|
||||
@@ -30,8 +94,8 @@
|
||||
grid-column: 1 / -1;
|
||||
text-align: center;
|
||||
color: var(--sp-text-muted);
|
||||
font-size: 13px;
|
||||
padding: 24px 0;
|
||||
font-size: 12px;
|
||||
padding: 20px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -39,51 +103,57 @@
|
||||
.directors-board__bulk-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 12px;
|
||||
border-top: 1px solid var(--sp-border);
|
||||
gap: 4px;
|
||||
padding: 4px 8px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.directors-board__bulk-btn {
|
||||
font-size: 12px;
|
||||
background: var(--sp-accent, #4a6f9c);
|
||||
color: #fff;
|
||||
border: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
background: rgba(74, 111, 156, 0.7);
|
||||
color: #e8edf2;
|
||||
border: 1px solid rgba(74, 111, 156, 0.4);
|
||||
border-radius: 3px;
|
||||
padding: 4px 10px;
|
||||
padding: 3px 8px;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s;
|
||||
transition: background 0.15s, opacity 0.15s;
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
&:active { opacity: 0.7; }
|
||||
i { font-size: 10px; }
|
||||
|
||||
&:hover { background: rgba(74, 111, 156, 0.95); }
|
||||
&:active { opacity: 0.8; }
|
||||
|
||||
// Undo — secondary style
|
||||
&--undo {
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
border: 1px solid var(--sp-border);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
|
||||
&:hover { color: var(--sp-text, inherit); border-color: currentColor; }
|
||||
&:hover { color: var(--sp-text-primary, #dde2e8); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
|
||||
}
|
||||
|
||||
// Restore — spotlight accent (distinct from Undo)
|
||||
&--restore {
|
||||
background: var(--sp-spotlight-accent, #7b4fa6);
|
||||
background: rgba(123, 79, 166, 0.7);
|
||||
border-color: rgba(123, 79, 166, 0.4);
|
||||
&:hover { background: rgba(123, 79, 166, 0.95); }
|
||||
}
|
||||
}
|
||||
|
||||
// ── Help / shortcut-panel button ───────────────────────────────────────────
|
||||
.directors-board__help-btn {
|
||||
margin-left: auto;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--sp-border);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
@@ -92,37 +162,105 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&:hover { background: var(--sp-accent, #4a6f9c); color: #fff; border-color: transparent; }
|
||||
&:hover { background: rgba(74, 111, 156, 0.8); color: #fff; border-color: transparent; }
|
||||
}
|
||||
|
||||
// ── Footer (preset actions) ────────────────────────────────────────────
|
||||
// ── Footer (preset actions) ────────────────────────────────────────────────
|
||||
.directors-board__footer {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid var(--sp-border);
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
padding: 5px 8px 6px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
flex-shrink: 0;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border-radius: 0 0 8px 8px;
|
||||
}
|
||||
|
||||
&-btn {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
background: var(--sp-accent, #4a6f9c);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
padding: 4px 8px;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s;
|
||||
.directors-board__footer-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
&:active { opacity: 0.7; }
|
||||
&[disabled] {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
border: 1px solid var(--sp-border);
|
||||
}
|
||||
&--presets { flex-wrap: wrap; }
|
||||
|
||||
&--controls {
|
||||
padding-top: 3px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
.directors-board__footer-sep {
|
||||
width: 1px;
|
||||
align-self: stretch;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
margin: 0 3px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.directors-board__footer-btn {
|
||||
flex: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
font-size: 10px;
|
||||
background: rgba(74, 111, 156, 0.65);
|
||||
color: #d8e4f0;
|
||||
border: 1px solid rgba(74, 111, 156, 0.35);
|
||||
border-radius: 3px;
|
||||
padding: 4px 6px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, opacity 0.15s;
|
||||
white-space: nowrap;
|
||||
|
||||
i { font-size: 0.9em; }
|
||||
|
||||
&:hover { background: rgba(74, 111, 156, 0.9); }
|
||||
&:active { opacity: 0.75; }
|
||||
|
||||
&[disabled] {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.4;
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
&--secondary {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--sp-text-secondary, #9aa4b0);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
&:hover { background: rgba(255, 255, 255, 0.1); color: #dde2e8; }
|
||||
}
|
||||
|
||||
&--auto-apply {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--sp-text-secondary, #9aa4b0);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
&:hover { background: rgba(255, 255, 255, 0.1); color: #dde2e8; }
|
||||
}
|
||||
|
||||
&--av {
|
||||
background: rgba(30, 35, 45, 0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--sp-text-muted, #aaa);
|
||||
&:hover { background: rgba(50, 55, 70, 0.9); }
|
||||
}
|
||||
|
||||
&--av-active {
|
||||
background: rgba(90, 42, 42, 0.85);
|
||||
border-color: rgba(160, 64, 64, 0.6);
|
||||
color: #f0a0a0;
|
||||
&:hover { background: rgba(110, 50, 50, 0.95); }
|
||||
}
|
||||
|
||||
&--av-config {
|
||||
background: rgba(30, 35, 45, 0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--sp-text-muted, #aaa);
|
||||
flex: 0 0 auto;
|
||||
&:hover { background: rgba(50, 55, 70, 0.9); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,6 +96,10 @@
|
||||
&__toggle {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
// Foundry applies an explicit height to <button> elements which overrides
|
||||
// the bottom:0 stretch constraint. Force 100%×100% to fill the card.
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -10,9 +10,10 @@
|
||||
|
||||
.scrying-pool {
|
||||
// Dialog root element
|
||||
.player-privacy-panel {
|
||||
&.player-privacy-panel {
|
||||
background: var(--sp-surface);
|
||||
color: var(--sp-text-primary);
|
||||
font-family: var(--font-primary, inherit);
|
||||
}
|
||||
|
||||
// Container
|
||||
@@ -23,57 +24,50 @@
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
// Header
|
||||
.player-privacy-panel__header {
|
||||
padding: var(--sp-spacing-sm, 8px) var(--sp-spacing-md, 12px);
|
||||
border-bottom: 1px solid var(--sp-border);
|
||||
background: var(--sp-surface);
|
||||
}
|
||||
|
||||
.player-privacy-panel__title {
|
||||
margin: 0;
|
||||
font-size: 1.1em;
|
||||
font-weight: 600;
|
||||
color: var(--sp-text-primary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Body
|
||||
.player-privacy-panel__body {
|
||||
padding: var(--sp-spacing-md, 12px);
|
||||
padding: 12px;
|
||||
background: var(--sp-surface);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
// Notice (read-only)
|
||||
.player-privacy-panel__notice {
|
||||
padding: var(--sp-spacing-sm, 8px) var(--sp-spacing-md, 12px);
|
||||
margin-bottom: var(--sp-spacing-md, 12px);
|
||||
border-radius: var(--sp-border-radius, 4px);
|
||||
font-size: 0.85em;
|
||||
padding: 8px 12px;
|
||||
margin-bottom: 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.player-privacy-panel__notice--readonly {
|
||||
background: var(--sp-urgency-awareness);
|
||||
color: var(--sp-text-secondary);
|
||||
border: 1px solid var(--sp-border);
|
||||
background: hsla(48, 88%, 55%, 0.10);
|
||||
color: hsl(48, 88%, 60%);
|
||||
border: 1px solid hsla(48, 88%, 55%, 0.25);
|
||||
}
|
||||
|
||||
// Section
|
||||
.player-privacy-panel__section {
|
||||
margin-bottom: var(--sp-spacing-md, 12px);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
// Section header — force UI font, no fantasy
|
||||
.player-privacy-panel__section-header {
|
||||
margin: 0 0 var(--sp-spacing-xs, 4px) 0;
|
||||
font-size: 0.95em;
|
||||
font-weight: 600;
|
||||
margin: 0 0 4px 0;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--sp-text-primary);
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.player-privacy-panel__section-description {
|
||||
margin: 0 0 var(--sp-spacing-md, 12px) 0;
|
||||
font-size: 0.85em;
|
||||
margin: 0 0 10px 0;
|
||||
font-size: 12px;
|
||||
color: var(--sp-text-secondary);
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -82,40 +76,51 @@
|
||||
.player-privacy-panel__effects-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--sp-spacing-md, 12px);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
// Individual effect
|
||||
// Individual effect card
|
||||
.player-privacy-panel__effect {
|
||||
padding: var(--sp-spacing-sm, 8px);
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: var(--sp-border-radius, 4px);
|
||||
background: var(--sp-surface-elevated);
|
||||
border-radius: 5px;
|
||||
background: linear-gradient(135deg, hsl(215,25%,11%) 0%, hsl(215,22%,9%) 100%);
|
||||
transition: border-color 120ms ease;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sp-border-hover, rgba(255,255,255,0.15));
|
||||
}
|
||||
}
|
||||
|
||||
.player-privacy-panel__effect-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--sp-spacing-xs, 4px);
|
||||
margin-bottom: 4px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
// Effect label — force clean UI font
|
||||
.player-privacy-panel__effect-label {
|
||||
margin: 0;
|
||||
font-size: 0.9em;
|
||||
font-weight: 500;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--sp-text-primary);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.player-privacy-panel__effect-description {
|
||||
margin: 0;
|
||||
font-size: 0.8em;
|
||||
font-size: 11px;
|
||||
color: var(--sp-text-secondary);
|
||||
line-height: 1.4;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
// Toggle switch
|
||||
// Toggle container
|
||||
.player-privacy-panel__toggle {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -123,13 +128,13 @@
|
||||
.player-privacy-panel__toggle-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-spacing-xs, 4px);
|
||||
gap: 4px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
font-size: 0.85em;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
// Toggle input - visually hidden, uses custom styling
|
||||
// Toggle input — visually hidden
|
||||
.player-privacy-panel__toggle-input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
@@ -142,53 +147,66 @@
|
||||
}
|
||||
|
||||
&:disabled + .player-privacy-panel__toggle-text {
|
||||
opacity: 0.6;
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle badge — clearly different ON vs OFF
|
||||
.player-privacy-panel__toggle-text {
|
||||
display: inline-block;
|
||||
padding: var(--sp-spacing-xs, 4px) var(--sp-spacing-sm, 8px);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 3px 9px;
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: var(--sp-border-radius, 4px);
|
||||
background: var(--sp-surface);
|
||||
color: var(--sp-text-primary);
|
||||
font-weight: 500;
|
||||
transition: all 0.15s ease;
|
||||
border-radius: 20px;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sp-text-secondary);
|
||||
background: rgba(255,255,255,0.04);
|
||||
transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
|
||||
cursor: pointer;
|
||||
|
||||
i { font-size: 9px; opacity: 0.7; }
|
||||
|
||||
// Enabled state
|
||||
.player-privacy-panel__toggle-input:checked + & {
|
||||
background: var(--sp-accent);
|
||||
color: white;
|
||||
background: rgba(46, 160, 67, 0.18);
|
||||
color: hsl(134, 61%, 60%);
|
||||
border-color: rgba(46, 160, 67, 0.4);
|
||||
|
||||
i { opacity: 1; }
|
||||
}
|
||||
|
||||
// Hover (when not disabled)
|
||||
.player-privacy-panel__toggle-label:hover & {
|
||||
border-color: var(--sp-accent);
|
||||
}
|
||||
|
||||
.player-privacy-panel__toggle-input:disabled + & {
|
||||
background: var(--sp-surface);
|
||||
border-color: var(--sp-border);
|
||||
}
|
||||
|
||||
.player-privacy-panel__toggle-input:checked:disabled + & {
|
||||
background: var(--sp-accent);
|
||||
color: white;
|
||||
opacity: 0.6;
|
||||
.player-privacy-panel__toggle-input:checked + &:hover,
|
||||
.player-privacy-panel__toggle-label:hover .player-privacy-panel__toggle-input:checked + & {
|
||||
background: rgba(46, 160, 67, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
// Story 4.2: Portrait fallback section
|
||||
// Portrait section
|
||||
.player-privacy-panel__portrait-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--sp-spacing-sm, 8px);
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.player-privacy-panel__portrait-preview {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
flex-shrink: 0;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 2px solid var(--sp-border);
|
||||
border-radius: var(--sp-border-radius, 4px);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: var(--sp-surface-elevated);
|
||||
background: hsl(215,25%,11%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -202,13 +220,123 @@
|
||||
|
||||
.player-privacy-panel__portrait-actions {
|
||||
display: flex;
|
||||
gap: var(--sp-spacing-sm, 8px);
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.player-privacy-panel__portrait-choose,
|
||||
.player-privacy-panel__portrait-remove {
|
||||
font-size: 0.85em;
|
||||
padding: var(--sp-spacing-xs, 4px) var(--sp-spacing-sm, 8px);
|
||||
font-size: 12px;
|
||||
padding: 5px 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
// GM Privacy Selector dialog
|
||||
&.gm-privacy-selector-dialog {
|
||||
background: var(--sp-surface);
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
|
||||
min-width: 320px;
|
||||
max-width: 480px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sp-gm-privacy-selector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--sp-surface);
|
||||
}
|
||||
|
||||
.sp-dialog-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid var(--sp-border);
|
||||
background: var(--sp-surface-raised);
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--sp-text-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.02em;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
.sp-close-button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--sp-text-secondary);
|
||||
cursor: pointer;
|
||||
padding: 3px 6px;
|
||||
border-radius: 4px;
|
||||
line-height: 1;
|
||||
transition: color 120ms ease, background 120ms ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--sp-text-primary);
|
||||
background: var(--sp-surface-interactive);
|
||||
}
|
||||
}
|
||||
|
||||
.sp-gm-privacy-selector > p {
|
||||
padding: 7px 14px;
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--sp-text-secondary);
|
||||
background: var(--sp-surface);
|
||||
border-bottom: 1px solid var(--sp-border);
|
||||
}
|
||||
|
||||
.sp-user-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 8px;
|
||||
gap: 4px;
|
||||
background: var(--sp-surface);
|
||||
}
|
||||
|
||||
.sp-user-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 7px 12px;
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: 4px;
|
||||
background: linear-gradient(135deg, hsl(215,25%,11%) 0%, hsl(215,22%,9%) 100%);
|
||||
cursor: pointer;
|
||||
transition: background 120ms ease, border-color 120ms ease;
|
||||
|
||||
&:hover {
|
||||
background: hsl(215,25%,14%);
|
||||
border-color: var(--sp-accent);
|
||||
}
|
||||
}
|
||||
|
||||
.sp-user-name {
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--sp-text-primary);
|
||||
}
|
||||
|
||||
.sp-user-role {
|
||||
font-size: 11px;
|
||||
color: var(--sp-text-secondary);
|
||||
padding: 2px 6px;
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: 3px;
|
||||
background: rgba(255,255,255,0.04);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
// ============================================================================
|
||||
// Preset Import/Export Dialogs
|
||||
// Wrapper divs we added to satisfy the single-root-element requirement
|
||||
.sp-preset-export-dialog,
|
||||
.sp-preset-import-dialog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
// Story 3.3: Preset Import & Export
|
||||
// ============================================================================
|
||||
|
||||
@@ -159,9 +166,6 @@
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
|
||||
// Prevent pointer events from bubbling through
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sp-file-label {
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
/**
|
||||
* styles/components/_preset-load-dialog.less
|
||||
*
|
||||
* Layout for the Preset Load Dialog.
|
||||
* All selectors scoped under .scrying-pool.
|
||||
* Uses --sp-* tokens only — no Foundry --color-* / --font-* / --border-* tokens.
|
||||
*/
|
||||
|
||||
// The ApplicationV2 window root already has .scrying-pool .preset-load-dialog applied
|
||||
// via DEFAULT_OPTIONS.classes. The content lives inside PARTS.
|
||||
|
||||
.scrying-pool.preset-load-dialog {
|
||||
background: var(--sp-surface);
|
||||
color: var(--sp-text-primary);
|
||||
@@ -21,23 +10,9 @@
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
// ── Header ────────────────────────────────────────────────────────────
|
||||
.preset-load-dialog__header {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--sp-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.preset-load-dialog__title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: var(--sp-text, inherit);
|
||||
}
|
||||
|
||||
// ── Body ──────────────────────────────────────────────────────────────
|
||||
.preset-load-dialog__body {
|
||||
padding: 16px;
|
||||
padding: 12px;
|
||||
overflow-y: auto;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
@@ -49,6 +24,7 @@
|
||||
font-size: 13px;
|
||||
padding: 24px 0;
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// ── Preset list ────────────────────────────────────────────────────────
|
||||
@@ -71,18 +47,28 @@
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 3px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s, border-color 0.15s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
// Load button — primary
|
||||
i { font-size: 0.85em; opacity: 0.7; flex-shrink: 0; }
|
||||
|
||||
// Load button — styled as a row item, not a loud primary button
|
||||
&--load {
|
||||
background: var(--sp-accent, #4a6f9c);
|
||||
color: #fff;
|
||||
border: none;
|
||||
background: var(--sp-surface-elevated, rgba(255,255,255,0.06));
|
||||
color: var(--sp-text-primary);
|
||||
border: 1px solid var(--sp-border);
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
&:active { opacity: 0.7; }
|
||||
&:hover {
|
||||
background: var(--sp-accent, #4a6f9c);
|
||||
border-color: var(--sp-accent, #4a6f9c);
|
||||
color: #fff;
|
||||
i { opacity: 1; }
|
||||
}
|
||||
&:active { opacity: 0.85; }
|
||||
}
|
||||
|
||||
// Cancel button — secondary
|
||||
@@ -90,7 +76,6 @@
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
border: 1px solid var(--sp-border);
|
||||
|
||||
&:hover { color: var(--sp-text, inherit); border-color: currentColor; }
|
||||
}
|
||||
}
|
||||
@@ -100,7 +85,7 @@
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
padding: 12px 16px;
|
||||
padding: 10px 12px;
|
||||
border-top: 1px solid var(--sp-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
/**
|
||||
* styles/components/_preset-save-dialog.less
|
||||
*
|
||||
* Layout for the Preset Save Dialog.
|
||||
* All selectors scoped under .scrying-pool.
|
||||
* Uses --sp-* tokens only — no Foundry --color-* / --font-* / --border-* tokens.
|
||||
* Preset Save Dialog — compact, polished design.
|
||||
* Follows SP token system; mirrors Directors Board aesthetic.
|
||||
*/
|
||||
|
||||
// The ApplicationV2 window root already has .scrying-pool .preset-save-dialog applied
|
||||
// via DEFAULT_OPTIONS.classes. The content lives inside PARTS.
|
||||
@import "../tokens/_base.less";
|
||||
|
||||
.scrying-pool.preset-save-dialog {
|
||||
background: var(--sp-surface);
|
||||
background: linear-gradient(175deg, hsl(220, 18%, 13%) 0%, hsl(220, 15%, 10%) 100%);
|
||||
color: var(--sp-text-primary);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-top: 2px solid var(--sp-accent);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
|
||||
// ── Form ───────────────────────────────────────────────────────────────
|
||||
// ── Form wrapper ──────────────────────────────────────────────────────────
|
||||
.preset-save-dialog__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -21,21 +22,33 @@
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
// ── Header ────────────────────────────────────────────────────────────
|
||||
// ── Header ────────────────────────────────────────────────────────────────
|
||||
.preset-save-dialog__header {
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 14px 16px 10px;
|
||||
border-bottom: 1px solid var(--sp-border);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
.preset-save-dialog__header-icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 16px;
|
||||
color: var(--sp-accent);
|
||||
margin-top: 1px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.preset-save-dialog__title {
|
||||
.preset-save-dialog__description {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: var(--sp-text, inherit);
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 12px;
|
||||
color: var(--sp-text-secondary);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
// ── Body ──────────────────────────────────────────────────────────────
|
||||
// ── Body ──────────────────────────────────────────────────────────────────
|
||||
.preset-save-dialog__body {
|
||||
padding: 16px;
|
||||
overflow-y: auto;
|
||||
@@ -45,69 +58,93 @@
|
||||
.preset-save-dialog__field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.preset-save-dialog__label {
|
||||
font-size: 12px;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--sp-text-muted);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.preset-save-dialog__input {
|
||||
width: 100%;
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 14px;
|
||||
padding: 6px 10px;
|
||||
padding: 9px 12px;
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: 3px;
|
||||
background: var(--sp-bg, #fff);
|
||||
color: var(--sp-text, inherit);
|
||||
border-radius: 5px;
|
||||
background: var(--sp-control-bg, #1a1d20);
|
||||
color: var(--sp-text-primary);
|
||||
outline: none;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--sp-accent, #4a6f9c);
|
||||
box-shadow: 0 0 0 1px var(--sp-accent, #4a6f9c);
|
||||
border-color: var(--sp-accent);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp-accent) 22%, transparent);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: var(--sp-text-muted);
|
||||
font-style: italic;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Footer ────────────────────────────────────────────────────────────
|
||||
// ── Footer ────────────────────────────────────────────────────────────────
|
||||
.preset-save-dialog__footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 12px 16px;
|
||||
padding: 10px 16px;
|
||||
border-top: 1px solid var(--sp-border);
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.preset-save-dialog__btn {
|
||||
font-family: var(--font-primary, ui-sans-serif, system-ui, sans-serif);
|
||||
font-size: 12px;
|
||||
padding: 6px 14px;
|
||||
border-radius: 3px;
|
||||
font-weight: 600;
|
||||
padding: 7px 14px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: background 0.15s, border-color 0.15s, opacity 0.15s;
|
||||
|
||||
i { font-size: 10px; opacity: 0.85; }
|
||||
|
||||
// Save button — primary
|
||||
&--save {
|
||||
background: var(--sp-accent, #4a6f9c);
|
||||
color: #fff;
|
||||
border: none;
|
||||
background: var(--sp-accent);
|
||||
color: var(--sp-accent-text, #fff);
|
||||
border: 1px solid transparent;
|
||||
letter-spacing: 0.02em;
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
&:active { opacity: 0.7; }
|
||||
&:hover { background: var(--sp-accent-hover); }
|
||||
&:active { background: var(--sp-accent-active); }
|
||||
|
||||
i { opacity: 1; }
|
||||
}
|
||||
|
||||
// Cancel button — secondary
|
||||
&--cancel {
|
||||
background: transparent;
|
||||
color: var(--sp-text-muted);
|
||||
color: var(--sp-text-secondary);
|
||||
border: 1px solid var(--sp-border);
|
||||
font-weight: 500;
|
||||
|
||||
&:hover { color: var(--sp-text, inherit); border-color: currentColor; }
|
||||
&:hover {
|
||||
color: var(--sp-text-primary);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,27 @@
|
||||
// ============================================================
|
||||
// ScryingPoolStrip Layout
|
||||
// ============================================================
|
||||
// Outer Foundry Application window (has .scrying-pool-strip via defaultOptions.classes).
|
||||
// Only visual appearance — sizing is controlled by JS setPosition().
|
||||
// WARNING: do NOT add max-width or overflow here; the outer window also carries this class
|
||||
// and would clip the expanded inner content.
|
||||
.scrying-pool-strip {
|
||||
background: var(--sp-bg, hsl(220, 15%, 12%));
|
||||
border-radius: 8px;
|
||||
|
||||
// Hide Foundry's default window header — replaced by a lightweight in-content button.
|
||||
header.window-header { display: none; }
|
||||
|
||||
// Remove window-content padding so the strip fills the frame edge-to-edge.
|
||||
.window-content {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
// Inner template div (has BOTH .scrying-pool AND .scrying-pool-strip).
|
||||
// Controls the expand/collapse behaviour; safe to use max-width + overflow here.
|
||||
.scrying-pool.scrying-pool-strip {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -26,17 +46,72 @@
|
||||
max-width: 44px;
|
||||
overflow: hidden;
|
||||
transition: max-width 200ms ease-in-out;
|
||||
background: var(--sp-bg, hsl(220, 15%, 12%));
|
||||
border-radius: 8px;
|
||||
|
||||
&.is-expanded {
|
||||
max-width: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Drag grip (top bar, replaces window header drag affordance) ────────────────
|
||||
.sp-strip__grip {
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: grab;
|
||||
color: var(--sp-text, hsl(0, 0%, 80%));
|
||||
opacity: 0.35;
|
||||
font-size: 10px;
|
||||
flex-shrink: 0;
|
||||
transition: opacity 0.15s;
|
||||
user-select: none;
|
||||
|
||||
&:hover { opacity: 0.75; }
|
||||
&:active { cursor: grabbing; opacity: 1; }
|
||||
}
|
||||
|
||||
// ── Lightweight close button (replaces window header) ─────────────────────────
|
||||
.sp-strip__close-btn {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
z-index: 10;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0;
|
||||
line-height: 18px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
background: transparent;
|
||||
color: var(--sp-text, hsl(0, 0%, 80%));
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
opacity: 0.45;
|
||||
transition: opacity 0.15s, background 0.15s;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
&:active { opacity: 0.75; }
|
||||
}
|
||||
|
||||
// ── Toolbar row: toggle + Director's Board on the same line ───────────────────
|
||||
.sp-strip__toolbar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.sp-strip__toggle {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
min-width: 44px;
|
||||
height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -44,7 +119,39 @@
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--sp-text, hsl(0, 0%, 80%));
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.6;
|
||||
|
||||
&:hover { opacity: 1; }
|
||||
}
|
||||
|
||||
// ── Director's Board CTA button (shown when sidebar injection not available) ──
|
||||
.sp-strip__directors-board-cta {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.06);
|
||||
cursor: pointer;
|
||||
color: var(--sp-text-secondary, #7a8390);
|
||||
font-size: 11px;
|
||||
text-align: left;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
|
||||
i { font-size: 12px; flex-shrink: 0; }
|
||||
span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: var(--sp-text-primary, #dde2e8);
|
||||
}
|
||||
}
|
||||
|
||||
.sp-strip__participants {
|
||||
@@ -89,7 +196,59 @@
|
||||
|
||||
.is-expanded & {
|
||||
width: 100%;
|
||||
padding: 6px 8px;
|
||||
height: 135px; // 16:9 at 240 px strip width
|
||||
padding: 0;
|
||||
align-items: flex-end;
|
||||
background: hsl(220, 15%, 14%);
|
||||
|
||||
// Gradient scrim so name text is legible over any video
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 48px;
|
||||
background: linear-gradient(transparent, hsla(0, 0%, 0%, 0.72));
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
|
||||
.sp-avatar__img {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 1;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.sp-avatar__name {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 3;
|
||||
color: hsl(0, 0%, 95%);
|
||||
}
|
||||
|
||||
.sp-avatar__state-label {
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
left: 8px;
|
||||
z-index: 3;
|
||||
color: hsla(0, 0%, 85%, 0.85);
|
||||
}
|
||||
|
||||
.sp-avatar__corner-badge {
|
||||
bottom: 6px;
|
||||
right: 6px;
|
||||
z-index: 4;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,239 +6,201 @@
|
||||
|
||||
// Panel container
|
||||
.directors-board__preset-panel {
|
||||
// Base styles
|
||||
background-color: var(--sp-surface);
|
||||
background: linear-gradient(160deg, hsl(215,28%,13%) 0%, hsl(215,25%,10%) 100%);
|
||||
border: 1px solid var(--sp-border);
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
margin-top: 12px;
|
||||
|
||||
// Layout
|
||||
padding: 10px 12px 12px;
|
||||
margin-top: 8px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
|
||||
// Typography
|
||||
font-size: 14px;
|
||||
gap: 0;
|
||||
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
color: var(--sp-text-primary);
|
||||
}
|
||||
|
||||
// Panel header
|
||||
.directors-board__preset-panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 8px;
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 7px;
|
||||
border-bottom: 1px solid var(--sp-border-subtle);
|
||||
}
|
||||
|
||||
.directors-board__preset-panel-title {
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--sp-text-primary);
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
// Panel body
|
||||
.directors-board__preset-panel-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
// Panel row
|
||||
// Panel row — single horizontal line
|
||||
.directors-board__preset-panel-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
width: 100%;
|
||||
|
||||
&--hint {
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
color: var(--sp-text-secondary);
|
||||
margin-top: 4px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid var(--sp-border-subtle);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
// Panel label
|
||||
// Panel label — wraps control + text in a horizontal flex row
|
||||
.directors-board__preset-panel-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
|
||||
// Ensure proper spacing when label wraps
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Toggle switch
|
||||
// Toggle checkbox — compact and styled
|
||||
.directors-board__preset-panel-toggle {
|
||||
// Button reset
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
|
||||
// Appearance
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 2px solid var(--sp-border);
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: 1.5px solid var(--sp-border);
|
||||
border-radius: 3px;
|
||||
background-color: var(--sp-surface);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: background-color 150ms ease, border-color 150ms ease;
|
||||
|
||||
// Checked state
|
||||
transition: background-color 120ms ease, border-color 120ms ease;
|
||||
margin: 0;
|
||||
|
||||
&:checked {
|
||||
background-color: var(--sp-accent);
|
||||
border-color: var(--sp-accent);
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 3px;
|
||||
width: 5px;
|
||||
height: 8px;
|
||||
border: 2px solid white;
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
transform: rotate(40deg);
|
||||
}
|
||||
}
|
||||
|
||||
// After pseudo-element for toggle effect
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: var(--sp-surface);
|
||||
border-radius: 2px;
|
||||
transition: transform 150ms ease, background-color 150ms ease;
|
||||
}
|
||||
|
||||
&:checked:after {
|
||||
transform: translateX(100%);
|
||||
background-color: var(--sp-surface-inverse, white);
|
||||
}
|
||||
|
||||
// Focus state
|
||||
|
||||
&:focus {
|
||||
outline: 2px solid var(--sp-focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
// Hover state
|
||||
&:hover:not(:checked) {
|
||||
background-color: var(--sp-surface-hover, rgba(0, 0, 0, 0.05));
|
||||
}
|
||||
}
|
||||
|
||||
// Preset selector
|
||||
// Preset selector — fills remaining space
|
||||
.directors-board__preset-panel-select {
|
||||
// Button reset
|
||||
background: transparent;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: var(--sp-surface);
|
||||
border: 1px solid var(--sp-border);
|
||||
padding: 6px 8px;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
|
||||
// Typography
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
color: var(--sp-text-primary);
|
||||
|
||||
// Border and radius
|
||||
border-radius: 4px;
|
||||
|
||||
// Transition
|
||||
transition: border-color 150ms ease, box-shadow 150ms ease;
|
||||
|
||||
// Hover state
|
||||
padding: 4px 6px;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
color: var(--sp-text-primary);
|
||||
cursor: pointer;
|
||||
transition: border-color 120ms ease;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
border-color: var(--sp-border-hover, var(--sp-accent));
|
||||
border-color: var(--sp-accent);
|
||||
}
|
||||
|
||||
// Focus state
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: var(--sp-focus);
|
||||
box-shadow: 0 0 0 2px rgba(var(--sp-focus-rgb, 0, 0, 255), 0.2);
|
||||
}
|
||||
|
||||
// Disabled state
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
// Pre-delay slider container
|
||||
// Pre-delay section — label | value badge | slider
|
||||
.directors-board__preset-panel-delay-value {
|
||||
flex-shrink: 0;
|
||||
min-width: 38px;
|
||||
text-align: right;
|
||||
font-family: monospace;
|
||||
font-size: 11px;
|
||||
color: var(--sp-text-secondary);
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 3px;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
.directors-board__preset-panel-slider {
|
||||
// Remove default slider styling
|
||||
flex: 1;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 120px;
|
||||
height: 6px;
|
||||
background: var(--sp-surface-subtle, rgba(0, 0, 0, 0.1));
|
||||
border-radius: 3px;
|
||||
height: 4px;
|
||||
background: rgba(255,255,255,0.12);
|
||||
border-radius: 2px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
|
||||
// Webkit slider thumb
|
||||
margin: 0;
|
||||
|
||||
&::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: var(--sp-accent);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
transition: transform 150ms ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
transition: transform 120ms ease;
|
||||
|
||||
&:hover { transform: scale(1.2); }
|
||||
}
|
||||
|
||||
// Firefox slider thumb
|
||||
|
||||
&::-moz-range-thumb {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: var(--sp-accent);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
transition: transform 150ms ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
// Focus state
|
||||
&:focus {
|
||||
outline: none;
|
||||
transition: transform 120ms ease;
|
||||
|
||||
&:hover { transform: scale(1.2); }
|
||||
}
|
||||
}
|
||||
|
||||
// Delay value display
|
||||
.directors-board__preset-panel-delay-value {
|
||||
display: inline-block;
|
||||
min-width: 40px;
|
||||
text-align: right;
|
||||
font-family: monospace;
|
||||
font-size: 12px;
|
||||
color: var(--sp-text-secondary);
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
// Panel message (when no scene)
|
||||
// Panel message (when no scene active)
|
||||
.directors-board__preset-panel-message {
|
||||
margin: 0;
|
||||
margin: 4px 0 0;
|
||||
color: var(--sp-text-secondary);
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
padding: 8px 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
// Reduced motion: disable transitions
|
||||
// Reduced motion
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.directors-board__preset-panel-toggle,
|
||||
.directors-board__preset-panel-select,
|
||||
@@ -246,9 +208,9 @@
|
||||
.directors-board__preset-panel-slider::-moz-range-thumb {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.directors-board__preset-panel-slider::-webkit-slider-thumb:hover,
|
||||
.directors-board__preset-panel-slider::-moz-range-thumb:hover {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+844
-186
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,9 @@
|
||||
// Story 3.2: ConfirmationBar and StripOverlayLayer
|
||||
@import "components/_strip-overlay-layer.less";
|
||||
@import "components/_confirmation-bar.less";
|
||||
// Story 3.1: Preset Save/Load Dialogs
|
||||
@import "components/_preset-save-dialog.less";
|
||||
@import "components/_preset-load-dialog.less";
|
||||
// Story 3.3: Preset Import/Export Dialogs
|
||||
@import "components/_preset-import-export.less";
|
||||
// Story 4.1: Player Privacy Panel
|
||||
@@ -75,6 +78,11 @@
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
// Hide Foundry's native camera dock — replaced by ScryingPoolCameraViews + our strip
|
||||
#camera-views {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
// Also hide individual camera views in case they're rendered elsewhere
|
||||
.camera-view {
|
||||
display: none !important;
|
||||
|
||||
+40
-14
@@ -17,22 +17,43 @@
|
||||
|
||||
:root {
|
||||
/* Surface & structure */
|
||||
--sp-bg: var(--sp-theme-bg, var(--color-bg, hsl(220, 15%, 12%)));
|
||||
--sp-bg: var(--sp-theme-bg, var(--color-bg, hsl(220, 15%, 12%)));
|
||||
--sp-surface: var(--sp-theme-surface, var(--color-bg-option, #141618));
|
||||
--sp-surface-raised: var(--sp-theme-surface-raised, #1c1f22);
|
||||
--sp-surface-elevated: var(--sp-theme-surface-elevated, var(--sp-surface-raised, #1c1f22));
|
||||
--sp-surface-elevated: var(--sp-theme-surface-elevated, var(--sp-surface-raised, #1c1f22));
|
||||
--sp-surface-subtle: var(--sp-theme-surface-subtle, rgba(255, 255, 255, 0.05));
|
||||
--sp-surface-hover: var(--sp-theme-surface-hover, rgba(255, 255, 255, 0.08));
|
||||
--sp-border: var(--sp-theme-border, var(--color-border, #282c30));
|
||||
--sp-border-subtle: var(--sp-theme-border-subtle, rgba(255, 255, 255, 0.07));
|
||||
|
||||
/* Typography */
|
||||
--sp-text-primary: var(--sp-theme-text-primary, var(--color-text-primary, #dde2e8));
|
||||
--sp-text-secondary: var(--sp-theme-text-secondary,var(--color-text-secondary, #7a8390));
|
||||
--sp-text-muted: var(--sp-theme-text-muted, #555d66);
|
||||
--sp-font-size-sm: 11px;
|
||||
|
||||
/* Accent & interaction */
|
||||
--sp-accent: var(--sp-theme-accent, var(--color-warm-2, #4a9e6b));
|
||||
--sp-accent-hover: var(--sp-theme-accent-hover, #3d8f5e);
|
||||
--sp-accent-active: var(--sp-theme-accent-active, #2d7a4f);
|
||||
--sp-accent-text: #fff;
|
||||
--sp-surface-interactive: var(--sp-theme-interactive, #242830);
|
||||
--sp-control-bg: var(--sp-theme-control, #1a1d20);
|
||||
|
||||
/* Semantic colours */
|
||||
--sp-color-red: hsl(0, 65%, 55%);
|
||||
--sp-color-red-dark: hsl(0, 65%, 42%);
|
||||
--sp-color-red-rgb: 204, 77, 77;
|
||||
--sp-color-red-subtle: hsla(0, 65%, 55%, 0.12);
|
||||
--sp-color-green: hsl(140, 55%, 50%);
|
||||
--sp-color-green-subtle: hsla(140, 55%, 50%, 0.12);
|
||||
--sp-color-yellow: hsl(48, 88%, 55%);
|
||||
--sp-color-yellow-subtle: hsla(48, 88%, 55%, 0.12);
|
||||
|
||||
/* Shape & motion */
|
||||
--sp-radius-sm: 3px;
|
||||
--sp-radius-md: 4px;
|
||||
|
||||
/* Focus ring — module-wide keyboard navigation anchor */
|
||||
--sp-focus: var(--sp-theme-focus, var(--color-focus-outline, #63c287));
|
||||
--sp-focus-ring: 0 0 0 2px var(--sp-focus);
|
||||
@@ -47,17 +68,22 @@
|
||||
/* Theme overrides — dark theme defaults */
|
||||
.scrying-pool,
|
||||
:root[data-color-scheme="dark"] {
|
||||
--sp-theme-bg: hsl(220, 15%, 12%);
|
||||
--sp-theme-surface: #141618;
|
||||
--sp-theme-surface-raised: #1c1f22;
|
||||
--sp-theme-bg: hsl(220, 15%, 12%);
|
||||
--sp-theme-surface: #141618;
|
||||
--sp-theme-surface-raised: #1c1f22;
|
||||
--sp-theme-surface-elevated: #1c1f22;
|
||||
--sp-theme-border: #282c30;
|
||||
--sp-theme-text-primary: #dde2e8;
|
||||
--sp-theme-text-secondary: #7a8390;
|
||||
--sp-theme-text-muted: #555d66;
|
||||
--sp-theme-accent: #4a9e6b;
|
||||
--sp-theme-interactive: #242830;
|
||||
--sp-theme-control: #1a1d20;
|
||||
--sp-theme-focus: #63c287;
|
||||
--sp-theme-urgency: #c8982a;
|
||||
--sp-theme-surface-subtle: rgba(255, 255, 255, 0.05);
|
||||
--sp-theme-surface-hover: rgba(255, 255, 255, 0.08);
|
||||
--sp-theme-border: #282c30;
|
||||
--sp-theme-border-subtle: rgba(255, 255, 255, 0.07);
|
||||
--sp-theme-text-primary: #dde2e8;
|
||||
--sp-theme-text-secondary: #7a8390;
|
||||
--sp-theme-text-muted: #555d66;
|
||||
--sp-theme-accent: #4a9e6b;
|
||||
--sp-theme-accent-hover: #3d8f5e;
|
||||
--sp-theme-accent-active: #2d7a4f;
|
||||
--sp-theme-interactive: #242830;
|
||||
--sp-theme-control: #1a1d20;
|
||||
--sp-theme-focus: #63c287;
|
||||
--sp-theme-urgency: #c8982a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user