ui-nyla/src/pages/basedata/ConnectionsPage.module.css

90 lines
1.6 KiB
CSS

/* ConnectionsPage — supplemental styles for sync banner */
.syncBanner {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.875rem 1rem 0.875rem 1.125rem;
margin: 0 0 1rem;
background: linear-gradient(135deg, #fffbeb, #fef3c7);
border: 1px solid #fcd34d;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
animation: slidein 0.25s ease;
}
@keyframes slidein {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.syncSpinner {
flex-shrink: 0;
margin-top: 3px;
color: #d97706;
font-size: 1rem;
animation: spin 1.4s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.syncText {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.syncTitle {
font-weight: 600;
font-size: 0.9375rem;
color: #92400e;
}
.syncDetail {
font-size: 0.8125rem;
color: #78350f;
line-height: 1.5;
}
.syncDismiss {
flex-shrink: 0;
background: none;
border: none;
cursor: pointer;
color: #b45309;
padding: 2px 4px;
border-radius: 4px;
font-size: 0.875rem;
display: flex;
align-items: center;
transition: background 0.15s;
}
.syncDismiss:hover {
background: rgba(0, 0, 0, 0.06);
}
/* Dark theme */
:global(.dark-theme) .syncBanner {
background: rgba(251, 191, 36, 0.08);
border-color: rgba(251, 191, 36, 0.3);
}
:global(.dark-theme) .syncTitle {
color: #fcd34d;
}
:global(.dark-theme) .syncDetail {
color: #fde68a;
}
:global(.dark-theme) .syncDismiss {
color: #fbbf24;
}
:global(.dark-theme) .syncSpinner {
color: #fbbf24;
}