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

Make shapes unpinnable. The current goal shape uses a special pin icon.

This commit is contained in:
hexagonhexagon
2020-06-05 20:33:35 -04:00
parent a2ee16589f
commit 0885bd6727
4 changed files with 42 additions and 8 deletions

View File

@@ -132,15 +132,37 @@
}
&.alreadyPinned {
opacity: 0.1 !important;
pointer-events: none;
opacity: 0.3 !important;
}
&.isGoal {
background: uiResource("icons/current_goal_marker.png") center center / 95% no-repeat;
opacity: 0.3 !important;
cursor: default;
pointer-events: none;
}
&.pinned {
opacity: 0.1;
pointer-events: none;
cursor: default;
opacity: 0.3;
@include InlineAnimation(0.3s ease-in-out) {
0% {
opacity: 1;
transform: scale(0.8);
}
30% {
opacity: 1;
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
}
&.unpinned {
opacity: 0.6;
@include InlineAnimation(0.3s ease-in-out) {
0% {
opacity: 1;