From 370d1252f54bc90afd91bdeabeebeb0b38230353 Mon Sep 17 00:00:00 2001 From: Matt Bonsall Date: Mon, 31 Aug 2020 12:17:47 -0700 Subject: [PATCH] Change opacity on hover --- src/css/ingame_hud/building_placer.scss | 9 +++++++++ src/css/ingame_hud/interactive_tutorial.scss | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/css/ingame_hud/building_placer.scss b/src/css/ingame_hud/building_placer.scss index 8ca53655..c47e2792 100644 --- a/src/css/ingame_hud/building_placer.scss +++ b/src/css/ingame_hud/building_placer.scss @@ -18,6 +18,15 @@ background-color: #55585a; } + pointer-events: all; + + &:hover { + opacity: 10%; + .buildingImage { + opacity: 0%; + } + } + .buildingLabel { @include PlainText; @include S(margin-bottom, 2px); diff --git a/src/css/ingame_hud/interactive_tutorial.scss b/src/css/ingame_hud/interactive_tutorial.scss index 3585c2af..70acbe06 100644 --- a/src/css/ingame_hud/interactive_tutorial.scss +++ b/src/css/ingame_hud/interactive_tutorial.scss @@ -29,6 +29,15 @@ } } + pointer-events: all; + + &:hover { + opacity: 10%; + .buildingImage { + opacity: 0%; + } + } + .title { color: #fff; opacity: 0.5;