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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user