From b3542d79f542faf35f3b9d122dcd0b1e9c5a50a5 Mon Sep 17 00:00:00 2001 From: Pro100ser Date: Wed, 18 Mar 2020 17:42:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=B2=D1=8B=D0=BF=D0=B0=D0=B4=D0=B0=D1=88=D0=BA?= =?UTF-8?q?=D1=83,=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=8D=D1=82?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/components/header.css | 14 +++++++++++--- static/js/main.js | 11 +++++++++++ templates/error.html | 5 +++-- templates/index.html | 9 +++++---- templates/registration.html | 5 +++-- templates/workshop.html | 5 +++-- 6 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 static/js/main.js diff --git a/static/css/components/header.css b/static/css/components/header.css index 9a8084f..d4715f9 100644 --- a/static/css/components/header.css +++ b/static/css/components/header.css @@ -111,20 +111,25 @@ .drop { position: relative; } -.drop:hover .dropdown { +/* .drop:hover .dropdown { left: -167px; background: #afadab; padding-top: 0px; border-radius: 9px; -} +} */ .drop:hover .contacts__schedule { color: #b9b9b9; + cursor: pointer; } .dropdown { + display: none; position: absolute; - left: -9999px; + left: -167px; + background: #afadab; + padding-top: 0px; + border-radius: 9px; } .drop-block { @@ -233,6 +238,9 @@ padding: 28px 0; margin: 0; } +.drop:hover .contacts__schedule_mod { + width: 116px; +} .drop:hover .dropdown_mod { left: -25px; } diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000..1072b38 --- /dev/null +++ b/static/js/main.js @@ -0,0 +1,11 @@ +var a = 0; +function activeClass() { + if (a == 0) { + document.getElementById('dropdown').style.display = "block"; + a = 1; + } + else { + document.getElementById('dropdown').style.display = "none"; + a = 0; + } +} \ No newline at end of file diff --git a/templates/error.html b/templates/error.html index bb003dc..304e56e 100644 --- a/templates/error.html +++ b/templates/error.html @@ -7,6 +7,7 @@ Jarvis + @@ -23,9 +24,9 @@