Merge pull request #5391 from mempool/natsoni/add-opacity-pools-logo

Set pool logos opacity to 0.3
This commit is contained in:
softsimon 2024-07-31 18:34:09 +02:00 committed by GitHub
commit 87c9f920c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 18 deletions

View File

@ -50,7 +50,7 @@
<ng-container *ngFor="let pool of accelerationInfo.pools">
<img *ngIf="accelerationInfo.poolsData[pool]"
class="pool-logo"
[class.highlight]="pool === accelerationInfo?.minedByPoolUniqueId"
[style.opacity]="accelerationInfo?.minedByPoolUniqueId && pool !== accelerationInfo?.minedByPoolUniqueId ? '0.3' : '1'"
[src]="'/resources/mining-pools/' + accelerationInfo.poolsData[pool].slug + '.svg'"
onError="this.src = '/resources/mining-pools/default.svg'"
[alt]="'Logo of ' + pool.name + ' mining pool'">

View File

@ -32,21 +32,4 @@
top: -1px;
margin-right: 3px;
}
.highlight {
filter: drop-shadow(0 0 5px #905cf4);
animation: pulse 1s infinite;
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}