lumina/ui/views/components/data-refresh-indicator.scss
2025-11-29 23:13:05 +03:00

82 lines
1.6 KiB
SCSS

.data-refresh-indicator {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.85rem;
color: var(--color-text-dimmed, #666);
padding: 8px 12px;
background: var(--color-alt-bg, #f5f5f5);
border-radius: 6px;
}
.refresh-time {
display: flex;
align-items: center;
gap: 4px;
strong {
color: var(--color-text, #000);
font-weight: 600;
}
}
.refresh-button {
background: transparent;
border: 1px solid var(--color-border, #e0e0e0);
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s ease;
color: var(--color-text-dimmed, #666);
&:hover:not(:disabled) {
background: var(--color-bg, #fff);
border-color: var(--color-text, #000);
color: var(--color-text, #000);
transform: rotate(180deg);
}
&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
&.refreshing {
animation: spin 1s linear infinite;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
// Dark theme
[data-theme="dark"] .data-refresh-indicator,
.dark .data-refresh-indicator {
background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .refresh-time strong,
.dark .refresh-time strong {
color: #fff;
}
[data-theme="dark"] .refresh-button,
.dark .refresh-button {
border-color: rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.6);
&:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.4);
color: #fff;
}
}