Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling bug for "show_nav_level": 0 #1251

Closed
SimenZhor opened this issue Mar 15, 2023 · 1 comment
Closed

Styling bug for "show_nav_level": 0 #1251

SimenZhor opened this issue Mar 15, 2023 · 1 comment
Labels
kind: bug Something isn't working tag: CSS CSS and SCSS related issues

Comments

@SimenZhor
Copy link

Hi,

I noticed that "show_nav_level": 0 is probably not behaving as intended currently. The chevron/dropdown icons is jumping around and into the scroll-bar like so:

show_nav_level0

The issue seems possible to solve with text-alignment, but I'm not sure if there is a better way to do it. My "fix" that seems to work (in \src\pydata_sphinx_theme\assets\styles\components\_navbar-links.scss):

.toctree-checkbox {
    ~ ul {
      display: none;
    }
    ~ label i {
      transform: rotate(0deg);
      text-align: left;
    }
  }
  .toctree-checkbox:checked {
    ~ ul {
      display: block;
    }
    ~ label i {
      transform: rotate(180deg);
      text-align: right;
    }
  }
@trallard trallard added kind: bug Something isn't working tag: CSS CSS and SCSS related issues labels Jun 20, 2023
@trallard
Copy link
Collaborator

trallard commented Jul 1, 2024

This has been addressed in #1582

@trallard trallard closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working tag: CSS CSS and SCSS related issues
Projects
None yet
Development

No branches or pull requests

2 participants