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 @@