feat: global block library tree + grouping tool — 19 files, 588 tests green
This commit is contained in:
@@ -2270,3 +2270,145 @@ body.drawer-open { overflow: hidden; }
|
||||
.export-format-cancel:hover {
|
||||
background: var(--color-surface-2, #2a2a3e);
|
||||
}
|
||||
|
||||
/* ─── Global Block Library Tree ────────────────────────── */
|
||||
.global-lib-tree {
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.global-lib-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 12px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.global-lib-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.global-lib-add-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-faint);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.global-lib-add-btn:hover {
|
||||
background: var(--color-bg-hover);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.global-lib-loading {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.global-lib-empty {
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.tree-global .tree-item {
|
||||
padding: 3px 8px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 12px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.tree-global .tree-item:hover {
|
||||
background: var(--color-bg-hover);
|
||||
}
|
||||
|
||||
.tree-global .tree-item.drag-over {
|
||||
background: var(--color-accent-dim);
|
||||
outline: 1px dashed var(--color-accent);
|
||||
}
|
||||
|
||||
.tree-global .tree-item-leaf {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.tree-global .tree-item-leaf:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.tree-rename-input {
|
||||
background: var(--color-bg-secondary);
|
||||
border: 1px solid var(--color-accent);
|
||||
color: var(--color-text);
|
||||
font-size: 12px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ─── Context Menu ─────────────────────────────────────── */
|
||||
.context-menu {
|
||||
background: var(--color-bg-secondary);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
padding: 4px;
|
||||
min-width: 160px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.context-menu-item {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text);
|
||||
padding: 8px 12px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.context-menu-item:hover {
|
||||
background: var(--color-bg-hover);
|
||||
}
|
||||
|
||||
.context-menu-item.danger:hover {
|
||||
background: rgba(220, 53, 69, 0.15);
|
||||
color: #dc3545;
|
||||
}
|
||||
|
||||
/* ─── Group Section in LeftSidebar ─────────────────────── */
|
||||
.tool-section .tool-btn[title*="Gruppieren"] {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tool-section .tool-btn[title*="Gruppieren"]::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
right: 2px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-accent);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user