Add folders
This commit is contained in:
@@ -104,6 +104,44 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Gallery Header */
|
||||
.gallery-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.breadcrumb-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.breadcrumb-nav a {
|
||||
color: var(--accent-primary);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.breadcrumb-nav a:hover {
|
||||
color: var(--accent-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.item-count {
|
||||
color: var(--text-secondary);
|
||||
font-weight: normal;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* Gallery Grid Layout */
|
||||
.gallery-grid {
|
||||
display: grid;
|
||||
@@ -126,6 +164,66 @@
|
||||
border-color: var(--border-secondary);
|
||||
}
|
||||
|
||||
/* Folder Items */
|
||||
.folder-item {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
min-height: 200px;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.folder-item:hover {
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.folder-icon {
|
||||
color: var(--accent-primary);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.folder-name {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.folder-actions {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.folder-item:hover .folder-actions {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.btn-action {
|
||||
background: transparent;
|
||||
color: var(--accent-primary);
|
||||
border: 1px solid var(--accent-primary);
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.btn-action:hover {
|
||||
background: var(--accent-primary);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.gallery-item img {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
@@ -323,6 +421,145 @@
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Selection UI */
|
||||
.selection-checkbox {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
z-index: 10;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.media-item:hover .selection-checkbox,
|
||||
.media-item.selected .selection-checkbox {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.media-select {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
accent-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.media-item.selected {
|
||||
border: 2px solid var(--accent-primary);
|
||||
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
|
||||
}
|
||||
|
||||
.media-item.selected img {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Selection Action Bar */
|
||||
.selection-bar {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: 8px;
|
||||
padding: 12px 20px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
.selection-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.selection-info span {
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.selection-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--accent-primary);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
padding: 4px 8px;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-link:hover {
|
||||
color: var(--accent-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Drag and Drop */
|
||||
.media-item.dragging {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.folder-item.drop-target {
|
||||
background: var(--accent-primary);
|
||||
border-color: var(--accent-primary);
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
.folder-item.drop-target .folder-icon {
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.folder-item.drop-target .folder-name {
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.drag-preview {
|
||||
background: var(--accent-primary);
|
||||
color: var(--bg-primary);
|
||||
padding: 8px 16px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Context Menu */
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
||||
z-index: 1000;
|
||||
min-width: 150px;
|
||||
padding: 4px 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.context-menu-item {
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.context-menu-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.context-menu-divider {
|
||||
height: 1px;
|
||||
background: var(--border-primary);
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
.gallery-grid {
|
||||
|
||||
Reference in New Issue
Block a user