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
+27 -27
View File
@@ -1,60 +1,60 @@
.form-group {
margin-bottom: 15px;
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #4a5568;
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #4a5568;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
width: 100%;
padding: 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
}
.form-group textarea {
resize: vertical;
min-height: 80px;
resize: vertical;
min-height: 80px;
}
.button {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.primary {
background-color: #ff5e3a;
color: white;
background-color: #ff5e3a;
color: white;
}
.primary:hover {
background-color: #e64a29;
background-color: #e64a29;
}
.secondary {
background-color: #e2e8f0;
color: #4a5568;
background-color: #e2e8f0;
color: #4a5568;
}
.secondary:hover {
background-color: #cbd5e0;
background-color: #cbd5e0;
}
.danger {
background-color: #f56565;
color: white;
background-color: #f56565;
color: white;
}
.danger:hover {
background-color: #e53e3e;
background-color: #e53e3e;
}
+17 -14
View File
@@ -1,24 +1,27 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
display: flex;
height: 100vh;
background-color: #f5f7fa;
overflow: hidden;
display: flex;
height: 100vh;
background-color: #f5f7fa;
overflow: hidden;
}
html[dir='rtl'] .fa-arrow-left::before {
content: "\f061";
html[dir="rtl"] .fa-arrow-left::before {
content: "\f061";
}
html[dir='rtl'] .fa-sign-out-alt {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
html[dir="rtl"] .fa-sign-out-alt {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
/* Utility: hide elements without inline style="" (CSP-safe) */
.hidden { display: none !important; }
.hidden {
/* biome-ignore lint/complexity/noImportantStyles: this case to overide the display when hiddenis selected */
display: none !important;
}
+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);
}
+90 -91
View File
@@ -1,146 +1,145 @@
/* Content area */
.content-area {
flex-grow: 1;
padding: 20px;
overflow-y: scroll;
scrollbar-gutter: stable;
flex-grow: 1;
padding: 20px;
overflow-y: scroll;
scrollbar-gutter: stable;
}
.page-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #2d3748;
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #2d3748;
}
.actions-bar {
display: flex;
justify-content: space-between;
margin: 0 0 12px;
height: 60px;
padding: 10px;
display: flex;
justify-content: space-between;
margin: 0 0 12px;
height: 60px;
padding: 10px;
}
.action-buttons {
display: flex;
gap: 12px;
display: flex;
gap: 12px;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
text-align: center;
color: #888;
width: 100%;
height: 300px;
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
text-align: center;
color: #888;
width: 100%;
height: 300px;
grid-column: 1 / -1;
}
/* invisible element, permits building of drag element without altering display */
.drag-preview {
position: absolute;
top: -9999px;
left: -9999px;
pointer-events: none;
width: 360px;
position: absolute;
top: -9999px;
left: -9999px;
pointer-events: none;
width: 360px;
}
.dragged-items {
--dragged-files-list-columns: 36px minmax(200px, 1fr);
/*display: flex;*/
flex-direction: column;
/*width: 360px;*/
background-color: transparent;
overflow: hidden;
border-radius: 10px;
width: 100%;
/*box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/
--dragged-files-list-columns: 36px minmax(200px, 1fr);
/*display: flex;*/
flex-direction: column;
/*width: 360px;*/
background-color: transparent;
overflow: hidden;
border-radius: 10px;
width: 100%;
/*box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/
}
.dragged-items .file-item {
display: grid;
grid-template-columns: var(--dragged-files-list-columns);
column-gap: 12px;
padding: 12px 15px;
/*border-bottom: 1px solid #f0f0f0;*/
align-items: center;
background-color: white;
display: grid;
grid-template-columns: var(--dragged-files-list-columns);
column-gap: 12px;
padding: 12px 15px;
/*border-bottom: 1px solid #f0f0f0;*/
align-items: center;
background-color: white;
}
.dragged-items .file-item {
display: flex;
padding: 4px;
width: 336px;
height: 46px;
.dragged-items .file-item {
display: flex;
padding: 4px;
width: 336px;
height: 46px;
}
/* file name, text is wrapped */
.dragged-items .file-item div:nth-child(2) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dragged-items .file-item .file-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;
}
.dragged-items .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;
}
.dragged-items .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;
}
.dragged-items .file-item .file-icon.folder-icon i,
.dragged-items .file-item .file-icon.folder-icon svg {
display: none;
display: none;
}
.dragged-items div.fading {
-webkit-mask-image: linear-gradient(to bottom, white 10%, transparent);
mask-image: linear-gradient(to bottom, white 10%, transparent);
-webkit-mask-image: linear-gradient(to bottom, white 10%, transparent);
mask-image: linear-gradient(to bottom, white 10%, transparent);
}
.dragged-items-badge {
position: absolute;
top: 0;
right: 0;
position: absolute;
top: 0;
right: 0;
transform: translate(50%, -50%);
transform: translate(50%, -50%);
background: red;
color: white;
background: red;
color: white;
border-radius: 50%;
min-width: 20px;
height: 20px;
border-radius: 50%;
min-width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
font-size: 12px;
font-weight: bold;
padding: 2px;
padding: 2px;
}
+191 -151
View File
@@ -1,226 +1,266 @@
/* Sidebar */
.sidebar {
width: 250px;
background: linear-gradient(180deg, #2a3042 0%, #232838 100%);
color: #fff;
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
box-shadow: 2px 0 12px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
width: 250px;
background: linear-gradient(180deg, #2a3042 0%, #232838 100%);
color: #fff;
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease;
}
/* Sidebar overlay for mobile */
.sidebar-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 998;
opacity: 0;
transition: opacity 0.3s ease;
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 998;
opacity: 0;
transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
display: block;
opacity: 1;
display: block;
opacity: 1;
}
/* Mobile responsive styles */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: 0;
top: 0;
z-index: 999;
transform: translateX(-100%);
}
.sidebar {
position: fixed;
left: 0;
top: 0;
z-index: 999;
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
.sidebar.open {
transform: translateX(0);
}
[dir='rtl'] .sidebar {
left: auto;
right: 0;
transform: translateX(100%);
}
[dir="rtl"] .sidebar {
left: auto;
right: 0;
transform: translateX(100%);
}
[dir='rtl'] .sidebar.open {
transform: translateX(0);
}
[dir="rtl"] .sidebar.open {
transform: translateX(0);
}
}
.logo-container {
padding: 22px 20px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255,255,255,0.07);
margin-bottom: 8px;
text-decoration: none;
color: inherit;
padding: 22px 20px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
margin-bottom: 8px;
text-decoration: none;
color: inherit;
}
.logo {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
box-shadow: 0 3px 10px rgba(255,94,58,0.35);
transition: transform 0.2s, box-shadow 0.2s;
width: 40px;
height: 40px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
box-shadow: 0 3px 10px rgba(255, 94, 58, 0.35);
transition:
transform 0.2s,
box-shadow 0.2s;
[dir='rtl'] & {
margin-left: 12px;
margin-right: unset;
}
[dir="rtl"] & {
margin-left: 12px;
margin-right: unset;
}
}
.logo:hover {
transform: scale(1.05);
box-shadow: 0 4px 14px rgba(255,94,58,0.45);
transform: scale(1.05);
box-shadow: 0 4px 14px rgba(255, 94, 58, 0.45);
}
.logo svg {
width: 22px;
height: 22px;
fill: white;
width: 22px;
height: 22px;
fill: white;
}
.app-name {
font-size: 19px;
font-weight: 700;
color: white;
letter-spacing: 0.3px;
font-size: 19px;
font-weight: 700;
color: white;
letter-spacing: 0.3px;
}
.nav-menu {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 8px 12px;
gap: 2px;
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 8px 12px;
gap: 2px;
}
.nav-item {
display: flex;
align-items: center;
padding: 11px 14px;
border-radius: 10px;
cursor: pointer;
color: rgba(255,255,255,0.65);
font-size: 14.5px;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
border-left: 3px solid transparent;
display: flex;
align-items: center;
padding: 11px 14px;
border-radius: 10px;
cursor: pointer;
color: rgba(255, 255, 255, 0.65);
font-size: 14.5px;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
border-left: 3px solid transparent;
[dir='rtl'] & {
border-left: none;
border-right: 3px solid transparent;
}
[dir="rtl"] & {
border-left: none;
border-right: 3px solid transparent;
}
}
.nav-item:hover {
background-color: rgba(255,255,255,0.06);
color: rgba(255,255,255,0.9);
background-color: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.9);
}
.nav-item.active {
background-color: rgba(255,94,58,0.12);
color: #fff;
border-left-color: #ff5e3a;
font-weight: 600;
background-color: rgba(255, 94, 58, 0.12);
color: #fff;
border-left-color: #ff5e3a;
font-weight: 600;
[dir='rtl'] & {
border-left-color: transparent;
border-right-color: #ff5e3a;
}
[dir="rtl"] & {
border-left-color: transparent;
border-right-color: #ff5e3a;
}
}
.nav-item i,
.nav-item .oxi-icon {
margin-right: 14px;
width: 20px;
height: 20px;
text-align: center;
font-size: 16px;
transition: color 0.2s, transform 0.2s;
flex-shrink: 0;
margin-right: 14px;
width: 20px;
height: 20px;
text-align: center;
font-size: 16px;
transition:
color 0.2s,
transform 0.2s;
flex-shrink: 0;
[dir='rtl'] & {
margin-left: 14px;
margin-right: unset;
}
[dir="rtl"] & {
margin-left: 14px;
margin-right: unset;
}
}
/* Colored icons per section */
.nav-item:nth-child(1) i, .nav-item:nth-child(1) .oxi-icon { color: #ffa94d; } /* Files - orange */
.nav-item:nth-child(2) i, .nav-item:nth-child(2) .oxi-icon { color: #74b9ff; } /* Shared - blue */
.nav-item:nth-child(3) i, .nav-item:nth-child(3) .oxi-icon { color: #81ecec; } /* Recent - teal */
.nav-item:nth-child(4) i, .nav-item:nth-child(4) .oxi-icon { color: #ffd43b; } /* Favorites - gold */
.nav-item:nth-child(5) i, .nav-item:nth-child(5) .oxi-icon { color: #ff6b9d; } /* Photos - pink */
.nav-item:nth-child(6) i, .nav-item:nth-child(6) .oxi-icon { color: #ff7675; } /* Trash - red */
.nav-item:nth-child(1) i,
.nav-item:nth-child(1) .oxi-icon {
color: #ffa94d;
} /* Files - orange */
.nav-item:nth-child(2) i,
.nav-item:nth-child(2) .oxi-icon {
color: #74b9ff;
} /* Shared - blue */
.nav-item:nth-child(3) i,
.nav-item:nth-child(3) .oxi-icon {
color: #81ecec;
} /* Recent - teal */
.nav-item:nth-child(4) i,
.nav-item:nth-child(4) .oxi-icon {
color: #ffd43b;
} /* Favorites - gold */
.nav-item:nth-child(5) i,
.nav-item:nth-child(5) .oxi-icon {
color: #ff6b9d;
} /* Photos - pink */
.nav-item:nth-child(6) i,
.nav-item:nth-child(6) .oxi-icon {
color: #ff7675;
} /* Trash - red */
.nav-item.active:nth-child(1) i, .nav-item.active:nth-child(1) .oxi-icon { color: #ff5e3a; }
.nav-item.active:nth-child(2) i, .nav-item.active:nth-child(2) .oxi-icon { color: #0984e3; }
.nav-item.active:nth-child(3) i, .nav-item.active:nth-child(3) .oxi-icon { color: #00cec9; }
.nav-item.active:nth-child(4) i, .nav-item.active:nth-child(4) .oxi-icon { color: #f0c800; }
.nav-item.active:nth-child(5) i, .nav-item.active:nth-child(5) .oxi-icon { color: #e84393; }
.nav-item.active:nth-child(6) i, .nav-item.active:nth-child(6) .oxi-icon { color: #e74c3c; }
.nav-item.active:nth-child(1) i,
.nav-item.active:nth-child(1) .oxi-icon {
color: #ff5e3a;
}
.nav-item.active:nth-child(2) i,
.nav-item.active:nth-child(2) .oxi-icon {
color: #0984e3;
}
.nav-item.active:nth-child(3) i,
.nav-item.active:nth-child(3) .oxi-icon {
color: #00cec9;
}
.nav-item.active:nth-child(4) i,
.nav-item.active:nth-child(4) .oxi-icon {
color: #f0c800;
}
.nav-item.active:nth-child(5) i,
.nav-item.active:nth-child(5) .oxi-icon {
color: #e84393;
}
.nav-item.active:nth-child(6) i,
.nav-item.active:nth-child(6) .oxi-icon {
color: #e74c3c;
}
.nav-item:hover i,
.nav-item:hover .oxi-icon {
transform: scale(1.1);
transform: scale(1.1);
}
/* Storage indicator */
.storage-container {
margin: auto 12px 16px 12px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 12px;
padding: 16px;
margin: auto 12px 16px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 12px;
padding: 16px;
}
.storage-title {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 12px;
font-size: 13px;
font-weight: 600;
color: rgba(255,255,255,0.8);
letter-spacing: 0.3px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 12px;
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
letter-spacing: 0.3px;
}
.storage-bar {
height: 6px;
background-color: rgba(255,255,255,0.1);
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
height: 6px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
}
.storage-fill {
height: 100%;
background: linear-gradient(90deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 3px;
width: 0%;
transition: width 0.8s ease;
height: 100%;
background: linear-gradient(90deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 3px;
width: 0%;
transition: width 0.8s ease;
}
.storage-info {
text-align: center;
font-size: 11.5px;
color: rgba(255,255,255,0.5);
font-weight: 400;
text-align: center;
font-size: 11.5px;
color: rgba(255, 255, 255, 0.5);
font-weight: 400;
}
+103 -101
View File
@@ -1,163 +1,165 @@
/* Main content */
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Top bar */
.top-bar {
height: 70px;
min-height: 70px;
max-height: 70px;
background-color: white;
border-bottom: 1px solid #e6e6e6;
display: flex;
align-items: center;
padding: 0 30px;
justify-content: space-between;
flex-shrink: 0;
height: 70px;
min-height: 70px;
max-height: 70px;
background-color: white;
border-bottom: 1px solid #e6e6e6;
display: flex;
align-items: center;
padding: 0 30px;
justify-content: space-between;
flex-shrink: 0;
}
/* Sidebar toggle button (hidden on desktop) */
.sidebar-toggle {
display: none;
background: none;
border: none;
padding: 10px;
cursor: pointer;
color: #4a5568;
border-radius: 8px;
transition: background-color 0.2s, color 0.2s;
margin-right: 12px;
flex-shrink: 0;
display: none;
background: none;
border: none;
padding: 10px;
cursor: pointer;
color: #4a5568;
border-radius: 8px;
transition:
background-color 0.2s,
color 0.2s;
margin-right: 12px;
flex-shrink: 0;
}
.sidebar-toggle:hover {
background-color: #f7fafc;
color: #ff5e3a;
background-color: #f7fafc;
color: #ff5e3a;
}
.sidebar-toggle i {
font-size: 20px;
font-size: 20px;
}
/* Mobile responsive styles for top bar */
@media (max-width: 768px) {
.top-bar {
padding: 0 16px;
}
.top-bar {
padding: 0 16px;
}
.sidebar-toggle {
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-toggle {
display: flex;
align-items: center;
justify-content: center;
}
}
.search-container {
flex-grow: 1;
max-width: 600px;
position: relative;
margin-right: 20px;
display: flex;
align-items: center;
flex-grow: 1;
max-width: 600px;
position: relative;
margin-right: 20px;
display: flex;
align-items: center;
[dir='rtl'] & {
margin-left: 20px;
margin-right: unset;
}
[dir="rtl"] & {
margin-left: 20px;
margin-right: unset;
}
}
.search-container input {
width: 100%;
padding: 12px 50px 12px 44px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
font-size: 14px;
height: 46px;
color: #1a202c;
transition: all 0.2s ease;
width: 100%;
padding: 12px 50px 12px 44px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
font-size: 14px;
height: 46px;
color: #1a202c;
transition: all 0.2s ease;
}
.search-container input:hover {
border-color: #cbd5e0;
background-color: #fff;
border-color: #cbd5e0;
background-color: #fff;
}
.search-container input:focus {
outline: none;
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
outline: none;
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
}
.search-container input::placeholder {
color: #a0aec0;
color: #a0aec0;
}
.search-icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #a0aec0;
font-size: 16px;
pointer-events: none;
transition: color 0.2s ease;
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #a0aec0;
font-size: 16px;
pointer-events: none;
transition: color 0.2s ease;
[dir='rtl'] & {
right: 16px;
left: unset;
}
[dir="rtl"] & {
right: 16px;
left: unset;
}
}
.search-container input:focus + .search-icon,
.search-container:focus-within .search-icon {
color: #ff5e3a;
color: #ff5e3a;
}
.search-button {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
border: none;
border-radius: 10px;
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
border: none;
border-radius: 10px;
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
[dir='rtl'] & {
left: 6px;
right: unset;
}
[dir="rtl"] & {
left: 6px;
right: unset;
}
}
.search-button:hover {
transform: translateY(-50%) scale(1.05);
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
transform: translateY(-50%) scale(1.05);
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
}
.search-button:active {
transform: translateY(-50%) scale(0.98);
transform: translateY(-50%) scale(0.98);
}
.search-button i {
font-size: 14px;
font-size: 14px;
}
.user-controls {
display: flex;
align-items: center;
gap: 12px;
display: flex;
align-items: center;
gap: 12px;
}
+1139 -247
View File
File diff suppressed because it is too large Load Diff
+18 -6
View File
@@ -66,7 +66,7 @@
width: 100%;
text-align: left;
[dir='rtl'] & {
[dir="rtl"] & {
text-align: right;
}
}
@@ -148,8 +148,14 @@
filter: none;
}
.auth-subtitle { margin: 20px 0; color: var(--color-text-muted); font-size: 14px; }
.auth-action-wrap { margin-top: 20px; }
.auth-subtitle {
margin: 20px 0;
color: var(--color-text-muted);
font-size: 14px;
}
.auth-action-wrap {
margin-top: 20px;
}
/* SSO / OIDC button */
.auth-button-oidc {
@@ -188,7 +194,7 @@
.auth-divider::before,
.auth-divider::after {
content: '';
content: "";
flex: 1;
height: 1px;
background: var(--color-border);
@@ -379,8 +385,14 @@
}
@keyframes langPickerSlideDown {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Search inside dropdown */
+157 -89
View File
@@ -1,89 +1,157 @@
/* device-verify.css — stand-alone styles for the device authorization page */
:root {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--danger: #dc2626;
--danger-hover: #b91c1c;
--success: #16a34a;
--bg: #f8fafc;
--card: #ffffff;
--text: #1e293b;
--muted: #64748b;
--border: #e2e8f0;
--radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
}
.card {
background: var(--card);
border-radius: var(--radius);
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
padding: 2.5rem;
max-width: 440px;
width: 100%;
}
.logo { text-align: center; margin-bottom: 1.5rem; }
.logo h1 { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--primary); }
h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p.subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; }
input[type="text"] {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1.4rem;
letter-spacing: 0.15em;
text-align: center;
text-transform: uppercase;
border: 2px solid var(--border);
border-radius: 8px;
outline: none;
transition: border-color 0.2s;
}
input[type="text"]:focus { border-color: var(--primary); }
.device-info {
background: #f1f5f9;
border-radius: 8px;
padding: 1rem;
margin: 1rem 0;
}
.device-info .row { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.device-info .label { color: var(--muted); font-size: 0.85rem; }
.device-info .value { font-weight: 600; font-size: 0.85rem; }
.actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
button {
flex: 1;
padding: 0.75rem;
border: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.btn-approve { background: var(--primary); color: #fff; }
.btn-approve:hover { background: var(--primary-hover); }
.btn-deny { background: var(--danger); color: #fff; }
.btn-deny:hover { background: var(--danger-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.status {
text-align: center;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
font-weight: 600;
}
.status.success { background: #dcfce7; color: var(--success); }
.status.denied { background: #fef2f2; color: var(--danger); }
.status.error { background: #fef2f2; color: var(--danger); }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 0.5rem; }
.hidden { display: none !important; }
/* device-verify.css — stand-alone styles for the device authorization page */
:root {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--danger: #dc2626;
--danger-hover: #b91c1c;
--success: #16a34a;
--bg: #f8fafc;
--card: #ffffff;
--text: #1e293b;
--muted: #64748b;
--border: #e2e8f0;
--radius: 12px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
}
.card {
background: var(--card);
border-radius: var(--radius);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
padding: 2.5rem;
max-width: 440px;
width: 100%;
}
.logo {
text-align: center;
margin-bottom: 1.5rem;
}
.logo h1 {
font-size: 1.5rem;
font-weight: 700;
}
.logo span {
color: var(--primary);
}
h2 {
font-size: 1.15rem;
margin-bottom: 0.5rem;
}
p.subtitle {
color: var(--muted);
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
label {
display: block;
font-weight: 600;
font-size: 0.85rem;
margin-bottom: 0.4rem;
}
input[type="text"] {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1.4rem;
letter-spacing: 0.15em;
text-align: center;
text-transform: uppercase;
border: 2px solid var(--border);
border-radius: 8px;
outline: none;
transition: border-color 0.2s;
}
input[type="text"]:focus {
border-color: var(--primary);
}
.device-info {
background: #f1f5f9;
border-radius: 8px;
padding: 1rem;
margin: 1rem 0;
}
.device-info .row {
display: flex;
justify-content: space-between;
margin-bottom: 0.3rem;
}
.device-info .label {
color: var(--muted);
font-size: 0.85rem;
}
.device-info .value {
font-weight: 600;
font-size: 0.85rem;
}
.actions {
display: flex;
gap: 0.75rem;
margin-top: 1.25rem;
}
button {
flex: 1;
padding: 0.75rem;
border: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.btn-approve {
background: var(--primary);
color: #fff;
}
.btn-approve:hover {
background: var(--primary-hover);
}
.btn-deny {
background: var(--danger);
color: #fff;
}
.btn-deny:hover {
background: var(--danger-hover);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.status {
text-align: center;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
font-weight: 600;
}
.status.success {
background: #dcfce7;
color: var(--success);
}
.status.denied {
background: #fef2f2;
color: var(--danger);
}
.status.error {
background: #fef2f2;
color: var(--danger);
}
.error-text {
color: var(--danger);
font-size: 0.85rem;
margin-top: 0.5rem;
}
.hidden {
display: none !important;
}
+12 -6
View File
@@ -16,7 +16,7 @@
z-index: 5;
transition: all 0.2s ease;
[dir='rtl'] & {
[dir="rtl"] & {
left: 10px;
right: unset;
}
@@ -40,7 +40,7 @@
.file-item.favorite-item {
border-left: 3px solid #ffc107;
[dir='rtl'] & {
[dir="rtl"] & {
border-right: 3px solid #ffc107;
border-left: unset;
}
@@ -89,9 +89,15 @@
/* Animation for the favorite star */
@keyframes favorite-pulse {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.favorite-indicator.active {
@@ -119,7 +125,7 @@
vertical-align: middle;
filter: drop-shadow(0 0 1px rgba(255, 193, 7, 0.4));
[dir='rtl'] & {
[dir="rtl"] & {
margin-left: 0;
margin-right: 6px;
}
+201 -194
View File
@@ -1,324 +1,331 @@
/* OxiCloud Inline Viewer Styles */
.inline-viewer-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.85);
display: none;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.85);
display: none;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.inline-viewer-modal.active {
display: flex !important;
opacity: 1;
align-items: center;
justify-content: center;
pointer-events: all;
display: flex !important;
opacity: 1;
align-items: center;
justify-content: center;
pointer-events: all;
}
.inline-viewer-content {
width: 90%;
height: 90%;
max-width: 1200px;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
width: 90%;
height: 90%;
max-width: 1200px;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.inline-viewer-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: #f8f9fa;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: #f8f9fa;
border-bottom: 1px solid #e2e8f0;
}
.inline-viewer-title {
font-size: 18px;
font-weight: 500;
color: #2d3748;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 18px;
font-weight: 500;
color: #2d3748;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.inline-viewer-close {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #718096;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #718096;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}
.inline-viewer-close:hover {
background-color: #e2e8f0;
color: #4a5568;
background-color: #e2e8f0;
color: #4a5568;
}
.inline-viewer-container {
flex-grow: 1;
overflow: auto;
background-color: #f0f3f7;
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex-grow: 1;
overflow: auto;
background-color: #f0f3f7;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.inline-viewer-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: #f8f9fa;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: #f8f9fa;
border-top: 1px solid #e2e8f0;
}
.inline-viewer-download {
background-color: #ff5e3a;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: background-color 0.2s;
background-color: #ff5e3a;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: background-color 0.2s;
}
.inline-viewer-download:hover {
background-color: #e74c3c;
background-color: #e74c3c;
}
.inline-viewer-controls {
display: flex;
gap: 8px;
display: flex;
gap: 8px;
}
.inline-viewer-controls button {
background-color: #f1f5f9;
border: 1px solid #cbd5e1;
border-radius: 4px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #64748b;
transition: all 0.2s;
background-color: #f1f5f9;
border: 1px solid #cbd5e1;
border-radius: 4px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #64748b;
transition: all 0.2s;
}
.inline-viewer-controls button:hover {
background-color: #e2e8f0;
color: #334155;
background-color: #e2e8f0;
color: #334155;
}
/* Image viewer */
.inline-viewer-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
transform-origin: center;
transition: transform 0.2s ease;
max-width: 100%;
max-height: 100%;
object-fit: contain;
transform-origin: center;
transition: transform 0.2s ease;
}
/* PDF viewer */
.inline-viewer-pdf,
.inline-viewer-pdf-fallback {
width: 100%;
height: 100%;
border: none;
width: 100%;
height: 100%;
border: none;
}
/* Only show fallback if object fails */
.inline-viewer-pdf + .inline-viewer-pdf-fallback {
display: none;
display: none;
}
.inline-viewer-pdf:not([data]),
.inline-viewer-pdf[data=""] + .inline-viewer-pdf-fallback {
display: block;
display: block;
}
/* Loading indicator */
.inline-viewer-loader {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36px;
color: #64748b;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36px;
color: #64748b;
}
/* Download progress container */
.inline-viewer-progress {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 20px;
background: rgba(255, 255, 255, 0.95);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 20px;
background: rgba(255, 255, 255, 0.95);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Progress bar track */
.inline-viewer-progress-bar {
width: 200px;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
width: 200px;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
/* Progress bar fill */
.inline-viewer-progress-fill {
height: 100%;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
border-radius: 4px;
transition: width 0.2s ease;
height: 100%;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
border-radius: 4px;
transition: width 0.2s ease;
}
/* Progress percentage text */
.inline-viewer-progress-text {
font-size: 14px;
font-weight: 600;
color: #475569;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
font-weight: 600;
color: #475569;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Dark theme support */
[data-theme="dark"] .inline-viewer-progress {
background: rgba(30, 41, 59, 0.95);
background: rgba(30, 41, 59, 0.95);
}
[data-theme="dark"] .inline-viewer-progress-bar {
background: #334155;
background: #334155;
}
[data-theme="dark"] .inline-viewer-progress-text {
color: #cbd5e1;
color: #cbd5e1;
}
/* Error and unsupported message */
.inline-viewer-message {
padding: 32px;
text-align: center;
max-width: 400px;
padding: 32px;
text-align: center;
max-width: 400px;
}
.inline-viewer-icon {
font-size: 64px;
color: #cbd5e1;
margin-bottom: 24px;
font-size: 64px;
color: #cbd5e1;
margin-bottom: 24px;
}
.inline-viewer-text {
color: #64748b;
line-height: 1.6;
color: #64748b;
line-height: 1.6;
}
.inline-viewer-text p {
margin: 0 0 16px;
margin: 0 0 16px;
}
/* Text viewer */
.inline-viewer-text-content {
width: 100%;
height: 100%;
margin: 0;
padding: 16px 24px;
font-family: 'Courier New', Consolas, Monaco, monospace;
font-size: 14px;
line-height: 1.6;
color: #2d3748;
background-color: #fff;
overflow: auto;
white-space: pre-wrap;
word-wrap: break-word;
box-sizing: border-box;
text-align: left;
tab-size: 4;
width: 100%;
height: 100%;
margin: 0;
padding: 16px 24px;
font-family: "Courier New", Consolas, Monaco, monospace;
font-size: 14px;
line-height: 1.6;
color: #2d3748;
background-color: #fff;
overflow: auto;
white-space: pre-wrap;
word-wrap: break-word;
box-sizing: border-box;
text-align: left;
tab-size: 4;
}
/* Video viewer */
.inline-viewer-video {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
background-color: #000;
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
background-color: #000;
}
/* Audio viewer */
.inline-viewer-audio-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
padding: 48px 32px;
max-width: 500px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
padding: 48px 32px;
max-width: 500px;
width: 100%;
}
.inline-viewer-audio-icon {
font-size: 80px;
color: #94a3b8;
animation: audio-pulse 2s ease-in-out infinite;
font-size: 80px;
color: #94a3b8;
animation: audio-pulse 2s ease-in-out infinite;
}
@keyframes audio-pulse {
0%, 100% { opacity: 0.6; transform: scale(1); }
50% { opacity: 1; transform: scale(1.05); }
0%,
100% {
opacity: 0.6;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.05);
}
}
.inline-viewer-audio-name {
font-size: 16px;
font-weight: 500;
color: #475569;
text-align: center;
word-break: break-word;
max-width: 100%;
font-size: 16px;
font-weight: 500;
color: #475569;
text-align: center;
word-break: break-word;
max-width: 100%;
}
.inline-viewer-audio {
width: 100%;
max-width: 460px;
border-radius: 8px;
outline: none;
width: 100%;
max-width: 460px;
border-radius: 8px;
outline: none;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.inline-viewer-content {
width: 100%;
height: 100%;
border-radius: 0;
}
.inline-viewer-controls {
display: none;
}
}
.inline-viewer-content {
width: 100%;
height: 100%;
border-radius: 0;
}
.inline-viewer-controls {
display: none;
}
}
+12 -5
View File
@@ -79,8 +79,11 @@
border: 2px solid #e2e8f0;
cursor: pointer;
background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
border-color 0.2s ease;
}
.photo-tile img {
@@ -93,7 +96,7 @@
.photo-tile:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
border-color: #cbd5e0;
}
@@ -134,7 +137,9 @@
.photo-tile.selected {
border-color: #ff5e3a;
background: #fff8f6;
box-shadow: 0 0 0 1px rgba(255, 94, 58, 0.15), 0 4px 12px rgba(255, 94, 58, 0.1);
box-shadow:
0 0 0 1px rgba(255, 94, 58, 0.15),
0 4px 12px rgba(255, 94, 58, 0.1);
}
.photo-tile.selected img {
@@ -221,7 +226,9 @@
}
@keyframes spin {
to { transform: rotate(360deg); }
to {
transform: rotate(360deg);
}
}
/* Selection bar */
+2 -2
View File
@@ -100,7 +100,7 @@
left: 0;
right: 0;
padding: 16px 70px 16px 20px;
background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
color: #fff;
z-index: 10001;
}
@@ -129,7 +129,7 @@
left: 0;
right: 0;
padding: 16px 20px;
background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
display: flex;
align-items: center;
justify-content: center;
File diff suppressed because it is too large Load Diff
+10 -4
View File
@@ -14,7 +14,7 @@
color: #6c757d;
z-index: 5;
[dir='rtl'] & {
[dir="rtl"] & {
left: 10px;
right: unset;
}
@@ -29,7 +29,7 @@
.files-grid-view .file-item.recent-item {
border-left: 3px solid #6c757d;
[dir='rtl'] & {
[dir="rtl"] & {
border-right: 3px solid #6c757d;
border-left: unset;
}
@@ -87,6 +87,12 @@
}
@keyframes recent-fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
+229 -229
View File
@@ -1,420 +1,420 @@
.page-description {
color: #718096;
font-size: 16px;
margin-top: -15px;
margin-bottom: 25px;
color: #718096;
font-size: 16px;
margin-top: -15px;
margin-bottom: 25px;
}
.shared-page-container {
max-width: 1280px;
margin: 20px auto;
padding: 0 20px;
max-width: 1280px;
margin: 20px auto;
padding: 0 20px;
}
.shared-header {
margin-bottom: 25px;
margin-bottom: 25px;
}
.shared-header h2 {
font-size: 24px;
color: #2d3748;
margin-bottom: 8px;
font-size: 24px;
color: #2d3748;
margin-bottom: 8px;
}
.shared-header p {
color: #718096;
font-size: 16px;
color: #718096;
font-size: 16px;
}
/* In-app Shared view (index.html dynamic container) */
.shared-view-container .shared-header {
margin-bottom: 20px;
margin-bottom: 20px;
}
.shared-view-container .shared-filters {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 0;
padding: 15px;
background-color: #f8f9fa;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
border-radius: 10px 10px 0 0;
border-bottom: 1px solid #e0e6ed;
font-weight: 600;
color: #2d3748;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 0;
padding: 15px;
background-color: #f8f9fa;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
border-radius: 10px 10px 0 0;
border-bottom: 1px solid #e0e6ed;
font-weight: 600;
color: #2d3748;
}
.shared-view-container .shared-custom-select {
position: relative;
position: relative;
}
.shared-view-container .shared-select-toggle {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 40px 10px 16px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
font-size: 14px;
font-weight: 500;
color: #1a202c;
cursor: pointer;
min-width: 170px;
height: 44px;
transition: all 0.2s ease;
text-align: left;
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 40px 10px 16px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
font-size: 14px;
font-weight: 500;
color: #1a202c;
cursor: pointer;
min-width: 170px;
height: 44px;
transition: all 0.2s ease;
text-align: left;
}
.shared-view-container .shared-select-toggle:hover {
border-color: #cbd5e0;
background-color: #fff;
border-color: #cbd5e0;
background-color: #fff;
}
.shared-view-container .shared-custom-select.open .shared-select-toggle {
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
}
.shared-view-container .shared-select-arrow {
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
font-size: 10px;
color: #718096;
transition: transform 0.2s ease;
pointer-events: none;
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
font-size: 10px;
color: #718096;
transition: transform 0.2s ease;
pointer-events: none;
}
.shared-view-container .shared-custom-select.open .shared-select-arrow {
transform: translateY(-50%) rotate(180deg);
transform: translateY(-50%) rotate(180deg);
}
.shared-view-container .shared-select-dropdown {
position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 100%;
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;
overflow: hidden;
position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 100%;
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;
overflow: hidden;
}
.shared-view-container .shared-custom-select.open .shared-select-dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.shared-view-container .shared-select-option {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
font-size: 14px;
font-weight: 400;
color: #4a5568;
transition: background-color 0.15s ease;
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
font-size: 14px;
font-weight: 400;
color: #4a5568;
transition: background-color 0.15s ease;
}
.shared-view-container .shared-select-option:hover {
background-color: #f7fafc;
background-color: #f7fafc;
}
.shared-view-container .shared-select-option.active {
background-color: #fff5f3;
color: #ff5e3a;
font-weight: 500;
background-color: #fff5f3;
color: #ff5e3a;
font-weight: 500;
}
.shared-filters {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
flex-wrap: wrap;
gap: 15px;
background-color: #f8f9fa;
border-radius: 10px 10px 0 0;
padding: 15px;
border-bottom: 1px solid #e0e6ed;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
font-weight: 600;
color: #2d3748;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
flex-wrap: wrap;
gap: 15px;
background-color: #f8f9fa;
border-radius: 10px 10px 0 0;
padding: 15px;
border-bottom: 1px solid #e0e6ed;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
font-weight: 600;
color: #2d3748;
}
.filter-group {
display: flex;
align-items: center;
gap: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.filter-group label {
font-size: 14px;
color: #4a5568;
font-weight: 500;
font-size: 14px;
color: #4a5568;
font-weight: 500;
}
.filter-group select {
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
font-size: 14px;
min-width: 120px;
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
font-size: 14px;
min-width: 120px;
}
.search-box {
display: flex;
gap: 10px;
display: flex;
gap: 10px;
}
.search-box input {
padding: 8px 15px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
width: 250px;
padding: 8px 15px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
width: 250px;
}
.shared-list-container {
background-color: white;
border-radius: 0 0 10px 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
overflow: hidden;
margin-bottom: 25px;
background-color: white;
border-radius: 0 0 10px 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
overflow: hidden;
margin-bottom: 25px;
}
.shared-list,
.shared-table {
width: 100%;
border-collapse: collapse;
width: 100%;
border-collapse: collapse;
}
.shared-list thead th,
.shared-table thead th {
padding: 15px;
text-align: left;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
padding: 15px;
text-align: left;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
}
.shared-list tbody td,
.shared-table tbody td {
padding: 15px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
padding: 15px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.shared-item-name {
display: flex;
align-items: center;
gap: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.shared-item-actions {
display: flex;
gap: 10px;
display: flex;
gap: 10px;
}
.shared-list .action-btn,
.shared-table .action-btn {
width: 32px;
height: 32px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
width: 32px;
height: 32px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.shared-list .action-btn:hover,
.shared-table .action-btn:hover {
background-color: #f0f8ff;
border-color: #90cdf4;
background-color: #f0f8ff;
border-color: #90cdf4;
}
.action-icon {
font-size: 14px;
font-size: 14px;
}
#empty-shared-state.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 50px 20px;
background-color: transparent;
border-radius: 0;
box-shadow: none;
text-align: center;
color: #6c757d;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 50px 20px;
background-color: transparent;
border-radius: 0;
box-shadow: none;
text-align: center;
color: #6c757d;
}
#empty-shared-state p {
margin-bottom: 10px;
max-width: 400px;
margin-bottom: 10px;
max-width: 400px;
}
@media (max-width: 768px) {
.shared-filters {
flex-direction: column;
align-items: flex-start;
}
.shared-filters {
flex-direction: column;
align-items: flex-start;
}
.shared-list thead th:nth-child(4),
.shared-list thead th:nth-child(5),
.shared-list tbody td:nth-child(4),
.shared-list tbody td:nth-child(5),
.shared-table thead th:nth-child(4),
.shared-table thead th:nth-child(5),
.shared-table tbody td:nth-child(4),
.shared-table tbody td:nth-child(5) {
display: none;
}
.shared-list thead th:nth-child(4),
.shared-list thead th:nth-child(5),
.shared-list tbody td:nth-child(4),
.shared-list tbody td:nth-child(5),
.shared-table thead th:nth-child(4),
.shared-table thead th:nth-child(5),
.shared-table tbody td:nth-child(4),
.shared-table tbody td:nth-child(5) {
display: none;
}
}
[data-theme="dark"] .shared-filters {
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .shared-view-container .shared-select-toggle {
background-color: #1e293b;
border-color: #334155;
color: #cbd5e1;
background-color: #1e293b;
border-color: #334155;
color: #cbd5e1;
}
[data-theme="dark"] .shared-view-container .shared-filters {
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .shared-view-container .shared-select-toggle:hover {
background-color: #334155;
border-color: #475569;
background-color: #334155;
border-color: #475569;
}
[data-theme="dark"] .shared-view-container .shared-custom-select.open .shared-select-toggle {
border-color: #ff5e3a;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.15);
background-color: #1e293b;
border-color: #ff5e3a;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.15);
background-color: #1e293b;
}
[data-theme="dark"] .shared-view-container .shared-select-arrow {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .shared-view-container .shared-select-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"] .shared-view-container .shared-select-option {
color: #cbd5e1;
color: #cbd5e1;
}
[data-theme="dark"] .shared-view-container .shared-select-option:hover {
background-color: #334155;
background-color: #334155;
}
[data-theme="dark"] .shared-view-container .shared-select-option.active {
background-color: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
background-color: rgba(255, 94, 58, 0.1);
color: #ff5e3a;
}
[data-theme="dark"] .filter-group label {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .filter-group select {
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
[data-theme="dark"] .filter-group select:focus {
border-color: #ff5e3a;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.15);
border-color: #ff5e3a;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.15);
}
[data-theme="dark"] .search-box input {
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
background-color: #1e293b;
border-color: #334155;
color: #e2e8f0;
}
[data-theme="dark"] .search-box input::placeholder {
color: #64748b;
color: #64748b;
}
[data-theme="dark"] .shared-list-container {
background-color: #1e293b;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
background-color: #1e293b;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .shared-list thead th,
[data-theme="dark"] .shared-table thead th {
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
background-color: #162032;
color: #94a3b8;
border-bottom-color: #334155;
}
[data-theme="dark"] .shared-list tbody td,
[data-theme="dark"] .shared-table tbody td {
border-bottom-color: #334155;
color: #e2e8f0;
border-bottom-color: #334155;
color: #e2e8f0;
}
[data-theme="dark"] .shared-list tbody tr:hover,
[data-theme="dark"] .shared-table tbody tr:hover {
background-color: #162032;
background-color: #162032;
}
[data-theme="dark"] .page-description {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] #empty-shared-state.empty-state {
background-color: transparent;
box-shadow: none;
color: #64748b;
background-color: transparent;
box-shadow: none;
color: #64748b;
}
[data-theme="dark"] #empty-shared-state p {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .shared-list .action-btn,
[data-theme="dark"] .shared-table .action-btn {
color: #94a3b8;
color: #94a3b8;
}
[data-theme="dark"] .shared-list .action-btn:hover,
[data-theme="dark"] .shared-table .action-btn:hover {
color: #ff5e3a;
color: #ff5e3a;
}
+31 -31
View File
@@ -1,68 +1,68 @@
.trash-item {
position: relative;
position: relative;
}
.trash-actions {
position: absolute;
top: 10px;
right: 10px;
display: none;
gap: 8px;
position: absolute;
top: 10px;
right: 10px;
display: none;
gap: 8px;
}
.files-grid-view .file-card.trash-item:hover .trash-actions,
.files-list-view .file-item.trash-item:hover .actions-cell {
display: flex;
display: flex;
}
.trash-actions button,
.actions-cell button {
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
transition: all 0.2s;
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
transition: all 0.2s;
}
.trash-actions button:hover,
.actions-cell button:hover {
background: #f0f0f0;
background: #f0f0f0;
}
.btn-restore {
color: #4caf50;
color: #4caf50;
}
.btn-delete {
color: #f44336;
color: #f44336;
}
.actions-cell {
display: flex;
gap: 8px;
justify-content: flex-start;
align-items: center;
display: flex;
gap: 8px;
justify-content: flex-start;
align-items: center;
}
.btn-danger {
background-color: #f44336;
color: white;
background-color: #f44336;
color: white;
}
[data-theme="dark"] .trash-actions button,
[data-theme="dark"] .actions-cell button {
background: #1e293b;
border-color: #334155;
color: #e2e8f0;
background: #1e293b;
border-color: #334155;
color: #e2e8f0;
}
[data-theme="dark"] .trash-actions button:hover,
[data-theme="dark"] .actions-cell button:hover {
background: #334155;
background: #334155;
}