Make logos 0.3 opacity

This commit is contained in:
natsoni 2024-07-31 12:19:07 +02:00
parent 87d2f6cf90
commit 5314f35974
No known key found for this signature in database
GPG Key ID: C65917583181743B
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);
}
}