mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 03:56:23 +03:00
Переделал выпадашку, теперь это кнопка
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
11
static/js/main.js
Normal file
11
static/js/main.js
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user