1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Change opacity on hover

This commit is contained in:
Matt Bonsall 2020-08-31 12:17:47 -07:00
parent 4bcef8e725
commit 370d1252f5
2 changed files with 18 additions and 0 deletions

View File

@ -18,6 +18,15 @@
background-color: #55585a; background-color: #55585a;
} }
pointer-events: all;
&:hover {
opacity: 10%;
.buildingImage {
opacity: 0%;
}
}
.buildingLabel { .buildingLabel {
@include PlainText; @include PlainText;
@include S(margin-bottom, 2px); @include S(margin-bottom, 2px);

View File

@ -29,6 +29,15 @@
} }
} }
pointer-events: all;
&:hover {
opacity: 10%;
.buildingImage {
opacity: 0%;
}
}
.title { .title {
color: #fff; color: #fff;
opacity: 0.5; opacity: 0.5;