From 2a919d5d56ab9ec419e7d735ac5e74a1a8977400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Z=C3=A1le=C5=A1=C3=A1k?= Date: Wed, 23 Dec 2020 22:00:59 +0100 Subject: [PATCH] =?UTF-8?q?p=C5=99id=C3=A1n=C3=AD=20Settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 46 +++++++++++++++++++++++++++++++++++++++++++++- index.php | 14 ++++++++++++++ js/controller.js | 21 +++++++++++++++++++++ js/model.js | 17 ++++++++++++++--- js/view.js | 16 ++++++++++++++++ 5 files changed, 110 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index 12b2185..0f0e36d 100644 --- a/css/style.css +++ b/css/style.css @@ -31,6 +31,7 @@ li:hover { li { cursor: pointer; user-select: none; + white-space: nowrap; } li::before { @@ -91,9 +92,52 @@ sub { position: absolute; z-index: 5; display: none; - background-color: rgba(0, 0, 0, 0.438); + background-color: rgba(0, 0, 0, 0.75); width: 100%; height: 100%; justify-items: center; align-items: center; } + +.settingsBtn { + float: right; +} + +.settingsbg { + position: absolute; + background-color: rgba(0, 0, 0, 0.75); + width: 100%; + height: 100%; + display: none; + justify-items: center; + align-items: center; +} + +.settings { + background-color: white; + width: 30vw; + height: 30vh; + padding: 1.5em; + border: 5px solid #c3c3c3; +} + +form { + display: grid; + grid-template-columns: max-content auto; + align-items: center; + column-gap: 2em; + text-align: end; +} + +#settingsClose { + background-color: rgb(88, 88, 88); + color: rgb(255, 255, 255); + cursor: pointer; + user-select: none; + width: 2em; + height: 2em; + margin: 0 0 1em auto; + display: flex; + justify-content: center; + align-items: center; +} diff --git a/index.php b/index.php index ba54c66..2b37039 100644 --- a/index.php +++ b/index.php @@ -17,6 +17,7 @@