@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user