Media query help-Technical Documentation Page

Sidebar has one issue. It is not fixed. Media queries are not working as intended. What should be changed?

Why do you have a scroll bar on your ul if you are not making the it as fixed ??

I have scrollbar on ul because I only want ul to be scrolled not heading.
But I want whole sidebar to be fixed i.e heading + ul