609 lines
No EOL
11 KiB
CSS
609 lines
No EOL
11 KiB
CSS
/* Add these styles to your existing styles.css file */
|
|
|
|
/* Theme Toggle */
|
|
.theme-toggle-icon {
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.theme-toggle-icon:hover {
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .theme-toggle-icon:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Make sure theme transitions work */
|
|
body,
|
|
.card,
|
|
.navbar,
|
|
.sidebar,
|
|
input,
|
|
select,
|
|
textarea,
|
|
button,
|
|
.modal-content,
|
|
.file-item,
|
|
.folder-item {
|
|
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
/* Making sure the styles apply properly to light/dark themes */
|
|
:root {
|
|
--primary-color: #4a6bff;
|
|
--primary-hover: #3a5bed;
|
|
--secondary-color: #6c757d;
|
|
--success-color: #28a745;
|
|
--danger-color: #dc3545;
|
|
--warning-color: #ffc107;
|
|
--info-color: #17a2b8;
|
|
--light-color: #f8f9fa;
|
|
--dark-color: #343a40;
|
|
--background-color: #1e2029;
|
|
--card-bg: #282a36;
|
|
--text-color: #f8f8f2;
|
|
--text-muted: #bd93f9;
|
|
--border-color: #44475a;
|
|
--transition-speed: 0.3s;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
/* Ensure these are applied */
|
|
--bg: #121418;
|
|
--card-bg: #1e2029;
|
|
--text: #f2f3f8;
|
|
--primary-color-rgb: 109, 93, 252;
|
|
}
|
|
|
|
/* Theme script fix */
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
/* Global dropzone overlay for quick uploads */
|
|
.global-dropzone {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(5px);
|
|
z-index: 9999;
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.global-dropzone.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.dropzone-content {
|
|
text-align: center;
|
|
color: white;
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
background-color: rgba(var(--primary-color-rgb), 0.3);
|
|
border: 3px dashed rgba(255, 255, 255, 0.5);
|
|
max-width: 500px;
|
|
width: 90%;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.dropzone-icon {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.dropzone-content h3 {
|
|
font-size: 1.8rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.dropzone-content p {
|
|
opacity: 0.8;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Upload toast notification */
|
|
.upload-toast {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
width: 350px;
|
|
background-color: var(--card-bg);
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
|
|
z-index: 1080;
|
|
overflow: hidden;
|
|
display: none;
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
}
|
|
|
|
.upload-toast.active {
|
|
display: block;
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.upload-toast-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.8rem 1rem;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.upload-toast-header i {
|
|
margin-right: 0.75rem;
|
|
}
|
|
|
|
.upload-toast-close {
|
|
margin-left: auto;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.upload-toast-close:hover {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.upload-toast-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.upload-toast-progress-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.upload-toast-progress-bar-container {
|
|
height: 8px;
|
|
background-color: var(--border-color);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.upload-toast-progress-bar {
|
|
height: 100%;
|
|
width: 0;
|
|
background-color: var(--primary-color);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* File and folder views */
|
|
.files-container {
|
|
padding: 20px;
|
|
min-height: 300px;
|
|
}
|
|
|
|
/* Grid view */
|
|
.files-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.grid-view .folder-item,
|
|
.grid-view .file-item {
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
border: 1px solid var(--border-color);
|
|
position: relative;
|
|
transition: all 0.3s;
|
|
text-decoration: none;
|
|
color: var(--text-color);
|
|
height: 150px;
|
|
}
|
|
|
|
.grid-view .item-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 10px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.grid-view .folder-item .item-icon {
|
|
color: #f1c40f;
|
|
}
|
|
|
|
.grid-view .item-info {
|
|
width: 100%;
|
|
}
|
|
|
|
.grid-view .item-name {
|
|
font-weight: 500;
|
|
margin-bottom: 5px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.grid-view .item-details {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* File actions */
|
|
.file-actions {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
display: flex;
|
|
gap: 5px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.folder-item:hover .file-actions,
|
|
.file-item:hover .file-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.action-btn {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border: none;
|
|
color: white;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
.action-btn.edit:hover {
|
|
background: var(--info-color);
|
|
}
|
|
|
|
.action-btn.delete:hover {
|
|
background: var(--danger-color);
|
|
}
|
|
|
|
/* Empty folder */
|
|
.empty-folder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 300px;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 3rem;
|
|
color: var(--border-color);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.empty-message h3 {
|
|
margin-bottom: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.empty-message p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.empty-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Main styles for the file management system */
|
|
.browser-container {
|
|
background-color: var(--card-bg);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
|
|
margin-bottom: 30px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.browser-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.browser-title {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.browser-title h2 {
|
|
margin: 0 0 0 10px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.browser-title i {
|
|
font-size: 1.5rem;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.browser-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Breadcrumbs */
|
|
.breadcrumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.breadcrumb-item:hover {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.breadcrumb-separator {
|
|
margin: 0 8px;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
/* Search bar */
|
|
.search-container {
|
|
position: relative;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.search-container input {
|
|
padding: 8px 15px 8px 35px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border-color);
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
color: var(--text-color);
|
|
width: 200px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.search-container input:focus {
|
|
width: 250px;
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.search-btn {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* View toggle */
|
|
.view-toggle {
|
|
display: flex;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.view-btn {
|
|
background-color: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-muted);
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.view-btn:first-child {
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
|
|
.view-btn:last-child {
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
.view-btn.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 8px 15px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn.primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn.primary:hover {
|
|
background-color: var(--primary-hover);
|
|
}
|
|
|
|
.btn.secondary {
|
|
background-color: transparent;
|
|
color: var(--text-color);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn.secondary:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: var(--card-bg);
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
|
|
animation: modal-appear 0.3s forwards;
|
|
}
|
|
|
|
@keyframes modal-appear {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
color: var(--text-color);
|
|
opacity: 0.7;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
} |