Merge issue-49 (Refs #49)

# Conflicts:
#	craft/src/styles/editor.css
This commit is contained in:
shadowdao committed 2026-10-07 12:06:59 -07:00
commit 1eaf8e39fb
6 files changed
+628

No files matched your search

+88
View File
@@ -2810,3 +2810,91 @@ body {
border: 0;
cursor: pointer;
}
/* #49 palette */
.wsb-palette {
width: 100%;
background: var(--color-surface, #1e1e24);
color: var(--color-text);
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
border-radius: var(--radius-md);
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.wsb-palette-input {
width: 100%;
box-sizing: border-box;
padding: 14px 16px;
font: inherit;
font-size: 15px;
color: inherit;
background: transparent;
border: 0;
border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
outline: none;
}
.wsb-palette-list {
max-height: 340px;
margin: 0;
padding: 4px;
overflow-y: auto;
list-style: none;
}
.wsb-palette-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
font-size: 13px;
border-radius: var(--radius-sm, 4px);
cursor: pointer;
}
.wsb-palette-item.is-active {
background: var(--color-accent-subtle);
}
.wsb-palette-group {
flex: 0 0 84px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
opacity: 0.6;
}
.wsb-palette-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wsb-palette-sub {
font-size: 11px;
opacity: 0.6;
}
.wsb-palette-kbd {
font: inherit;
font-size: 11px;
padding: 1px 6px;
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.2));
border-radius: 4px;
}
.wsb-palette-empty {
padding: 12px;
font-size: 13px;
opacity: 0.6;
}
.wsb-palette-tip {
padding: 8px 14px;
font-size: 11px;
opacity: 0.7;
border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
}