jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
200 stars 32 forks source link

absent top border in hamburger menu for the active item #121

Closed 2bndy5 closed 2 years ago

2bndy5 commented 2 years ago

I've noticed that since resolving #58, the active item in the hamburger menu is missing the top border. image

Because I'm not entirely familiar with the solution for #58, I'm not really sure how to fix this.

2bndy5 commented 2 years ago

I'm still see this problem on the main branch. The conflicting rules I'm seeing are:


@media screen and (max-width: 76.1875em)
.md-nav--primary .md-nav__sticky {
  background-color: transparent;
  position: static;
  z-index: auto;
  /* I expect the box-shodow override to be here, but it isn't */
}

.md-nav__link.md-nav__sticky {
  box-shadow: 0 -.625em var(--md-default-bg-color),0 .625em var(--md-default-bg-color);
}
jbms commented 2 years ago

That's odd --- did you rebuild the bundles?

2bndy5 commented 2 years ago

yeah, I did it locally when I noticed it from checking #124

2bndy5 commented 2 years ago

I think its a specificity issue here, but I can't figure out how the problem didn't show in #121 CI. Maybe I resized my window since then...

2bndy5 commented 2 years ago

Nevermind, it was an old rendering from a different builder. I just browsed to the wrong build folder.

2bndy5 commented 2 years ago

I have to say, thank you for fixing the windows builds; it goes much faster now (WSL is annoyingly sluggish).