style: apply biome CSS/JS format

This commit is contained in:
Edouard Vanbelle
2026-04-07 22:48:59 +02:00
parent 786a778546
commit 1ce29c101d
86 changed files with 18032 additions and 15166 deletions
+33 -31
View File
@@ -1,24 +1,26 @@
/* Breadcrumb */
.breadcrumb {
display: flex;
align-items: center;
flex-wrap: wrap;
margin-bottom: 15px;
font-size: 14px;
color: #666;
gap: 2px;
display: flex;
align-items: center;
flex-wrap: wrap;
margin-bottom: 15px;
font-size: 14px;
color: #666;
gap: 2px;
}
.breadcrumb-item {
padding: 2px 4px;
border-radius: 4px;
border: 2px solid transparent;
transition: background 0.15s, color 0.15s;
padding: 2px 4px;
border-radius: 4px;
border: 2px solid transparent;
transition:
background 0.15s,
color 0.15s;
}
.breadcrumb-link {
cursor: pointer;
color: #5a6f8a;
cursor: pointer;
color: #5a6f8a;
}
.breadcrumb-link.drop-target {
@@ -27,37 +29,37 @@
}
.breadcrumb-link:hover {
text-decoration: underline;
color: #ff5e3a;
background: rgba(255, 94, 58, 0.06);
text-decoration: underline;
color: #ff5e3a;
background: rgba(255, 94, 58, 0.06);
}
.breadcrumb-current {
font-weight: 600;
color: #333;
cursor: default;
font-weight: 600;
color: #333;
cursor: default;
}
.breadcrumb-separator {
margin: 0 4px;
color: #adb5bd;
font-size: 12px;
user-select: none;
margin: 0 4px;
color: #adb5bd;
font-size: 12px;
user-select: none;
}
.breadcrumb-home {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 4px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 4px;
}
.breadcrumb-home i {
font-size: 12px;
font-size: 12px;
}
.breadcrumb-home.breadcrumb-link:hover {
background: rgba(255, 94, 58, 0.1);
background: rgba(255, 94, 58, 0.1);
}
+59 -59
View File
@@ -1,107 +1,107 @@
.btn {
padding: 12px 24px;
border-radius: 12px;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
gap: 8px;
transition: all 0.2s ease;
padding: 12px 24px;
border-radius: 12px;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
gap: 8px;
transition: all 0.2s ease;
}
.btn i {
font-size: 15px;
font-size: 15px;
}
.btn-primary {
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
}
.btn-primary:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(255, 94, 58, 0.3);
transform: translateY(0);
box-shadow: 0 2px 10px rgba(255, 94, 58, 0.3);
}
.btn-secondary {
background-color: #f8fafc;
color: #4a5568;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.btn-secondary:hover {
background-color: #edf2f7;
border-color: #cbd5e0;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
background-color: #edf2f7;
border-color: #cbd5e0;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-secondary:active {
transform: translateY(0);
background-color: #e2e8f0;
transform: translateY(0);
background-color: #e2e8f0;
}
.btn-danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-danger:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
transform: translateY(0);
box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}
/* View Toggle Buttons */
.view-toggle {
display: flex;
gap: 2px;
padding: 3px;
background-color: #f0f3f7;
border-radius: 10px;
border: 1px solid #e2e8f0;
display: flex;
gap: 2px;
padding: 3px;
background-color: #f0f3f7;
border-radius: 10px;
border: 1px solid #e2e8f0;
}
.toggle-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 32px;
background-color: transparent;
border: none;
border-radius: 8px;
cursor: pointer;
color: #94a3b8;
font-size: 14px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 32px;
background-color: transparent;
border: none;
border-radius: 8px;
cursor: pointer;
color: #94a3b8;
font-size: 14px;
transition: all 0.2s ease;
}
.toggle-btn:hover {
background-color: #e2e8f0;
color: #64748b;
background-color: #e2e8f0;
color: #64748b;
}
.toggle-btn.active {
background-color: white;
color: #ff5e3a;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
background-color: white;
color: #ff5e3a;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.toggle-btn i {
pointer-events: none;
pointer-events: none;
}
File diff suppressed because it is too large Load Diff
+45 -43
View File
@@ -1,74 +1,76 @@
/* Context menu */
.context-menu {
position: absolute;
background: white;
border: 1px solid #e2e8f0;
border-radius: 14px;
box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
padding: 6px;
min-width: 200px;
z-index: 2000;
display: none;
animation: contextMenuIn 0.15s ease-out;
position: absolute;
background: white;
border: 1px solid #e2e8f0;
border-radius: 14px;
box-shadow:
0 10px 36px rgba(0, 0, 0, 0.12),
0 0 0 1px rgba(0, 0, 0, 0.04);
padding: 6px;
min-width: 200px;
z-index: 2000;
display: none;
animation: contextMenuIn 0.15s ease-out;
}
@keyframes contextMenuIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.context-menu-item {
padding: 10px 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
color: #334155;
font-size: 14px;
border-radius: 8px;
transition: background 0.12s ease;
padding: 10px 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
color: #334155;
font-size: 14px;
border-radius: 8px;
transition: background 0.12s ease;
}
.context-menu-item:hover {
background: #f1f5f9;
background: #f1f5f9;
}
.context-menu-item:active {
background: #e2e8f0;
background: #e2e8f0;
}
.context-menu-item i {
width: 18px;
text-align: center;
font-size: 14px;
color: #64748b;
width: 18px;
text-align: center;
font-size: 14px;
color: #64748b;
[dir='rtl'] & {
margin-left: 0;
margin-right: 0;
}
[dir="rtl"] & {
margin-left: 0;
margin-right: 0;
}
}
.context-menu-item-danger {
color: #ef4444;
color: #ef4444;
}
.context-menu-item-danger:hover {
background: #fef2f2;
background: #fef2f2;
}
.context-menu-item-danger i {
color: #ef4444;
color: #ef4444;
}
.context-menu-separator {
height: 1px;
background: #f1f5f9;
margin: 4px 8px;
height: 1px;
background: #f1f5f9;
margin: 4px 8px;
}
+152 -90
View File
@@ -2,149 +2,211 @@
/* ── Empty state icons (large, muted) ── */
.empty-state-icon {
font-size: 48px;
color: #ddd;
margin-bottom: 16px;
font-size: 48px;
color: #ddd;
margin-bottom: 16px;
}
.empty-state-icon.error {
color: #f44336;
color: #f44336;
}
.empty-state-icon.spinner {
color: #666;
color: #666;
}
/* ── Dialog header icons (accent color) ── */
.dialog-header-icon {
color: #ff5e3a;
color: #ff5e3a;
}
/* ── Icon spacing ── */
.icon-mr { margin-right: 5px; }
.icon-ml { margin-left: 4px; font-size: 12px; }
.icon-mr {
margin-right: 5px;
}
.icon-ml {
margin-left: 4px;
font-size: 12px;
}
/* ── Success check icon ── */
.check-icon { color: #48bb78; }
.check-icon {
color: #48bb78;
}
/* ── Move dialog ── */
.move-dialog-hint {
margin: 0 0 12px;
color: #718096;
font-size: 14px;
margin: 0 0 12px;
color: #718096;
font-size: 14px;
}
.folder-select-container {
max-height: 220px;
overflow-y: auto;
max-height: 220px;
overflow-y: auto;
}
/* ── Share dialog sections ── */
.share-section {
margin: 15px 0;
margin: 15px 0;
}
/* ── Search spinner ── */
.search-spinner {
margin-right: 8px;
margin-right: 8px;
}
/* ── Search empty state text ── */
.search-empty-text {
color: var(--text-secondary, #64748b);
color: var(--text-secondary, #64748b);
}
/* ── Notification upload current file ── */
.notif-upload-current {
font-size: 11px;
color: #64748b;
margin: 3px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 11px;
color: #64748b;
margin: 3px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── Login auth hint ── */
.auth-hint {
color: var(--text-secondary, #666);
margin-top: 4px;
display: block;
color: var(--text-secondary, #666);
margin-top: 4px;
display: block;
}
/* ── About modal (userMenu.js profile popup) ── */
.about-modal-body { max-width: 380px; }
.about-modal-header { text-align: center; padding: 20px 20px 0; }
.about-modal-body {
max-width: 380px;
}
.about-modal-header {
text-align: center;
padding: 20px 20px 0;
}
.about-modal-avatar {
width: 64px;
height: 64px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 700;
margin-bottom: 12px;
width: 64px;
height: 64px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 700;
margin-bottom: 12px;
}
.about-modal-username {
margin: 0;
font-size: 18px;
color: #1a1a2e;
}
.about-modal-email {
margin: 4px 0 0;
font-size: 13px;
color: #64748b;
}
.about-modal-username { margin: 0; font-size: 18px; color: #1a1a2e; }
.about-modal-email { margin: 4px 0 0; font-size: 13px; color: #64748b; }
.about-modal-role {
display: inline-block;
margin-top: 8px;
padding: 2px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
display: inline-block;
margin-top: 8px;
padding: 2px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
}
.about-modal-role-admin {
background: #dbeafe;
color: #1d4ed8;
}
.about-modal-role-user {
background: #f1f5f9;
color: #64748b;
}
.about-modal-storage {
padding: 16px 20px;
}
.about-modal-role-admin { background: #dbeafe; color: #1d4ed8; }
.about-modal-role-user { background: #f1f5f9; color: #64748b; }
.about-modal-storage { padding: 16px 20px; }
.about-modal-storage-label {
font-size: 12px;
color: #64748b;
text-transform: uppercase;
letter-spacing: .05em;
margin-bottom: 6px;
font-size: 12px;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 6px;
}
.about-modal-storage-label i {
margin-right: 4px;
}
.about-modal-storage-label i { margin-right: 4px; }
.about-modal-bar-bg {
background: #f1f5f9;
border-radius: 6px;
height: 8px;
overflow: hidden;
margin-bottom: 4px;
background: #f1f5f9;
border-radius: 6px;
height: 8px;
overflow: hidden;
margin-bottom: 4px;
}
.about-modal-bar-fill {
height: 100%;
border-radius: 6px;
transition: width .3s;
height: 100%;
border-radius: 6px;
transition: width 0.3s;
}
.about-modal-bar-text {
font-size: 12px;
color: #64748b;
text-align: right;
}
.about-modal-footer {
padding: 0 20px 16px;
display: flex;
justify-content: center;
}
.about-modal-bar-text { font-size: 12px; color: #64748b; text-align: right; }
.about-modal-footer { padding: 0 20px 16px; display: flex; justify-content: center; }
.about-modal-close-btn {
padding: 8px 24px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
color: #334155;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background .15s;
padding: 8px 24px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
color: #334155;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s;
}
/* ── Dark theme overrides ── */
[data-theme="dark"] .empty-state-icon { color: #475569; }
[data-theme="dark"] .empty-state-icon.error { color: #ef4444; }
[data-theme="dark"] .about-modal-username { color: #f1f5f9; }
[data-theme="dark"] .about-modal-email { color: #94a3b8; }
[data-theme="dark"] .about-modal-role-admin { background: #1e3a5f; color: #60a5fa; }
[data-theme="dark"] .about-modal-role-user { background: #334155; color: #94a3b8; }
[data-theme="dark"] .about-modal-storage-label { color: #94a3b8; }
[data-theme="dark"] .about-modal-bar-bg { background: #334155; }
[data-theme="dark"] .about-modal-bar-text { color: #94a3b8; }
[data-theme="dark"] .about-modal-close-btn {
background: #1e293b;
border-color: #334155;
color: #cbd5e1;
[data-theme="dark"] .empty-state-icon {
color: #475569;
}
[data-theme="dark"] .empty-state-icon.error {
color: #ef4444;
}
[data-theme="dark"] .about-modal-username {
color: #f1f5f9;
}
[data-theme="dark"] .about-modal-email {
color: #94a3b8;
}
[data-theme="dark"] .about-modal-role-admin {
background: #1e3a5f;
color: #60a5fa;
}
[data-theme="dark"] .about-modal-role-user {
background: #334155;
color: #94a3b8;
}
[data-theme="dark"] .about-modal-storage-label {
color: #94a3b8;
}
[data-theme="dark"] .about-modal-bar-bg {
background: #334155;
}
[data-theme="dark"] .about-modal-bar-text {
color: #94a3b8;
}
[data-theme="dark"] .about-modal-close-btn {
background: #1e293b;
border-color: #334155;
color: #cbd5e1;
}
[data-theme="dark"] .move-dialog-hint {
color: #94a3b8;
}
[data-theme="dark"] .search-empty-text {
color: #94a3b8;
}
[data-theme="dark"] .move-dialog-hint { color: #94a3b8; }
[data-theme="dark"] .search-empty-text { color: #94a3b8; }
File diff suppressed because it is too large Load Diff
+179 -181
View File
@@ -1,369 +1,369 @@
/* File list - Improved style */
.files-list-view {
--files-list-columns: 36px minmax(200px, 2fr) 100px 110px 130px 64px;
display: flex;
flex-direction: column;
width: 100%;
border-radius: 10px;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
--files-list-columns: 36px minmax(200px, 2fr) 100px 110px 130px 64px;
display: flex;
flex-direction: column;
width: 100%;
border-radius: 10px;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.list-header {
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
padding: 15px;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
align-items: center;
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
padding: 15px;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
align-items: center;
}
.files-list-view .file-item {
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
padding: 12px 15px;
border-bottom: 1px solid #f0f0f0;
align-items: center;
cursor: pointer;
background-color: white;
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
padding: 12px 15px;
border-bottom: 1px solid #f0f0f0;
align-items: center;
cursor: pointer;
background-color: white;
}
.files-list-view .file-item.selected {
background-color: #fff8f6;
background-color: #fff8f6;
}
.files-list-view .file-item.selected:hover {
background-color: #fff0ec;
background-color: #fff0ec;
}
.list-header.trash-header {
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
}
.trash-item.file-item {
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
}
.files-list-view .file-item:hover {
background-color: #f0f8ff;
background-color: #f0f8ff;
}
.list-header > div,
.files-list-view .file-item > div {
min-width: 0;
min-width: 0;
}
.list-header > div:nth-child(4),
.files-list-view .file-item .size-cell {
justify-self: end;
text-align: right;
justify-self: end;
text-align: right;
}
.files-list-view .file-item .name-cell {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
overflow: hidden;
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
overflow: hidden;
}
.files-list-view .file-item .name-cell span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.files-list-view .file-item .file-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
font-size: 20px;
margin-bottom: 0;
flex-shrink: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
font-size: 20px;
margin-bottom: 0;
flex-shrink: 0;
}
.files-list-view .file-item .file-icon.folder-icon {
background-color: #ffeaa7;
position: relative;
width: 36px;
height: 36px;
margin-bottom: 0;
background-color: #ffeaa7;
position: relative;
width: 36px;
height: 36px;
margin-bottom: 0;
}
.files-list-view .file-item .file-icon.folder-icon::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 8px;
background-color: #fdcb6e;
border-radius: 8px 8px 0 0;
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 8px;
background-color: #fdcb6e;
border-radius: 8px 8px 0 0;
}
.files-list-view .file-item .file-icon.folder-icon i,
.files-list-view .file-item .file-icon.folder-icon svg {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.doc-icon {
background-color: #e0ecff;
background-color: #e0ecff;
}
.files-list-view .file-item .file-icon.doc-icon i,
.files-list-view .file-item .file-icon.doc-icon svg {
color: #3171d8;
display: flex !important;
color: #3171d8;
display: flex !important;
}
.files-list-view .file-item .file-icon.doc-icon::before,
.files-list-view .file-item .file-icon.doc-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.pdf-icon {
background-color: #fee2e2;
background-color: #fee2e2;
}
.files-list-view .file-item .file-icon.pdf-icon i,
.files-list-view .file-item .file-icon.pdf-icon svg {
color: #e53e3e;
display: flex !important;
color: #e53e3e;
display: flex !important;
}
.files-list-view .file-item .file-icon.pdf-icon::before,
.files-list-view .file-item .file-icon.pdf-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.image-icon {
background-color: #e0f2fe;
position: relative;
overflow: hidden;
border-radius: 4px;
background-color: #e0f2fe;
position: relative;
overflow: hidden;
border-radius: 4px;
}
.files-list-view .file-item .file-icon.image-icon i,
.files-list-view .file-item .file-icon.image-icon svg {
color: #3b82f6;
display: flex !important;
color: #3b82f6;
display: flex !important;
}
.files-list-view .file-item .file-icon.image-icon::before,
.files-list-view .file-item .file-icon.image-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.video-icon {
background: linear-gradient(135deg, #ede9fe, #fce7f3);
background: linear-gradient(135deg, #ede9fe, #fce7f3);
}
.files-list-view .file-item .file-icon.video-icon i,
.files-list-view .file-item .file-icon.video-icon svg {
color: #8b5cf6;
display: flex !important;
color: #8b5cf6;
display: flex !important;
}
.files-list-view .file-item .file-icon.video-icon::before,
.files-list-view .file-item .file-icon.video-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.audio-icon {
background-color: #fef3c7;
background-color: #fef3c7;
}
.files-list-view .file-item .file-icon.audio-icon i,
.files-list-view .file-item .file-icon.audio-icon svg {
color: #f59e0b;
display: flex !important;
color: #f59e0b;
display: flex !important;
}
.files-list-view .file-item .file-icon.audio-icon::before,
.files-list-view .file-item .file-icon.audio-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.spreadsheet-icon {
background-color: #e6f4ea;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
background-color: #e6f4ea;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
}
.files-list-view .file-item .file-icon.spreadsheet-icon i,
.files-list-view .file-item .file-icon.spreadsheet-icon svg {
color: #0d904f;
display: flex !important;
color: #0d904f;
display: flex !important;
}
.files-list-view .file-item .file-icon.spreadsheet-icon::before,
.files-list-view .file-item .file-icon.spreadsheet-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.presentation-icon {
background-color: #fef3e2;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
background-color: #fef3e2;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
}
.files-list-view .file-item .file-icon.presentation-icon i,
.files-list-view .file-item .file-icon.presentation-icon svg {
color: #d04423;
display: flex !important;
color: #d04423;
display: flex !important;
}
.files-list-view .file-item .file-icon.presentation-icon::before,
.files-list-view .file-item .file-icon.presentation-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.audio-icon {
background-color: #fff3e0;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
background-color: #fff3e0;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
}
.files-list-view .file-item .file-icon.archive-icon {
background-color: #f5f0eb;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
background-color: #f5f0eb;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
}
.files-list-view .file-item .file-icon.archive-icon i,
.files-list-view .file-item .file-icon.archive-icon svg {
color: #8d6e63;
display: flex !important;
color: #8d6e63;
display: flex !important;
}
.files-list-view .file-item .file-icon.archive-icon::before,
.files-list-view .file-item .file-icon.archive-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.installer-icon {
background-color: #f3e8ff;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
background-color: #f3e8ff;
width: 36px;
height: 36px;
margin-bottom: 0;
border-top: none;
}
.files-list-view .file-item .file-icon.installer-icon i,
.files-list-view .file-item .file-icon.installer-icon svg {
color: #7c3aed;
display: flex !important;
color: #7c3aed;
display: flex !important;
}
.files-list-view .file-item .file-icon.installer-icon::before,
.files-list-view .file-item .file-icon.installer-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.script-icon {
background-color: #e8f5e9;
background-color: #e8f5e9;
}
.files-list-view .file-item .file-icon.script-icon i,
.files-list-view .file-item .file-icon.script-icon svg {
color: #4eaa25;
display: flex !important;
color: #4eaa25;
display: flex !important;
}
.files-list-view .file-item .file-icon.script-icon::before,
.files-list-view .file-item .file-icon.script-icon::after {
display: none;
display: none;
}
.files-list-view .file-item .file-icon.config-icon {
background-color: #f1f3f5;
background-color: #f1f3f5;
}
.files-list-view .file-item .file-icon.config-icon i,
.files-list-view .file-item .file-icon.config-icon svg {
color: #718096;
display: flex !important;
color: #718096;
display: flex !important;
}
.files-list-view .file-item .file-icon.config-icon::before,
.files-list-view .file-item .file-icon.config-icon::after {
display: none;
display: none;
}
.list-header > div:nth-child(5),
.files-list-view .file-item .date-cell {
justify-self: center;
text-align: center;
justify-self: center;
text-align: center;
}
.files-list-view .file-item .date-cell {
color: #718096;
font-size: 14px;
color: #718096;
font-size: 14px;
}
.files-list-view .file-item .size-cell {
color: #718096;
font-size: 14px;
text-align: right;
font-variant-numeric: tabular-nums;
color: #718096;
font-size: 14px;
text-align: right;
font-variant-numeric: tabular-nums;
}
.files-list-view .file-item .type-cell {
color: #4b5563;
font-weight: 500;
font-size: 14px;
color: #4b5563;
font-weight: 500;
font-size: 14px;
}
.files-list-view .file-item.dragging {
opacity: 0.5;
background-color: #f9fafb;
opacity: 0.5;
background-color: #f9fafb;
}
.files-list-view .file-item.drop-target {
background-color: rgba(255, 193, 7, 0.1);
border: 2px dashed #ffc107;
background-color: rgba(255, 193, 7, 0.1);
border: 2px dashed #ffc107;
}
.files-list-view .file-item .action-cell {
align-items: center;
align-items: center;
text-align: right;
}
.files-list-view .file-item .action-cell button {
display: inline;
width: 28px;
height: 28px;
border-radius: 8px;
border: none;
background: transparent;
align-items: center;
justify-content: center;
cursor: pointer;
color: #64748b;
font-size: 16px;
width: 28px;
height: 28px;
border-radius: 8px;
border: none;
background: transparent;
align-items: center;
justify-content: center;
cursor: pointer;
color: #64748b;
font-size: 16px;
}
.files-list-view .file-item .action-cell button:hover {
background: #e0e5e8;
color: #334155;
background: #e0e5e8;
color: #334155;
}
/* could be visible if we want */
/* could be visible if we want */
.files-list-view .file-item .action-cell button.favorite-star {
display: none;
border: none;
@@ -373,62 +373,60 @@
display: inline;
}
[data-theme="dark"] .files-list-view {
background-color: #1e293b;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
background-color: #1e293b;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .list-header {
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
}
[data-theme="dark"] .files-list-view .file-item {
background-color: #1e293b;
border-bottom-color: #293548;
background-color: #1e293b;
border-bottom-color: #293548;
}
[data-theme="dark"] .files-list-view .file-item:hover {
background-color: #253345;
background-color: #253345;
}
[data-theme="dark"] .files-list-view .file-item.selected {
background-color: #1a1520;
background-color: #1a1520;
}
[data-theme="dark"] .files-list-view .file-item.selected:hover {
background-color: #231a2a;
background-color: #231a2a;
}
[data-theme="dark"] .files-list-view .file-item .name-cell {
color: #e2e8f0;
color: #e2e8f0;
}
[data-theme="dark"] .files-list-view .file-item .date-cell,
[data-theme="dark"] .files-list-view .file-item .size-cell {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .files-list-view .file-item .type-cell {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .files-list-view .file-item.dragging {
background-color: #334155;
background-color: #334155;
}
[data-theme="dark"] .files-list-view .file-item.drop-target {
background-color: rgba(255, 193, 7, 0.05);
background-color: rgba(255, 193, 7, 0.05);
}
[data-theme="dark"] .files-list-view .file-actions {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .files-list-view .file-actions:hover {
background: #334155;
color: #e2e8f0;
background: #334155;
color: #e2e8f0;
}
+14 -10
View File
@@ -1,19 +1,23 @@
/* SVG icon base styles (replaces inline <style> from icons.js) */
.oxi-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: -0.125em;
fill: currentColor;
overflow: hidden;
flex-shrink: 0;
display: inline-block;
width: 1em;
height: 1em;
vertical-align: -0.125em;
fill: currentColor;
overflow: hidden;
flex-shrink: 0;
}
.oxi-icon-spin {
animation: oxi-spin 1s linear infinite;
animation: oxi-spin 1s linear infinite;
}
@keyframes oxi-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
+81 -81
View File
@@ -1,162 +1,162 @@
/* Language Selector - Custom Dropdown */
.language-selector {
position: relative;
margin-right: 15px;
position: relative;
margin-right: 15px;
}
.language-selector-toggle {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background-color: #f0f3f7;
border: 1px solid #e2e8f0;
border-radius: 50px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #4a5568;
transition: all 0.2s ease;
user-select: none;
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background-color: #f0f3f7;
border: 1px solid #e2e8f0;
border-radius: 50px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #4a5568;
transition: all 0.2s ease;
user-select: none;
}
.language-selector-toggle:hover {
background-color: #e2e8f0;
border-color: #cbd5e0;
background-color: #e2e8f0;
border-color: #cbd5e0;
}
.language-selector-toggle i {
font-size: 14px;
color: #718096;
font-size: 14px;
color: #718096;
}
.language-selector-toggle .lang-code {
font-weight: 600;
color: #2d3748;
font-weight: 600;
color: #2d3748;
}
.language-selector-toggle .dropdown-arrow {
font-size: 10px;
color: #718096;
transition: transform 0.2s ease;
margin-left: 2px;
font-size: 10px;
color: #718096;
transition: transform 0.2s ease;
margin-left: 2px;
}
.language-selector.open .dropdown-arrow {
transform: rotate(180deg);
transform: rotate(180deg);
}
.language-selector-dropdown {
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 160px;
max-height: 420px;
overflow-y: auto;
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
border: 1px solid #e2e8f0;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.2s ease;
z-index: 1000;
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 160px;
max-height: 420px;
overflow-y: auto;
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
border: 1px solid #e2e8f0;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.2s ease;
z-index: 1000;
}
/* Custom scrollbar */
.language-selector-dropdown::-webkit-scrollbar {
width: 6px;
width: 6px;
}
.language-selector-dropdown::-webkit-scrollbar-track {
background: transparent;
margin: 8px 0;
background: transparent;
margin: 8px 0;
}
.language-selector-dropdown::-webkit-scrollbar-thumb {
background-color: #cbd5e0;
border-radius: 3px;
background-color: #cbd5e0;
border-radius: 3px;
}
.language-selector-dropdown::-webkit-scrollbar-thumb:hover {
background-color: #a0aec0;
background-color: #a0aec0;
}
.language-selector.open .language-selector-dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.language-option {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
cursor: pointer;
font-size: 14px;
color: #4a5568;
transition: background-color 0.15s ease;
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
cursor: pointer;
font-size: 14px;
color: #4a5568;
transition: background-color 0.15s ease;
}
.language-option:hover {
background-color: #f7fafc;
background-color: #f7fafc;
}
.language-option.active {
background-color: #fff5f3;
color: #ff5e3a;
background-color: #fff5f3;
color: #ff5e3a;
}
.language-option .lang-flag {
font-size: 18px;
line-height: 1;
font-size: 18px;
line-height: 1;
}
.language-option .lang-name {
flex: 1;
flex: 1;
}
.language-option .lang-check {
color: #ff5e3a;
font-size: 12px;
opacity: 0;
color: #ff5e3a;
font-size: 12px;
opacity: 0;
}
.language-option.active .lang-check {
opacity: 1;
opacity: 1;
}
[data-theme="dark"] .language-selector-toggle {
background-color: #1e293b;
border-color: #334155;
color: #cbd5e1;
background-color: #1e293b;
border-color: #334155;
color: #cbd5e1;
}
[data-theme="dark"] .language-selector-toggle:hover {
background-color: #334155;
background-color: #334155;
}
[data-theme="dark"] .language-selector-dropdown {
background-color: #1e293b;
border-color: #334155;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
background-color: #1e293b;
border-color: #334155;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .language-selector-dropdown::-webkit-scrollbar-thumb {
background-color: #475569;
background-color: #475569;
}
[data-theme="dark"] .language-selector-dropdown::-webkit-scrollbar-thumb:hover {
background-color: #64748b;
background-color: #64748b;
}
[data-theme="dark"] .language-option {
color: #cbd5e1;
color: #cbd5e1;
}
[data-theme="dark"] .language-option:hover {
background-color: #334155;
background-color: #334155;
}
[data-theme="dark"] .language-option.active {
background-color: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
background-color: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
}
+217 -215
View File
@@ -1,381 +1,383 @@
/* About Modal */
.about-modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
z-index: 3000;
justify-content: center;
align-items: center;
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
z-index: 3000;
justify-content: center;
align-items: center;
}
.about-modal-overlay.show {
display: flex;
display: flex;
}
.about-modal {
background: white;
border-radius: 20px;
padding: 40px;
max-width: 400px;
width: 90%;
text-align: center;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
animation: userMenuIn 0.25s ease-out;
background: white;
border-radius: 20px;
padding: 40px;
max-width: 400px;
width: 90%;
text-align: center;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
animation: userMenuIn 0.25s ease-out;
}
.about-modal-logo {
width: 72px;
height: 72px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
box-shadow: 0 8px 24px rgba(255, 94, 58, 0.3);
width: 72px;
height: 72px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
box-shadow: 0 8px 24px rgba(255, 94, 58, 0.3);
}
.about-modal-logo i {
font-size: 32px;
color: white;
font-size: 32px;
color: white;
}
.about-modal h2 {
font-size: 22px;
font-weight: 700;
color: #1e293b;
margin-bottom: 6px;
font-size: 22px;
font-weight: 700;
color: #1e293b;
margin-bottom: 6px;
}
.about-modal .about-version {
font-size: 13px;
color: #94a3b8;
margin-bottom: 20px;
font-size: 13px;
color: #94a3b8;
margin-bottom: 20px;
}
.about-modal .about-description {
font-size: 14px;
color: #64748b;
line-height: 1.6;
margin-bottom: 24px;
font-size: 14px;
color: #64748b;
line-height: 1.6;
margin-bottom: 24px;
}
.about-modal .about-tech {
display: flex;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 24px;
display: flex;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 24px;
}
.about-modal .about-tech-badge {
padding: 4px 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 20px;
font-size: 12px;
color: #64748b;
font-weight: 500;
padding: 4px 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 20px;
font-size: 12px;
color: #64748b;
font-weight: 500;
}
.about-modal .about-links {
display: flex;
justify-content: center;
gap: 16px;
margin-bottom: 24px;
display: flex;
justify-content: center;
gap: 16px;
margin-bottom: 24px;
}
.about-modal .about-link {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: #ff5e3a;
text-decoration: none;
font-weight: 500;
transition: opacity 0.2s;
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: #ff5e3a;
text-decoration: none;
font-weight: 500;
transition: opacity 0.2s;
}
.about-modal .about-link:hover {
opacity: 0.8;
opacity: 0.8;
}
.about-modal .about-close-btn {
padding: 10px 32px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
padding: 10px 32px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition:
transform 0.2s,
box-shadow 0.2s;
box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
}
.about-modal .about-close-btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
}
/* Modern Modal Overlay */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 3000;
opacity: 0;
transition: opacity 0.2s ease;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 3000;
opacity: 0;
transition: opacity 0.2s ease;
}
.modal-overlay.active {
display: flex;
opacity: 1;
display: flex;
opacity: 1;
}
.modal-container {
background-color: white;
border-radius: 16px;
width: 420px;
max-width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
transform: scale(0.9) translateY(-20px);
transition: transform 0.2s ease;
overflow: hidden;
background-color: white;
border-radius: 16px;
width: 420px;
max-width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
transform: scale(0.9) translateY(-20px);
transition: transform 0.2s ease;
overflow: hidden;
}
.modal-overlay.active .modal-container {
transform: scale(1) translateY(0);
transform: scale(1) translateY(0);
}
.modal-header {
display: flex;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid #e2e8f0;
position: relative;
display: flex;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid #e2e8f0;
position: relative;
}
.modal-icon {
width: 44px;
height: 44px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
width: 44px;
height: 44px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
[dir='rtl'] & {
margin-left: 14px;
margin-right: unset;
}
[dir="rtl"] & {
margin-left: 14px;
margin-right: unset;
}
}
.modal-icon i {
color: white;
font-size: 20px;
color: white;
font-size: 20px;
}
.modal-header h3 {
font-size: 18px;
font-weight: 600;
color: #1a202c;
margin: 0;
flex: 1;
font-size: 18px;
font-weight: 600;
color: #1a202c;
margin: 0;
flex: 1;
}
.modal-close-btn {
position: absolute;
top: 16px;
right: 16px;
width: 32px;
height: 32px;
border: none;
background: #f0f3f7;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
transition: all 0.15s ease;
position: absolute;
top: 16px;
right: 16px;
width: 32px;
height: 32px;
border: none;
background: #f0f3f7;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
transition: all 0.15s ease;
[dir='rtl'] & {
left: 16px;
right: unset;
}
[dir="rtl"] & {
left: 16px;
right: unset;
}
}
.modal-close-btn:hover {
background: #e2e8f0;
color: #1a202c;
background: #e2e8f0;
color: #1a202c;
}
.modal-body {
padding: 24px;
padding: 24px;
}
.modal-body label {
display: block;
font-size: 14px;
font-weight: 500;
color: #4a5568;
margin-bottom: 8px;
display: block;
font-size: 14px;
font-weight: 500;
color: #4a5568;
margin-bottom: 8px;
}
.modal-input {
width: 100%;
padding: 12px 16px;
font-size: 15px;
border: 2px solid #e2e8f0;
border-radius: 10px;
background: #f8fafc;
color: #1a202c;
transition: all 0.15s ease;
outline: none;
width: 100%;
padding: 12px 16px;
font-size: 15px;
border: 2px solid #e2e8f0;
border-radius: 10px;
background: #f8fafc;
color: #1a202c;
transition: all 0.15s ease;
outline: none;
}
.modal-input:focus {
border-color: #ff5e3a;
background: white;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
border-color: #ff5e3a;
background: white;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
}
.modal-input::placeholder {
color: #a0aec0;
color: #a0aec0;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
}
.modal-footer .btn {
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 10px;
cursor: pointer;
transition: all 0.15s ease;
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 10px;
cursor: pointer;
transition: all 0.15s ease;
}
.modal-footer .btn-secondary {
background: white;
border: 1px solid #e2e8f0;
color: #4a5568;
background: white;
border: 1px solid #e2e8f0;
color: #4a5568;
}
.modal-footer .btn-secondary:hover {
background: #f0f3f7;
border-color: #cbd5e0;
background: #f0f3f7;
border-color: #cbd5e0;
}
.modal-footer .btn-primary {
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border: none;
color: white;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border: none;
color: white;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
}
.modal-footer .btn-primary:hover {
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
transform: translateY(-1px);
}
.modal-footer .btn-primary:active {
transform: translateY(0);
transform: translateY(0);
}
[data-theme="dark"] .about-modal {
background: #1e293b;
background: #1e293b;
}
[data-theme="dark"] .about-modal h2 {
color: #f1f5f9;
color: #f1f5f9;
}
[data-theme="dark"] .about-modal .about-version,
[data-theme="dark"] .about-modal .about-description {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .about-modal .about-tech-badge {
background: #334155;
border-color: #475569;
color: #cbd5e1;
background: #334155;
border-color: #475569;
color: #cbd5e1;
}
[data-theme="dark"] .modal-overlay {
background-color: rgba(0, 0, 0, 0.7);
background-color: rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .modal-container {
background-color: #1e293b;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
background-color: #1e293b;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .modal-header {
border-bottom-color: #334155;
border-bottom-color: #334155;
}
[data-theme="dark"] .modal-header h3 {
color: #f1f5f9;
color: #f1f5f9;
}
[data-theme="dark"] .modal-close-btn {
background: #334155;
color: #94a3b8;
background: #334155;
color: #94a3b8;
}
[data-theme="dark"] .modal-close-btn:hover {
background: #475569;
color: #e2e8f0;
background: #475569;
color: #e2e8f0;
}
[data-theme="dark"] .modal-body label {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .modal-input {
border-color: #334155;
background: #0f172a;
color: #e2e8f0;
border-color: #334155;
background: #0f172a;
color: #e2e8f0;
}
[data-theme="dark"] .modal-input:focus {
border-color: #ff5e3a;
background: #0f172a;
border-color: #ff5e3a;
background: #0f172a;
}
[data-theme="dark"] .modal-input::placeholder {
color: #475569;
color: #475569;
}
[data-theme="dark"] .modal-footer {
background: #162032;
border-top-color: #334155;
background: #162032;
border-top-color: #334155;
}
[data-theme="dark"] .modal-footer .btn-secondary {
background: #334155;
border-color: #475569;
color: #cbd5e1;
background: #334155;
border-color: #475569;
color: #cbd5e1;
}
[data-theme="dark"] .modal-footer .btn-secondary:hover {
background: #475569;
background: #475569;
}
+88 -81
View File
@@ -1,143 +1,150 @@
/* Multi-Select – checkboxes & batch action bar */
.list-header-checkbox,
.file-item .checkbox-cell {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}
.list-header-checkbox input[type="checkbox"],
.file-item .checkbox-cell input[type="checkbox"] {
width: 17px;
height: 17px;
cursor: pointer;
accent-color: #ff5e3a;
border-radius: 4px;
width: 17px;
height: 17px;
cursor: pointer;
accent-color: #ff5e3a;
border-radius: 4px;
}
.list-header.selection-mode {
grid-template-columns: 36px 1fr;
background-color: #1e293b;
color: #fff;
border-bottom-color: #334155;
grid-template-columns: 36px 1fr;
background-color: #1e293b;
color: #fff;
border-bottom-color: #334155;
}
.list-header.selection-mode .list-header-checkbox input[type="checkbox"] {
accent-color: #ff5e3a;
accent-color: #ff5e3a;
}
.batch-selection-info {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
min-width: 0;
}
.batch-selection-bar {
display: flex;
align-items: center;
justify-content: space-between;
background: #1e293b;
color: #fff;
padding: 10px 20px;
border-radius: 12px;
margin: 0 0 12px;
height: 60px;
overflow: hidden;
transform: translateY(-8px);
transition: opacity 0.2s, max-height 0.25s, transform 0.2s, margin 0.2s, padding 0.2s;
pointer-events: auto;
display: flex;
align-items: center;
justify-content: space-between;
background: #1e293b;
color: #fff;
padding: 10px 20px;
border-radius: 12px;
margin: 0 0 12px;
height: 60px;
overflow: hidden;
transform: translateY(-8px);
transition:
opacity 0.2s,
max-height 0.25s,
transform 0.2s,
margin 0.2s,
padding 0.2s;
pointer-events: auto;
}
.batch-bar-left {
display: flex;
align-items: center;
gap: 12px;
display: flex;
align-items: center;
gap: 12px;
}
.batch-bar-close {
background: none;
border: none;
color: rgba(255,255,255,0.7);
cursor: pointer;
font-size: 14px;
padding: 4px 6px;
border-radius: 6px;
transition: background 0.15s, color 0.15s;
background: none;
border: none;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
font-size: 14px;
padding: 4px 6px;
border-radius: 6px;
transition:
background 0.15s,
color 0.15s;
}
.batch-bar-close:hover {
background: rgba(255,255,255,0.1);
color: #fff;
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.batch-bar-count {
font-size: 14px;
font-weight: 600;
white-space: nowrap;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
}
.batch-bar-actions {
display: flex;
align-items: center;
gap: 6px;
display: flex;
align-items: center;
gap: 6px;
}
.batch-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border: none;
border-radius: 8px;
background: rgba(255,255,255,0.1);
color: #fff;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border: none;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
}
.batch-btn:hover {
background: rgba(255,255,255,0.2);
background: rgba(255, 255, 255, 0.2);
}
.batch-btn-danger {
background: rgba(239,68,68,0.25);
color: #fca5a5;
background: rgba(239, 68, 68, 0.25);
color: #fca5a5;
}
.batch-btn-danger:hover {
background: rgba(239,68,68,0.4);
color: #fff;
background: rgba(239, 68, 68, 0.4);
color: #fff;
}
@media (max-width: 640px) {
.batch-btn span {
display: none;
}
.batch-btn span {
display: none;
}
.batch-btn {
padding: 7px 10px;
}
.batch-btn {
padding: 7px 10px;
}
}
[data-theme="dark"] .list-header-checkbox input,
[data-theme="dark"] .file-item .checkbox-cell input,
[data-theme="dark"] .file-item .checkbox-cell input {
accent-color: #ff5e3a;
accent-color: #ff5e3a;
}
[data-theme="dark"] .batch-selection-bar {
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
}
[data-theme="dark"] .list-header.selection-mode {
background-color: #0f172a;
border-bottom-color: #334155;
color: #e2e8f0;
background-color: #0f172a;
border-bottom-color: #334155;
color: #e2e8f0;
}
+341 -306
View File
@@ -1,579 +1,614 @@
/* Notification */
.notification {
position: absolute;
top: 70px;
right: 20px;
background-color: white;
width: 250px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
padding: 15px;
border-left: 4px solid #ff5e3a;
z-index: 1000;
display: none;
position: absolute;
top: 70px;
right: 20px;
background-color: white;
width: 250px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
padding: 15px;
border-left: 4px solid #ff5e3a;
z-index: 1000;
display: none;
[dir='rtl'] & {
left: 20px;
border-right: 4px solid #ff5e3a;
right: unset;
border-left: unset;
}
[dir="rtl"] & {
left: 20px;
border-right: 4px solid #ff5e3a;
right: unset;
border-left: unset;
}
}
.notification-title {
font-weight: bold;
font-size: 14px;
margin-bottom: 5px;
color: #2d3748;
font-weight: bold;
font-size: 14px;
margin-bottom: 5px;
color: #2d3748;
}
.notification-message {
font-size: 12px;
color: #718096;
font-size: 12px;
color: #718096;
}
/* Notification banner */
.notification-banner {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: space-between;
max-width: 400px;
z-index: 2000;
transform: translateY(-100px);
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
max-width: 400px;
z-index: 2000;
transform: translateY(-100px);
opacity: 0;
transition:
transform 0.3s,
opacity 0.3s;
}
.notification-banner.active {
transform: translateY(0);
opacity: 1;
transform: translateY(0);
opacity: 1;
}
.notification-banner.success {
border-left: 4px solid #48bb78;
border-left: 4px solid #48bb78;
}
.notification-banner.error {
border-left: 4px solid #f56565;
border-left: 4px solid #f56565;
}
.close-notification-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #a0aec0;
margin-left: 10px;
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #a0aec0;
margin-left: 10px;
}
/* Notification Bell */
.notif-wrapper {
position: relative;
position: relative;
}
.notif-bell-btn {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
color: #64748b;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
position: relative;
background: none;
border: none;
cursor: pointer;
font-size: 18px;
color: #64748b;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
position: relative;
}
.notif-bell-btn:hover {
background: rgba(255, 94, 58, 0.08);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.08);
color: #ff5e3a;
}
.notif-bell-btn.active {
color: #ff5e3a;
background: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.1);
}
.notif-badge {
position: absolute;
top: 4px;
right: 4px;
min-width: 16px;
height: 16px;
line-height: 16px;
border-radius: 8px;
background: #ff3b30;
color: #fff;
font-size: 10px;
font-weight: 700;
text-align: center;
padding: 0 4px;
pointer-events: none;
position: absolute;
top: 4px;
right: 4px;
min-width: 16px;
height: 16px;
line-height: 16px;
border-radius: 8px;
background: #ff3b30;
color: #fff;
font-size: 10px;
font-weight: 700;
text-align: center;
padding: 0 4px;
pointer-events: none;
}
@keyframes bellRing {
0%, 100% { transform: rotate(0deg); }
13% { transform: rotate(22deg); }
26% { transform: rotate(-22deg); }
39% { transform: rotate(14deg); }
52% { transform: rotate(-14deg); }
65% { transform: rotate(8deg); }
78% { transform: rotate(-8deg); }
91% { transform: rotate(3deg); }
0%,
100% {
transform: rotate(0deg);
}
13% {
transform: rotate(22deg);
}
26% {
transform: rotate(-22deg);
}
39% {
transform: rotate(14deg);
}
52% {
transform: rotate(-14deg);
}
65% {
transform: rotate(8deg);
}
78% {
transform: rotate(-8deg);
}
91% {
transform: rotate(3deg);
}
}
.notif-bell-btn.ring {
animation: bellRing 1s ease;
animation: bellRing 1s ease;
}
.notif-panel {
display: none;
position: absolute;
top: calc(100% + 10px);
right: -40px;
width: 380px;
max-height: 480px;
background: #fff;
border-radius: 16px;
box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
z-index: 2000;
overflow: hidden;
animation: notifPanelIn 0.2s ease-out;
display: none;
position: absolute;
top: calc(100% + 10px);
right: -40px;
width: 380px;
max-height: 480px;
background: #fff;
border-radius: 16px;
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.15),
0 0 0 1px rgba(0, 0, 0, 0.05);
z-index: 2000;
overflow: hidden;
animation: notifPanelIn 0.2s ease-out;
}
.notif-wrapper.open .notif-panel {
display: flex;
flex-direction: column;
display: flex;
flex-direction: column;
}
@keyframes notifPanelIn {
from { opacity: 0; transform: translateY(-8px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
from {
opacity: 0;
transform: translateY(-8px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.notif-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid #f0f0f0;
}
.notif-panel-title {
font-weight: 600;
font-size: 15px;
color: #1e293b;
font-weight: 600;
font-size: 15px;
color: #1e293b;
}
.notif-clear-btn {
background: none;
border: none;
cursor: pointer;
color: #94a3b8;
font-size: 14px;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.15s;
background: none;
border: none;
cursor: pointer;
color: #94a3b8;
font-size: 14px;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.15s;
}
.notif-clear-btn:hover {
color: #ff5e3a;
background: rgba(255, 94, 58, 0.08);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.08);
}
.notif-panel-body {
flex: 1;
overflow-y: auto;
max-height: 400px;
flex: 1;
overflow-y: auto;
max-height: 400px;
}
.notif-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
color: #94a3b8;
gap: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
color: #94a3b8;
gap: 8px;
}
.notif-empty i {
font-size: 28px;
opacity: 0.5;
font-size: 28px;
opacity: 0.5;
}
.notif-empty span {
font-size: 14px;
font-size: 14px;
}
.notif-item {
display: flex;
align-items: flex-start;
padding: 12px 16px;
gap: 12px;
border-bottom: 1px solid #f5f5f5;
transition: background 0.15s;
cursor: default;
display: flex;
align-items: flex-start;
padding: 12px 16px;
gap: 12px;
border-bottom: 1px solid #f5f5f5;
transition: background 0.15s;
cursor: default;
}
.notif-item:last-child {
border-bottom: none;
border-bottom: none;
}
.notif-item:hover {
background: #f8fafc;
background: #f8fafc;
}
.notif-item-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 14px;
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 14px;
}
.notif-item-icon.upload {
background: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
}
.notif-item-icon.success {
background: rgba(52, 199, 89, 0.1);
color: #34c759;
background: rgba(52, 199, 89, 0.1);
color: #34c759;
}
.notif-item-icon.error {
background: rgba(255, 59, 48, 0.1);
color: #ff3b30;
background: rgba(255, 59, 48, 0.1);
color: #ff3b30;
}
.notif-item-body {
flex: 1;
min-width: 0;
flex: 1;
min-width: 0;
}
.notif-item-title {
font-size: 13px;
font-weight: 600;
color: #1e293b;
margin-bottom: 2px;
font-size: 13px;
font-weight: 600;
color: #1e293b;
margin-bottom: 2px;
}
.notif-item-text {
font-size: 12px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.notif-item-time {
font-size: 11px;
color: #94a3b8;
margin-top: 3px;
font-size: 11px;
color: #94a3b8;
margin-top: 3px;
}
.notif-upload-progress {
margin-top: 6px;
margin-top: 6px;
}
.notif-upload-bar {
height: 3px;
background: #eee;
border-radius: 2px;
overflow: hidden;
height: 3px;
background: #eee;
border-radius: 2px;
overflow: hidden;
}
.notif-upload-fill {
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
}
.notif-upload-fill.done {
background: #34c759;
background: #34c759;
}
.notif-upload-fill.error {
background: #ff3b30;
background: #ff3b30;
}
.notif-upload-detail {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 3px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 3px;
}
.notif-upload-pct,
.notif-upload-stats {
font-size: 11px;
color: #94a3b8;
font-size: 11px;
color: #94a3b8;
}
/* Upload Progress Toast (legacy — hidden, kept for compat) */
.upload-toast {
position: fixed;
bottom: 24px;
right: 24px;
width: 360px;
max-height: 400px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
z-index: 10000;
display: none;
flex-direction: column;
overflow: hidden;
font-family: inherit;
animation: uploadToastSlideIn 0.3s ease-out;
position: fixed;
bottom: 24px;
right: 24px;
width: 360px;
max-height: 400px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
z-index: 10000;
display: none;
flex-direction: column;
overflow: hidden;
font-family: inherit;
animation: uploadToastSlideIn 0.3s ease-out;
}
.upload-toast.visible {
display: flex;
display: flex;
}
@keyframes uploadToastSlideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.upload-toast-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: #ff5e3a;
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: #ff5e3a;
color: #fff;
}
.upload-toast-title {
font-weight: 600;
font-size: 14px;
font-weight: 600;
font-size: 14px;
}
.upload-toast-close {
background: none;
border: none;
color: #fff;
font-size: 20px;
cursor: pointer;
line-height: 1;
padding: 0 4px;
opacity: 0.8;
background: none;
border: none;
color: #fff;
font-size: 20px;
cursor: pointer;
line-height: 1;
padding: 0 4px;
opacity: 0.8;
}
.upload-toast-close:hover {
opacity: 1;
opacity: 1;
}
.upload-toast-body {
flex: 1;
overflow-y: auto;
padding: 8px 0;
max-height: 260px;
flex: 1;
overflow-y: auto;
padding: 8px 0;
max-height: 260px;
}
.upload-toast-file {
display: flex;
align-items: center;
padding: 6px 16px;
gap: 10px;
display: flex;
align-items: center;
padding: 6px 16px;
gap: 10px;
}
.upload-toast-file-icon {
font-size: 16px;
color: #999;
flex-shrink: 0;
width: 20px;
text-align: center;
font-size: 16px;
color: #999;
flex-shrink: 0;
width: 20px;
text-align: center;
}
.upload-toast-file-icon.done {
color: #34c759;
color: #34c759;
}
.upload-toast-file-icon.error {
color: #ff3b30;
color: #ff3b30;
}
.upload-toast-file-info {
flex: 1;
min-width: 0;
flex: 1;
min-width: 0;
}
.upload-toast-file-name {
font-size: 13px;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 13px;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.upload-toast-file-bar {
height: 3px;
background: #eee;
border-radius: 2px;
margin-top: 4px;
overflow: hidden;
height: 3px;
background: #eee;
border-radius: 2px;
margin-top: 4px;
overflow: hidden;
}
.upload-toast-file-fill {
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
}
.upload-toast-file-fill.done {
background: #34c759;
background: #34c759;
}
.upload-toast-file-fill.error {
background: #ff3b30;
background: #ff3b30;
}
.upload-toast-file-pct {
font-size: 12px;
color: #999;
flex-shrink: 0;
width: 38px;
text-align: right;
font-size: 12px;
color: #999;
flex-shrink: 0;
width: 38px;
text-align: right;
}
.upload-toast-footer {
padding: 10px 16px;
border-top: 1px solid #f0f0f0;
padding: 10px 16px;
border-top: 1px solid #f0f0f0;
}
.upload-toast-overall-bar {
height: 4px;
background: #eee;
border-radius: 2px;
overflow: hidden;
margin-bottom: 6px;
height: 4px;
background: #eee;
border-radius: 2px;
overflow: hidden;
margin-bottom: 6px;
}
.upload-toast-overall-fill {
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.25s ease;
border-radius: 2px;
height: 100%;
background: #ff5e3a;
width: 0%;
transition: width 0.25s ease;
border-radius: 2px;
}
.upload-toast-stats {
font-size: 12px;
color: #888;
font-size: 12px;
color: #888;
}
[data-theme="dark"] .notification {
background-color: #1e293b;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
background-color: #1e293b;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .notification-title {
color: #f1f5f9;
color: #f1f5f9;
}
[data-theme="dark"] .notification-message {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .notification-banner {
background-color: #1e293b;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
background-color: #1e293b;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .notif-bell-btn {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .notif-bell-btn:hover,
[data-theme="dark"] .notif-bell-btn.active {
color: #ff5e3a;
background: rgba(255, 94, 58, 0.15);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.15);
}
[data-theme="dark"] .notif-panel {
background: #1e293b;
box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
background: #1e293b;
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .notif-panel-header {
border-bottom-color: #334155;
border-bottom-color: #334155;
}
[data-theme="dark"] .notif-panel-title {
color: #f1f5f9;
color: #f1f5f9;
}
[data-theme="dark"] .notif-clear-btn {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .notif-clear-btn:hover {
color: #ff5e3a;
background: rgba(255, 94, 58, 0.12);
color: #ff5e3a;
background: rgba(255, 94, 58, 0.12);
}
[data-theme="dark"] .notif-empty {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .notif-item {
border-bottom-color: #1a2536;
border-bottom-color: #1a2536;
}
[data-theme="dark"] .notif-item:hover {
background: #162032;
background: #162032;
}
[data-theme="dark"] .notif-item-title {
color: #e2e8f0;
color: #e2e8f0;
}
[data-theme="dark"] .notif-item-text {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .notif-upload-bar {
background: #334155;
background: #334155;
}
[data-theme="dark"] .upload-toast {
background: #1e293b;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
background: #1e293b;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .upload-toast-file-name {
color: #e2e8f0;
color: #e2e8f0;
}
[data-theme="dark"] .upload-toast-file-bar {
background: #334155;
background: #334155;
}
[data-theme="dark"] .upload-toast-file-pct {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .upload-toast-footer {
border-top-color: #334155;
border-top-color: #334155;
}
+27 -27
View File
@@ -1,45 +1,45 @@
/* Styles for search results */
.search-results-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
width: 100%;
flex-wrap: wrap;
gap: 8px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
width: 100%;
flex-wrap: wrap;
gap: 8px;
}
.search-results-header h3 {
margin: 0;
font-size: 16px;
color: #555;
margin: 0;
font-size: 16px;
color: #555;
}
.search-results-header .search-time {
font-size: 12px;
font-weight: normal;
color: #999;
font-size: 12px;
font-weight: normal;
color: #999;
}
.search-controls {
display: flex;
align-items: center;
gap: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.search-sort-select {
padding: 4px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
background: #fff;
color: #333;
cursor: pointer;
outline: none;
padding: 4px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
background: #fff;
color: #333;
cursor: pointer;
outline: none;
}
.search-sort-select:focus {
border-color: var(--primary-color, #4a90d9);
border-color: var(--primary-color, #4a90d9);
}
+36 -36
View File
@@ -1,68 +1,68 @@
.permission-options {
display: flex;
gap: 15px;
margin-top: 5px;
display: flex;
gap: 15px;
margin-top: 5px;
}
.permission-option {
display: flex;
align-items: center;
gap: 5px;
display: flex;
align-items: center;
gap: 5px;
}
.existing-share-item {
background-color: #f8f9fa;
border-radius: 4px;
padding: 10px;
margin-bottom: 10px;
background-color: #f8f9fa;
border-radius: 4px;
padding: 10px;
margin-bottom: 10px;
}
.share-url {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 5px;
color: #1565c0;
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 5px;
color: #1565c0;
}
.share-info {
font-size: 11px;
display: flex;
gap: 15px;
margin-bottom: 10px;
color: #757575;
font-size: 11px;
display: flex;
gap: 15px;
margin-bottom: 10px;
color: #757575;
}
.share-protected {
color: #1565c0;
color: #1565c0;
}
.share-expiration {
color: #b71c1c;
color: #b71c1c;
}
.share-actions {
display: flex;
gap: 5px;
justify-content: flex-end;
display: flex;
gap: 5px;
justify-content: flex-end;
}
.share-link-actions {
display: flex;
gap: 10px;
margin-top: 5px;
display: flex;
gap: 10px;
margin-top: 5px;
}
.btn-small {
font-size: 12px;
padding: 5px 10px;
font-size: 12px;
padding: 5px 10px;
}
#notification-message {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
resize: vertical;
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
resize: vertical;
}
+45 -45
View File
@@ -1,81 +1,81 @@
/* Loading spinner overlay */
.files-loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 20px;
gap: 16px;
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 20px;
gap: 16px;
grid-column: 1 / -1;
}
.files-loading-spinner .spinner {
width: 36px;
height: 36px;
border: 3px solid #e2e8f0;
border-top-color: #ff5e3a;
border-radius: 50%;
animation: spin 0.7s linear infinite;
width: 36px;
height: 36px;
border: 3px solid #e2e8f0;
border-top-color: #ff5e3a;
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
to {
transform: rotate(360deg);
}
}
.files-loading-spinner span {
font-size: 14px;
color: #a0aec0;
font-weight: 500;
font-size: 14px;
color: #a0aec0;
font-weight: 500;
}
.dropzone {
border: 2px dashed #ddd;
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 20px 0;
color: #666;
display: none;
border: 2px dashed #ddd;
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 20px 0;
color: #666;
display: none;
}
.dropzone-icon {
font-size: 32px;
margin-bottom: 10px;
font-size: 32px;
margin-bottom: 10px;
}
.dropzone.active {
border-color: #ff5e3a;
background-color: rgba(255, 94, 58, 0.05);
border-color: #ff5e3a;
background-color: rgba(255, 94, 58, 0.05);
}
.upload-progress {
margin-top: 15px;
width: 100%;
display: none;
margin-top: 15px;
width: 100%;
display: none;
}
.progress-bar {
background-color: #f0f0f0;
height: 6px;
border-radius: 3px;
overflow: hidden;
background-color: #f0f0f0;
height: 6px;
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background-color: #ff5e3a;
width: 0%;
transition: width 0.3s;
height: 100%;
background-color: #ff5e3a;
width: 0%;
transition: width 0.3s;
}
[data-theme="dark"] .dropzone {
border-color: #475569;
color: #94a3b8;
background-color: #0f172a;
border-color: #475569;
color: #94a3b8;
background-color: #0f172a;
}
[data-theme="dark"] .progress-bar {
background-color: #334155;
background-color: #334155;
}
+54 -54
View File
@@ -1,102 +1,102 @@
/* Upload Dropdown */
.upload-dropdown {
position: relative;
display: inline-block;
position: relative;
display: inline-block;
}
.upload-dropdown .btn-primary {
display: flex;
align-items: center;
gap: 6px;
display: flex;
align-items: center;
gap: 6px;
}
.upload-dropdown-menu {
display: none;
position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 200px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
border: 1px solid #e2e8f0;
z-index: 1000;
overflow: hidden;
animation: dropdownFadeIn 0.15s ease-out;
display: none;
position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 200px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
border: 1px solid #e2e8f0;
z-index: 1000;
overflow: hidden;
animation: dropdownFadeIn 0.15s ease-out;
}
.upload-dropdown-menu.show {
display: block;
display: block;
}
@keyframes dropdownFadeIn {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.upload-dropdown-item {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 16px;
border: none;
background: none;
color: #334155;
font-size: 14px;
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 16px;
border: none;
background: none;
color: #334155;
font-size: 14px;
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
}
.upload-dropdown-item:hover {
background: #f1f5f9;
background: #f1f5f9;
}
.upload-dropdown-item:active {
background: #e2e8f0;
background: #e2e8f0;
}
.upload-dropdown-item i {
width: 20px;
text-align: center;
color: #64748b;
font-size: 15px;
width: 20px;
text-align: center;
color: #64748b;
font-size: 15px;
}
.upload-dropdown-item:first-child {
border-bottom: 1px solid #f1f5f9;
border-bottom: 1px solid #f1f5f9;
}
[data-theme="dark"] .upload-dropdown-menu {
background: #1e293b;
border-color: #334155;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
background: #1e293b;
border-color: #334155;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .upload-dropdown-item {
color: #cbd5e1;
color: #cbd5e1;
}
[data-theme="dark"] .upload-dropdown-item:hover {
background: #334155;
background: #334155;
}
[data-theme="dark"] .upload-dropdown-item:active {
background: #475569;
background: #475569;
}
[data-theme="dark"] .upload-dropdown-item i {
color: #94a3b8;
color: #94a3b8;
}
.upload-caret {
margin-left: 4px;
font-size: 12px;
margin-left: 4px;
font-size: 12px;
}
+180 -178
View File
@@ -1,340 +1,342 @@
/* User Menu */
.user-menu-wrapper {
position: relative;
position: relative;
}
.user-avatar-btn {
background: none;
border: 2px solid transparent;
border-radius: 50%;
padding: 2px;
cursor: pointer;
transition: all 0.25s ease;
display: flex;
align-items: center;
justify-content: center;
background: none;
border: 2px solid transparent;
border-radius: 50%;
padding: 2px;
cursor: pointer;
transition: all 0.25s ease;
display: flex;
align-items: center;
justify-content: center;
}
.user-avatar-btn:hover {
border-color: rgba(255, 94, 58, 0.4);
transform: scale(1.05);
border-color: rgba(255, 94, 58, 0.4);
transform: scale(1.05);
}
.user-avatar-btn:hover .user-avatar {
box-shadow: 0 0 0 2px rgba(255, 94, 58, 0.2);
box-shadow: 0 0 0 2px rgba(255, 94, 58, 0.2);
}
.user-menu-wrapper.open .user-avatar-btn {
border-color: #ff5e3a;
border-color: #ff5e3a;
}
.user-avatar {
width: 38px;
height: 38px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.5px;
user-select: none;
width: 38px;
height: 38px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.5px;
user-select: none;
}
.user-menu {
display: none;
position: absolute;
top: calc(100% + 10px);
right: 0;
width: 300px;
background: white;
border-radius: 16px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
z-index: 2000;
overflow: hidden;
animation: userMenuIn 0.2s ease-out;
display: none;
position: absolute;
top: calc(100% + 10px);
right: 0;
width: 300px;
background: white;
border-radius: 16px;
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.15),
0 0 0 1px rgba(0, 0, 0, 0.05);
z-index: 2000;
overflow: hidden;
animation: userMenuIn 0.2s ease-out;
}
.user-menu-wrapper.open .user-menu {
display: block;
display: block;
}
@keyframes userMenuIn {
from {
opacity: 0;
transform: translateY(-8px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
from {
opacity: 0;
transform: translateY(-8px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.user-menu-header {
display: flex;
align-items: center;
gap: 14px;
padding: 20px 20px 16px;
background: linear-gradient(135deg, #fef5f3 0%, #fdf2f8 100%);
border-bottom: 1px solid #fce7e1;
display: flex;
align-items: center;
gap: 14px;
padding: 20px 20px 16px;
background: linear-gradient(135deg, #fef5f3 0%, #fdf2f8 100%);
border-bottom: 1px solid #fce7e1;
}
.user-menu-avatar {
width: 48px;
height: 48px;
min-width: 48px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 17px;
letter-spacing: 0.5px;
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
width: 48px;
height: 48px;
min-width: 48px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 17px;
letter-spacing: 0.5px;
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
}
.user-menu-info {
overflow: hidden;
overflow: hidden;
}
.user-menu-name {
font-weight: 600;
font-size: 15px;
color: #1e293b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 600;
font-size: 15px;
color: #1e293b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-menu-email {
font-size: 12.5px;
color: #94a3b8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
font-size: 12.5px;
color: #94a3b8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.user-menu-storage {
padding: 14px 20px;
padding: 14px 20px;
}
.user-menu-storage-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.user-menu-storage-label i {
font-size: 11px;
color: #94a3b8;
font-size: 11px;
color: #94a3b8;
}
.user-menu-storage-bar {
height: 6px;
background: #f1f5f9;
border-radius: 3px;
overflow: hidden;
margin-bottom: 6px;
height: 6px;
background: #f1f5f9;
border-radius: 3px;
overflow: hidden;
margin-bottom: 6px;
}
.user-menu-storage-fill {
height: 100%;
background: linear-gradient(90deg, #ff5e3a, #ff2d55);
border-radius: 3px;
width: 0%;
transition: width 0.5s ease;
height: 100%;
background: linear-gradient(90deg, #ff5e3a, #ff2d55);
border-radius: 3px;
width: 0%;
transition: width 0.5s ease;
}
.user-menu-storage-text {
font-size: 11.5px;
color: #94a3b8;
font-size: 11.5px;
color: #94a3b8;
}
.user-menu-divider {
height: 1px;
background: #f1f5f9;
margin: 4px 0;
height: 1px;
background: #f1f5f9;
margin: 4px 0;
}
.user-menu-item {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 20px;
border: none;
background: none;
color: #334155;
font-size: 14px;
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 20px;
border: none;
background: none;
color: #334155;
font-size: 14px;
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
}
.user-menu-item:hover {
background: #f8fafc;
background: #f8fafc;
}
.user-menu-item i {
width: 20px;
text-align: center;
font-size: 15px;
color: #64748b;
width: 20px;
text-align: center;
font-size: 15px;
color: #64748b;
}
.user-menu-item .theme-toggle-pill {
margin-left: auto;
width: 40px;
height: 22px;
background: #e2e8f0;
border-radius: 11px;
position: relative;
transition: background 0.3s ease;
margin-left: auto;
width: 40px;
height: 22px;
background: #e2e8f0;
border-radius: 11px;
position: relative;
transition: background 0.3s ease;
}
.user-menu-item .theme-toggle-pill.active {
background: #ff5e3a;
background: #ff5e3a;
}
.user-menu-item .theme-toggle-knob {
width: 18px;
height: 18px;
background: white;
border-radius: 50%;
position: absolute;
top: 2px;
left: 2px;
transition: transform 0.3s ease;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
width: 18px;
height: 18px;
background: white;
border-radius: 50%;
position: absolute;
top: 2px;
left: 2px;
transition: transform 0.3s ease;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.user-menu-item .theme-toggle-pill.active .theme-toggle-knob {
transform: translateX(18px);
transform: translateX(18px);
}
.user-menu-admin {
color: #1d4ed8;
color: #1d4ed8;
}
.user-menu-admin i {
color: #3b82f6;
color: #3b82f6;
}
.user-menu-admin:hover {
background: #eff6ff;
background: #eff6ff;
}
.user-menu-role-badge {
padding: 0 20px 4px;
padding: 0 20px 4px;
}
.role-badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 600;
padding: 2px 10px;
border-radius: 10px;
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 600;
padding: 2px 10px;
border-radius: 10px;
}
.role-badge-admin {
background: #dbeafe;
color: #1d4ed8;
background: #dbeafe;
color: #1d4ed8;
}
.role-badge i {
font-size: 10px;
font-size: 10px;
}
.user-menu-logout {
color: #ef4444;
margin-bottom: 4px;
color: #ef4444;
margin-bottom: 4px;
}
.user-menu-logout i {
color: #ef4444;
color: #ef4444;
}
.user-menu-logout:hover {
background: #fef2f2;
background: #fef2f2;
}
[data-theme="dark"] .user-menu {
background: #1e293b;
border-color: #334155;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
background: #1e293b;
border-color: #334155;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .user-menu-header {
background: linear-gradient(135deg, #1a2332 0%, #1e2940 100%);
border-bottom-color: #334155;
background: linear-gradient(135deg, #1a2332 0%, #1e2940 100%);
border-bottom-color: #334155;
}
[data-theme="dark"] .user-menu-name {
color: #f1f5f9;
color: #f1f5f9;
}
[data-theme="dark"] .user-menu-email {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .user-menu-storage-label {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .user-menu-storage-bar {
background: #334155;
background: #334155;
}
[data-theme="dark"] .user-menu-storage-text {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .user-menu-divider {
background: #334155;
background: #334155;
}
[data-theme="dark"] .user-menu-item {
color: #cbd5e1;
color: #cbd5e1;
}
[data-theme="dark"] .user-menu-item:hover {
background: #334155;
background: #334155;
}
[data-theme="dark"] .user-menu-item i {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .theme-toggle-pill {
background: #475569;
background: #475569;
}
[data-theme="dark"] .user-menu-admin {
color: #60a5fa;
color: #60a5fa;
}
[data-theme="dark"] .user-menu-admin:hover {
background: rgba(59, 130, 246, 0.1);
background: rgba(59, 130, 246, 0.1);
}
[data-theme="dark"] .role-badge-admin {
background: rgba(59, 130, 246, 0.15);
color: #60a5fa;
background: rgba(59, 130, 246, 0.15);
color: #60a5fa;
}
[data-theme="dark"] .user-menu-logout:hover {
background: rgba(239, 68, 68, 0.1);
background: rgba(239, 68, 68, 0.1);
}