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
+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;
}