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

Allow hovering pinned shapes to enlarge them

This commit is contained in:
tobspr
2020-05-30 19:42:03 +02:00
parent 576bd3166f
commit 02fb6d53b5
6 changed files with 39 additions and 17 deletions

View File

@@ -31,6 +31,14 @@
@include S(height, 25px);
grid-column: 1 / 2;
grid-row: 1 / 3;
pointer-events: all;
transition: transform 0.1s ease-in-out;
position: relative;
z-index: 20;
&:hover {
transform: scale(2) translateX(#{D(5px)});
z-index: 21;
}
}
> .amountLabel,
@@ -64,19 +72,27 @@
grid-row: 1 / 2;
}
&.marked .amountLabel {
&::after {
content: " ";
position: absolute;
display: inline-block;
@include S(width, 9px);
@include S(height, 9px);
opacity: 0.8;
@include S(top, -4px);
@include S(left, -4px);
background: uiResource("icons/current_goal_marker.png") center center / contain no-repeat;
&.goal,
&.blueprint {
.amountLabel {
&::after {
content: " ";
position: absolute;
display: inline-block;
@include S(width, 8px);
@include S(height, 8px);
opacity: 0.8;
@include S(top, 4px);
@include S(left, -7px);
background: uiResource("icons/current_goal_marker.png") center center / contain no-repeat;
@include DarkThemeInvert;
@include DarkThemeInvert;
}
}
&.blueprint .amountLabel::after {
background-image: uiResource("icons/blueprint_marker.png");
background-size: 90%;
}
}
}