Fixed position of dropdowns that overlapped with navbar

This commit is contained in:
Lucien Cartier-Tilet 2020-05-02 15:54:03 +02:00
parent 70c1e8153e
commit 7759dde4b6
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 8 additions and 5 deletions

View File

@ -308,14 +308,14 @@ header {
&:focus-within {
.dropdown {
opacity: 1;
top: $navbar-height / 1.3;
top: $navbar-height;
z-index: 5;
pointer-events: auto;
}
#table-of-contents {
opacity: 1;
top: $navbar-height / 1.3;
opacity: 1;
z-index: 5;
height: 500%;
pointer-events: auto;
@ -353,10 +353,13 @@ header {
float: right;
overflow-y: auto;
height: 0%;
width: 400px;
transform: translateX(0);
transition: height 500ms ease-in-out, opacity 500ms ease-in-out;
width: 75%;
min-width: 350px;
transform: translateX(-45%);
font-size: 0.9em;
top: -40px;
transition: height 500ms ease-in-out, opacity 500ms ease-in-out, top 500ms ease-in-out;
h2 {
font-size: 1.2em;