D
D
Dmitry Podabed2017-02-18 19:37:57
css
Dmitry Podabed, 2017-02-18 19:37:57

How to fix sidebar?

There is a site caddysmellsliketrees.ru. With grief, I made a sidebar and an accordion menu in half. But I was tormented by bugs that I don't have enough knowledge to fix: the height of the sidebar remains expanded even after shrinking the accordion, clicking on links from the menu does not work in mobile browsers. Sources are here .
cc4cc5f4684646579be44fb910179c28.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timurkin, 2017-02-19
@debian2

The problem is that the drop-down menu block, although hidden, takes up space:

.dropdown{
position: absolute;
bottom: -100vh;
visibility: hidden
}

You can fix it somehow like this:
ul.navigation__list.dropdown{
height: 0; 
overflow-y: hidden;
}
.dropdown__toggle:hover>.dropdown{
height: auto;
overflow-y: visible; //или scroll
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question