* CommandPalette: Rewrite with modular API and Raycast-style UI Replace the monolithic palette with a command/page registry, capture-phase keyboard routing, fuzzy search with pins and aliases, form pages including Send DM with markdown preview, and a top-anchored shell layout. * CommandPalette: Fix stylelint errors in palette CSS Reorder selectors for no-descending-specificity, replace deprecated word-break, and use overflow shorthand on picker list. * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
825 lines
16 KiB
CSS
825 lines
16 KiB
CSS
.vc-cmdpal-shell {
|
|
--cmdpal-top: clamp(24px, calc(32vh - 28px), calc(100vh - 504px));
|
|
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding-top: var(--cmdpal-top);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.vc-cmdpal-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgb(0 0 0 / 45%);
|
|
backdrop-filter: blur(6px);
|
|
pointer-events: auto;
|
|
animation: vc-cmdpal-backdrop-in 150ms ease-out;
|
|
}
|
|
|
|
@keyframes vc-cmdpal-backdrop-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.vc-cmdpal-root {
|
|
--cmdpal-bg: #111114;
|
|
--cmdpal-bg-elevated: #0e0e11;
|
|
--cmdpal-footer-bg: #151518;
|
|
--cmdpal-text: #a0a0a0;
|
|
--cmdpal-text-bright: #f0f0f0;
|
|
--cmdpal-text-muted: #6b6b6b;
|
|
--cmdpal-raised: #1c1c20;
|
|
--cmdpal-soft: #252528;
|
|
--cmdpal-selection: #2a2a2e;
|
|
--cmdpal-hairline: rgb(255 255 255 / 12%);
|
|
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 680px;
|
|
max-width: 90vw;
|
|
max-height: min(480px, calc(100vh - var(--cmdpal-top, 24px) - 24px));
|
|
pointer-events: auto;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
background: var(--cmdpal-bg);
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
box-shadow:
|
|
0 20px 60px rgb(0 0 0 / 50%),
|
|
0 4px 16px rgb(0 0 0 / 35%);
|
|
transform-origin: top center;
|
|
color: var(--cmdpal-text);
|
|
animation: vc-cmdpal-in 130ms ease-out;
|
|
}
|
|
|
|
@keyframes vc-cmdpal-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.vc-cmdpal-root-compact {
|
|
max-height: none;
|
|
}
|
|
|
|
.vc-cmdpal-root-form {
|
|
max-height: min(720px, 85vh, calc(100vh - var(--cmdpal-top, 24px) - 24px));
|
|
height: auto;
|
|
}
|
|
|
|
.vc-cmdpal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 56px;
|
|
padding: 0 18px;
|
|
flex-shrink: 0;
|
|
background: var(--cmdpal-bg);
|
|
}
|
|
|
|
.vc-cmdpal-root:not(.vc-cmdpal-root-compact) .vc-cmdpal-header {
|
|
border-bottom: 1px solid var(--cmdpal-hairline);
|
|
}
|
|
|
|
.vc-cmdpal-search-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--cmdpal-text-muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-input {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 17px;
|
|
font-weight: 400;
|
|
font-family: var(--font-primary);
|
|
color: var(--cmdpal-text-bright);
|
|
caret-color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-input::placeholder {
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-back {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
padding: 0;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
border-radius: 7px;
|
|
background: var(--cmdpal-raised);
|
|
color: var(--cmdpal-text);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: color 100ms ease, background 100ms ease;
|
|
}
|
|
|
|
.vc-cmdpal-back:hover {
|
|
background: var(--cmdpal-soft);
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-breadcrumb-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--cmdpal-text);
|
|
}
|
|
|
|
.vc-cmdpal-chip-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 7px;
|
|
background: var(--cmdpal-raised);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-chip-wrap-sm {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.vc-cmdpal-chip-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.vc-cmdpal-body {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--cmdpal-bg);
|
|
}
|
|
|
|
.vc-cmdpal-results {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--cmdpal-soft) transparent;
|
|
}
|
|
|
|
.vc-cmdpal-results::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.vc-cmdpal-results::-webkit-scrollbar-thumb {
|
|
background: var(--cmdpal-soft);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.vc-cmdpal-results::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.vc-cmdpal-section {
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.vc-cmdpal-section-label {
|
|
padding: 10px 10px 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
height: 40px;
|
|
padding: 0 10px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vc-cmdpal-row-selected {
|
|
background: var(--cmdpal-selection);
|
|
}
|
|
|
|
.vc-cmdpal-row-icon {
|
|
width: 15px;
|
|
height: 15px;
|
|
color: var(--cmdpal-text);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-row-selected .vc-cmdpal-row-icon {
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-row-text {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.vc-cmdpal-row-label {
|
|
font-size: 14px;
|
|
font-weight: 450;
|
|
color: var(--cmdpal-text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.vc-cmdpal-row-selected .vc-cmdpal-row-label {
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-row-sublabel {
|
|
font-size: 12.5px;
|
|
color: var(--cmdpal-text-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.vc-cmdpal-row-accessory {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-row-kind {
|
|
font-size: 12px;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-alias-chip {
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-empty {
|
|
padding: 40px 0;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border-top: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-footer-bg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-footer-hint {
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
color: var(--cmdpal-text-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.vc-cmdpal-footer-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-footer-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
color: var(--cmdpal-text);
|
|
}
|
|
|
|
.vc-cmdpal-footer-divider {
|
|
width: 1px;
|
|
height: 14px;
|
|
background: var(--cmdpal-hairline);
|
|
}
|
|
|
|
.vc-cmdpal-shortcut {
|
|
display: inline-flex;
|
|
gap: 3px;
|
|
}
|
|
|
|
.vc-cmdpal-key {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 19px;
|
|
height: 19px;
|
|
padding: 0 5px;
|
|
border-radius: 5px;
|
|
background: var(--cmdpal-soft);
|
|
font-size: 11px;
|
|
font-family: var(--font-primary);
|
|
color: var(--cmdpal-text);
|
|
}
|
|
|
|
.vc-cmdpal-panel {
|
|
position: absolute;
|
|
right: 10px;
|
|
bottom: 10px;
|
|
width: 300px;
|
|
max-height: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-bg-elevated);
|
|
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
|
|
overflow: hidden;
|
|
animation: vc-cmdpal-panel-in 110ms ease-out;
|
|
}
|
|
|
|
@keyframes vc-cmdpal-panel-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(6px) scale(0.98);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.vc-cmdpal-panel-title {
|
|
padding: 12px 14px 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-panel-list {
|
|
overflow-y: auto;
|
|
padding: 0 6px 6px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--cmdpal-soft) transparent;
|
|
}
|
|
|
|
.vc-cmdpal-panel-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 36px;
|
|
padding: 0 8px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vc-cmdpal-panel-row-selected {
|
|
background: var(--cmdpal-selection);
|
|
}
|
|
|
|
.vc-cmdpal-panel-icon {
|
|
width: 13px;
|
|
height: 13px;
|
|
color: var(--cmdpal-text);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-cmdpal-panel-label {
|
|
font-size: 13px;
|
|
font-weight: 450;
|
|
color: var(--cmdpal-text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.vc-cmdpal-panel-row-selected .vc-cmdpal-panel-label {
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-form {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 18px;
|
|
}
|
|
|
|
.vc-cmdpal-root-form .vc-cmdpal-body {
|
|
flex: none;
|
|
min-height: 0;
|
|
}
|
|
|
|
.vc-cmdpal-root-form .vc-cmdpal-form {
|
|
flex: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
.vc-cmdpal-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
}
|
|
|
|
.vc-cmdpal-field-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-field-input,
|
|
.vc-cmdpal-field-textarea {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 9px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
font-size: 14px;
|
|
font-family: var(--font-primary);
|
|
color: var(--cmdpal-text-bright);
|
|
outline: none;
|
|
resize: vertical;
|
|
transition: border-color 100ms ease, background 100ms ease;
|
|
}
|
|
|
|
.vc-cmdpal-field-input:focus,
|
|
.vc-cmdpal-field-textarea:focus {
|
|
border-color: rgb(255 255 255 / 18%);
|
|
background: var(--cmdpal-soft);
|
|
}
|
|
|
|
.vc-cmdpal-field-input::placeholder,
|
|
.vc-cmdpal-field-textarea::placeholder {
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-textarea-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.vc-cmdpal-markdown-preview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vc-cmdpal-markdown-preview-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-markdown-preview-body {
|
|
padding: 10px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-bg-elevated);
|
|
overflow-wrap: break-word;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.vc-cmdpal-message-preview {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.vc-cmdpal-preview-attachments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.vc-cmdpal-preview-image {
|
|
display: block;
|
|
max-width: 100%;
|
|
max-height: 220px;
|
|
border-radius: 8px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.vc-cmdpal-preview-video {
|
|
display: block;
|
|
max-width: 100%;
|
|
max-height: 220px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.vc-cmdpal-preview-file {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
font-size: 13px;
|
|
color: var(--cmdpal-text);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.vc-cmdpal-attachments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vc-cmdpal-attachments-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: fit-content;
|
|
padding: 7px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
font-size: 13px;
|
|
color: var(--cmdpal-text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vc-cmdpal-attachments-input {
|
|
display: none;
|
|
}
|
|
|
|
.vc-cmdpal-attachments-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vc-cmdpal-attachments-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 5px 9px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-bg-elevated);
|
|
font-size: 12px;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-attachments-remove {
|
|
border: none;
|
|
background: transparent;
|
|
padding: 0;
|
|
font-size: 12px;
|
|
color: var(--text-link, var(--brand-500));
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vc-cmdpal-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vc-cmdpal-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 7px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
font-size: 13px;
|
|
font-weight: 450;
|
|
font-family: var(--font-primary);
|
|
color: var(--cmdpal-text);
|
|
cursor: pointer;
|
|
transition: border-color 100ms ease, background 100ms ease, color 100ms ease;
|
|
}
|
|
|
|
.vc-cmdpal-chip:hover {
|
|
background: var(--cmdpal-soft);
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-chip-selected {
|
|
border-color: rgb(255 255 255 / 22%);
|
|
background: var(--cmdpal-selection);
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-chip-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-picker {
|
|
position: relative;
|
|
}
|
|
|
|
.vc-cmdpal-picker-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 9px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-raised);
|
|
transition: border-color 100ms ease, background 100ms ease;
|
|
}
|
|
|
|
.vc-cmdpal-picker-input-focused {
|
|
border-color: rgb(255 255 255 / 18%);
|
|
background: var(--cmdpal-soft);
|
|
}
|
|
|
|
.vc-cmdpal-picker-input-field {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: none;
|
|
background: transparent;
|
|
padding: 0;
|
|
font-size: 14px;
|
|
font-family: var(--font-primary);
|
|
color: var(--cmdpal-text-bright);
|
|
outline: none;
|
|
}
|
|
|
|
.vc-cmdpal-picker-input-field::placeholder {
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-picker-list {
|
|
margin-top: 6px;
|
|
padding: 4px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--cmdpal-hairline);
|
|
background: var(--cmdpal-bg-elevated);
|
|
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
|
|
max-height: 180px;
|
|
min-height: 0;
|
|
overflow: hidden auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--cmdpal-soft) transparent;
|
|
animation: vc-cmdpal-panel-in 110ms ease-out;
|
|
}
|
|
|
|
.vc-cmdpal-picker-list::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.vc-cmdpal-picker-list::-webkit-scrollbar-thumb {
|
|
background: var(--cmdpal-soft);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.vc-cmdpal-picker-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
height: 34px;
|
|
flex-shrink: 0;
|
|
padding: 0 8px;
|
|
border-radius: 7px;
|
|
font-size: 13px;
|
|
color: var(--cmdpal-text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vc-cmdpal-picker-item-selected {
|
|
background: var(--cmdpal-selection);
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-picker-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-form-error {
|
|
padding: 9px 11px;
|
|
border-radius: 9px;
|
|
border: 1px solid color-mix(in srgb, var(--text-danger) 30%, transparent);
|
|
background: color-mix(in srgb, var(--text-danger) 8%, transparent);
|
|
font-size: 13px;
|
|
color: var(--text-danger);
|
|
}
|
|
|
|
.vc-cmdpal-detail {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 22px;
|
|
}
|
|
|
|
.vc-cmdpal-detail-heading {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-detail-body {
|
|
font-size: 14px;
|
|
color: var(--cmdpal-text);
|
|
}
|
|
|
|
.vc-cmdpal-detail-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.vc-cmdpal-detail-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 9px 0;
|
|
border-bottom: 1px solid var(--cmdpal-hairline);
|
|
}
|
|
|
|
.vc-cmdpal-detail-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.vc-cmdpal-detail-row-label {
|
|
font-size: 13px;
|
|
color: var(--cmdpal-text-muted);
|
|
}
|
|
|
|
.vc-cmdpal-detail-row-value {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--cmdpal-text-bright);
|
|
}
|
|
|
|
.vc-cmdpal-hotkey-setting {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.vc-cmdpal-backdrop,
|
|
.vc-cmdpal-root,
|
|
.vc-cmdpal-panel,
|
|
.vc-cmdpal-picker-list {
|
|
animation: none;
|
|
}
|
|
}
|