lumina/ui/views/components/latest-transactions-feed.scss
2025-11-30 04:03:12 +03:00

155 lines
3.5 KiB
SCSS

.latest-transactions-feed {
background: var(--color-bg-secondary, #1a1a2e);
border-radius: 8px;
padding: 1.5rem;
margin: 1rem 0;
.feed-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
h3 {
margin: 0;
font-size: 1.25rem;
color: var(--color-text-primary, #fff);
}
.live-indicator {
color: #4ade80;
font-size: 0.875rem;
font-weight: 600;
animation: pulse 2s infinite;
}
}
.txs-table-wrapper {
overflow-x: auto;
}
.txs-table {
width: 100%;
border-collapse: collapse;
thead {
tr {
border-bottom: 2px solid var(--color-border, #2d2d44);
}
th {
padding: 0.75rem;
text-align: left;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-secondary, #a0a0b0);
text-transform: uppercase;
}
}
tbody {
.tx-row {
border-bottom: 1px solid var(--color-border, #2d2d44);
cursor: pointer;
transition: background 0.2s;
&:hover {
background: var(--color-bg-hover, #252540);
}
&:first-child {
animation: slideIn 0.3s ease-out;
}
td {
padding: 0.75rem;
font-size: 0.875rem;
color: var(--color-text-primary, #fff);
}
.tx-hash code {
background: var(--color-bg-code, #16213e);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.8rem;
}
.tx-time {
color: var(--color-text-secondary, #a0a0b0);
}
.tx-ops {
font-weight: 600;
}
.tx-fee {
color: var(--color-accent, #3b82f6);
}
.status-badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
&.success {
background: rgba(74, 222, 128, 0.2);
color: #4ade80;
}
&.failed {
background: rgba(239, 68, 68, 0.2);
color: #ef4444;
}
}
}
}
}
.latest-txs-loading {
text-align: center;
padding: 2rem;
color: var(--color-text-secondary, #a0a0b0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.latest-transactions-feed {
padding: 1rem;
.txs-table {
font-size: 0.75rem;
th, td {
padding: 0.5rem;
}
.tx-hash code {
font-size: 0.7rem;
}
}
}
}