Merge W0-commands (Refs #39 #49 #34)

# Conflicts:
#	craft/src/styles/editor.css
This commit is contained in:
shadowdao committed 2026-10-07 11:20:25 -07:00
commit ae871c9cdc
11 files changed
+1004

No files matched your search

+43
View File
@@ -2100,3 +2100,46 @@ body {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* W0-commands: topbar command menu */
.topbar-command-menu { position: relative; display: inline-flex; }
.topbar-command-btn {
background: transparent;
border: 1px solid transparent;
color: inherit;
border-radius: var(--radius-lg);
padding: 4px 10px;
cursor: pointer;
}
.topbar-command-btn:hover, .topbar-command-btn[aria-expanded="true"] { border-color: var(--color-border); }
.topbar-command-dropdown {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: var(--z-overflow, 1000);
min-width: 240px;
background: var(--color-bg-elevated);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
padding: 6px;
display: flex;
flex-direction: column;
gap: 2px;
}
.topbar-command-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
background: transparent;
border: 0;
color: inherit;
text-align: left;
padding: 8px 10px;
border-radius: var(--radius-md, 6px);
cursor: pointer;
}
.topbar-command-item:hover:not(:disabled) { background: var(--color-bg-hover); }
.topbar-command-item:disabled { opacity: 0.45; cursor: default; }
.topbar-command-shortcut { font-size: 12px; opacity: 0.6; }
.topbar-command-empty { padding: 8px 10px; font-size: 12px; opacity: 0.6; }