2026-02-12 09:41:25 +01:00
|
|
|
/* Styles for the favorites feature */
|
2025-04-02 03:43:44 +02:00
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Favorite indicator */
|
2025-04-02 03:43:44 +02:00
|
|
|
.favorite-indicator {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
right: 10px;
|
|
|
|
|
width: 25px;
|
|
|
|
|
height: 25px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
color: #ccc;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 5;
|
|
|
|
|
transition: all 0.2s ease;
|
2026-02-08 10:04:49 +03:30
|
|
|
|
|
|
|
|
[dir='rtl'] & {
|
|
|
|
|
left: 10px;
|
|
|
|
|
right: unset;
|
|
|
|
|
}
|
2025-04-02 03:43:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.favorite-indicator:hover {
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.favorite-indicator.active {
|
|
|
|
|
color: #ffc107;
|
|
|
|
|
text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Styles for the favorites view items */
|
2025-04-02 03:43:44 +02:00
|
|
|
.favorite-item {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Adjustments for grid view */
|
2025-04-02 03:43:44 +02:00
|
|
|
.file-card.favorite-item {
|
|
|
|
|
border-left: 3px solid #ffc107;
|
2026-02-08 10:04:49 +03:30
|
|
|
|
|
|
|
|
[dir='rtl'] & {
|
|
|
|
|
border-right: 3px solid #ffc107;
|
|
|
|
|
border-left: unset;
|
|
|
|
|
}
|
2025-04-02 03:43:44 +02:00
|
|
|
}
|
|
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Adjustments for list view */
|
2026-02-14 11:06:29 +01:00
|
|
|
.list-header.favorites-header {
|
|
|
|
|
grid-template-columns: 30px minmax(200px, 2fr) 1fr 1fr 120px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-02 03:43:44 +02:00
|
|
|
.file-item.favorite-item {
|
|
|
|
|
position: relative;
|
|
|
|
|
grid-template-columns: 30px minmax(200px, 2fr) 1fr 1fr 120px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.file-item.favorite-item .favorite-indicator {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Styles for the favorites-specific empty state */
|
2025-04-02 03:43:44 +02:00
|
|
|
.favorites-empty-state {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 50px 20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #6c757d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.favorites-empty-state i {
|
|
|
|
|
font-size: 48px;
|
|
|
|
|
color: #ffc107;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.favorites-empty-state p {
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
max-width: 400px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 09:41:25 +01:00
|
|
|
/* Animation for the favorite star */
|
2025-04-02 03:43:44 +02:00
|
|
|
@keyframes favorite-pulse {
|
|
|
|
|
0% { transform: scale(1); }
|
|
|
|
|
50% { transform: scale(1.2); }
|
|
|
|
|
100% { transform: scale(1); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.favorite-indicator.active {
|
|
|
|
|
animation: favorite-pulse 0.3s ease;
|
2026-02-13 09:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Star badge on file/folder cards (normal view) ── */
|
|
|
|
|
|
2026-02-13 11:41:50 +01:00
|
|
|
/* Grid view: star below the checkbox */
|
2026-02-13 09:32:16 +01:00
|
|
|
.file-card .favorite-star {
|
|
|
|
|
position: absolute;
|
2026-02-13 11:41:50 +01:00
|
|
|
top: 10px;
|
|
|
|
|
right: 38px;
|
2026-02-13 09:32:16 +01:00
|
|
|
font-size: 14px;
|
|
|
|
|
color: #ffc107;
|
|
|
|
|
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
|
|
|
|
|
z-index: 5;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2026-02-13 11:41:50 +01:00
|
|
|
right: unset;
|
|
|
|
|
left: 38px;
|
2026-02-13 09:32:16 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.file-card .favorite-star.active i {
|
|
|
|
|
animation: favorite-pulse 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* List view: small star next to the name */
|
|
|
|
|
.favorite-star-inline {
|
|
|
|
|
color: #ffc107;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
filter: drop-shadow(0 0 1px rgba(255, 193, 7, 0.4));
|
|
|
|
|
|
|
|
|
|
[dir='rtl'] & {
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
2025-04-02 03:43:44 +02:00
|
|
|
}
|