From 6fd37985c8285ea2676764d2308ab3df3011bb63 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 21 Jan 2019 22:33:33 +0300 Subject: [PATCH] Add hover effect to language menu --- public/src/css/titlescreen.css | 19 ++++++++++++++++--- public/src/js/assets.js | 3 +-- public/src/views/titlescreen.html | 1 + 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/public/src/css/titlescreen.css b/public/src/css/titlescreen.css index acea827..55b6921 100644 --- a/public/src/css/titlescreen.css +++ b/public/src/css/titlescreen.css @@ -47,11 +47,9 @@ position: absolute; bottom: 0; left: 0; - background-repeat: no-repeat; - background-size: auto 70%; - background-position: 15% center; width: 7em; height: 4em; + color: #000; } #lang:focus-within{ outline: #4d90fe auto 5px; @@ -62,6 +60,8 @@ opacity: 0; width: 100%; height: 100%; + color: #000; + cursor: pointer; } #lang-id{ position: absolute; @@ -75,3 +75,16 @@ line-height: 2.75em; z-index: 0; } +#lang-icon{ + position: absolute; + width: 2.8em; + height: 2.8em; + padding: 0.6em; + fill: currentColor; +} +#lang:hover #lang-icon{ + color: #f00; +} +#lang:hover #lang-id::before { + -webkit-text-stroke: 0.25em #f00; +} diff --git a/public/src/js/assets.js b/public/src/js/assets.js index fce6a89..91eb0fa 100644 --- a/public/src/js/assets.js +++ b/public/src/js/assets.js @@ -78,8 +78,7 @@ var assets = { "mimizu.png", "results_flowers.png", "results_mikoshi.png", - "results_tetsuohana.png", - "globe.svg" + "results_tetsuohana.png" ], "audioSfx": [ "don.wav", diff --git a/public/src/views/titlescreen.html b/public/src/views/titlescreen.html index 71f4dea..298cab7 100644 --- a/public/src/views/titlescreen.html +++ b/public/src/views/titlescreen.html @@ -3,6 +3,7 @@
+