asi-calculator/components/ResultRow/ResultRow.module.css

75 lines
1.1 KiB
CSS

.result {
margin-bottom: 1rem;
}
.result:last-child {
margin-bottom: 0;
}
.resultLine {
display: inline-grid;
grid-template-columns: 24px 1fr 2fr;
gap: 0.5rem;
align-items: center;
width: 100%;
margin-bottom: 0.25rem;
}
.fiat {
color: rgba(var(--foreground-rgb), 0.6);
}
.iconArrow {
margin-left: 0.25rem;
}
.logo {
margin-top: -0.15rem;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
background-color: rgba(var(--foreground-rgb), 0.5);
}
.logo img {
width: 23px;
height: 23px;
border-radius: 50%;
filter: grayscale(1);
}
.logo[data-symbol='AGIX'] img {
filter: invert(1) grayscale(1) contrast(1.5);
}
@media (prefers-color-scheme: dark) {
.logo[data-symbol='OCEAN'] img,
.logo[data-symbol='FET'] img {
filter: invert(1) grayscale(1);
}
.logo[data-symbol='AGIX'] img {
filter: grayscale(1);
}
}
.isValidating {
animation: flicker 2s infinite ease-out forwards;
}
@keyframes flicker {
0% {
opacity: 0.25;
}
50% {
opacity: 1;
}
100% {
opacity: 0.25;
}
}