task(F2-frontend): library search, favorites section, star toggle, svg thumbnails, grid view
This commit is contained in:
@@ -2456,6 +2456,130 @@ body.drawer-open { overflow: hidden; }
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ─── Task F2: Suche, Favoriten, Thumbnail-Grid ────────── */
|
||||
.global-lib-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 0 12px 6px;
|
||||
}
|
||||
|
||||
.global-lib-search {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: var(--color-bg-secondary);
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text);
|
||||
font-size: 11px;
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.global-lib-search:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.lib-fav-section {
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
padding-bottom: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.lib-fav-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #d9a441;
|
||||
padding: 2px 8px;
|
||||
}
|
||||
|
||||
.tree-fav-btn {
|
||||
margin-left: auto;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-faint);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
padding: 0 4px;
|
||||
line-height: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tree-fav-btn:hover { color: var(--color-text); }
|
||||
|
||||
.tree-fav-btn.active { color: #d9a441; }
|
||||
|
||||
.tree-thumb {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tree-thumb svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.lib-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
|
||||
gap: 6px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.lib-grid-cell {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 6px 4px 4px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 4px;
|
||||
cursor: grab;
|
||||
background: var(--color-bg-secondary);
|
||||
}
|
||||
|
||||
.lib-grid-cell:hover {
|
||||
border-color: var(--color-accent);
|
||||
background: var(--color-bg-hover);
|
||||
}
|
||||
|
||||
.lib-grid-cell:active { cursor: grabbing; }
|
||||
|
||||
.lib-grid-thumb {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.lib-grid-thumb .tree-thumb {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.lib-grid-placeholder { font-size: 20px; }
|
||||
|
||||
.lib-grid-name {
|
||||
font-size: 10px;
|
||||
color: var(--color-text);
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.lib-grid-cell .tree-fav-btn {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
/* ─── Context Menu ─────────────────────────────────────── */
|
||||
.context-menu {
|
||||
background: var(--color-bg-secondary);
|
||||
|
||||
Reference in New Issue
Block a user