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

Allow clicking on variants to select them

This commit is contained in:
tobspr
2020-06-24 20:44:41 +02:00
parent 8416562016
commit 3a846ab3c9
3 changed files with 43 additions and 0 deletions

View File

@@ -119,6 +119,9 @@
@include S(grid-gap, 5px);
.variant {
pointer-events: all;
cursor: pointer;
grid-row: 2 / 3;
@include S(border-radius, $globalBorderRadius);
background: rgba($ingameHudBg, 0.3);
@@ -130,6 +133,13 @@
@include S(padding, 3px);
@include S(grid-gap, 10px);
transition: background-color 0.12s ease-in-out;
&:hover:not(.active) {
background: rgba($colorBlueBright, 0.8);
opacity: 1;
}
&.active {
opacity: 1;
background-color: rgba($colorBlueBright, 0.8);