1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Show available upgrade count in toolbar

This commit is contained in:
tobspr
2020-05-14 12:13:33 +02:00
parent 3de5d45ad8
commit e43a22b56d
4 changed files with 92 additions and 2 deletions

View File

@@ -91,5 +91,40 @@
left: 50%;
transform: translateX(-50%);
}
&:not(.hasBadge) .badge {
display: none;
}
&.hasBadge {
@include InlineAnimation(1s ease-in-out infinite) {
50% {
transform: scale(1.04);
}
}
.badge {
position: absolute;
@include S(bottom, -12px);
left: 50%;
transform: translateX(-50%);
background: #333;
@include PlainText;
display: flex;
justify-content: center;
align-items: center;
@include S(min-width, 5px);
@include S(height, 10px);
@include S(padding, 1px, 3px, 2px);
@include S(border-radius, 4px);
border: #{D(1px)} solid #fff;
@include InlineAnimation(1s ease-in-out infinite) {
50% {
transform: translateX(-50%) scale(1.05);
}
}
}
}
}
}

View File

@@ -160,6 +160,19 @@
pointer-events: none;
opacity: 0.3;
}
&.buyable {
@include InlineAnimation(1s ease-in-out infinite) {
0% {
}
50% {
background-color: lighten($colorGreenBright, 10);
}
100% {
}
}
}
}
&.maxLevel {