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