Files
Oxicloud/static/css/components/csp-utilities.css
T

213 lines
4.1 KiB
CSS
Raw Normal View History

/* CSP-compliant utility classes — replaces inline style="" attributes */
/* ── Empty state icons (large, muted) ── */
.empty-state-icon {
2026-04-07 22:48:59 +02:00
font-size: 48px;
color: #ddd;
margin-bottom: 16px;
}
.empty-state-icon.error {
2026-04-07 22:48:59 +02:00
color: #f44336;
}
.empty-state-icon.spinner {
2026-04-07 22:48:59 +02:00
color: #666;
}
/* ── Dialog header icons (accent color) ── */
.dialog-header-icon {
2026-04-07 22:48:59 +02:00
color: #ff5e3a;
}
/* ── Icon spacing ── */
2026-04-07 22:48:59 +02:00
.icon-mr {
margin-right: 5px;
}
.icon-ml {
margin-left: 4px;
font-size: 12px;
}
/* ── Success check icon ── */
2026-04-07 22:48:59 +02:00
.check-icon {
color: #48bb78;
}
/* ── Move dialog ── */
.move-dialog-hint {
2026-04-07 22:48:59 +02:00
margin: 0 0 12px;
color: #718096;
font-size: 14px;
}
.folder-select-container {
2026-04-07 22:48:59 +02:00
max-height: 220px;
overflow-y: auto;
}
/* ── Share dialog sections ── */
.share-section {
2026-04-07 22:48:59 +02:00
margin: 15px 0;
}
/* ── Search spinner ── */
.search-spinner {
2026-04-07 22:48:59 +02:00
margin-right: 8px;
}
/* ── Search empty state text ── */
.search-empty-text {
2026-04-07 22:48:59 +02:00
color: var(--text-secondary, #64748b);
}
/* ── Notification upload current file ── */
.notif-upload-current {
2026-04-07 22:48:59 +02:00
font-size: 11px;
color: #64748b;
margin: 3px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── Login auth hint ── */
.auth-hint {
2026-04-07 22:48:59 +02:00
color: var(--text-secondary, #666);
margin-top: 4px;
display: block;
}
/* ── About modal (userMenu.js profile popup) ── */
2026-04-07 22:48:59 +02:00
.about-modal-body {
max-width: 380px;
}
.about-modal-header {
text-align: center;
padding: 20px 20px 0;
}
.about-modal-avatar {
2026-04-07 22:48:59 +02:00
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-role {
2026-04-07 22:48:59 +02:00
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-storage-label {
2026-04-07 22:48:59 +02:00
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-bar-bg {
2026-04-07 22:48:59 +02:00
background: #f1f5f9;
border-radius: 6px;
height: 8px;
overflow: hidden;
margin-bottom: 4px;
}
.about-modal-bar-fill {
2026-04-07 22:48:59 +02:00
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-close-btn {
2026-04-07 22:48:59 +02:00
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 ── */
2026-04-07 22:48:59 +02:00
[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 {
2026-04-07 22:48:59 +02:00
background: #1e293b;
border-color: #334155;
color: #cbd5e1;
}
[data-theme="dark"] .move-dialog-hint {
color: #94a3b8;
}
[data-theme="dark"] .search-empty-text {
color: #94a3b8;
}