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

Allow hiding Qiskit top nav bar in Furo #468

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

Unblocks #465.

This allows turning off the top nav bar with simply this CSS:

body {
  --qiskit-top-nav-bar-height: 0;
}

qiskit-ui-shell {
  display: none;
}

We'll correctly turn off all the height adjustments we had to make in _top-nav-bar.scss and qiskit-sphinx-theme.js with that config.

--

We'll use this CSS code in the Ecosystem theme, and we know Rustworkx will also want to use this code manually when adopting qiskit-sphinx-theme 1.13.

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good, thanks!

@Eric-Arellano Eric-Arellano merged commit 8b2708d into Qiskit:main Jul 7, 2023
5 checks passed
@Eric-Arellano Eric-Arellano deleted the allow-hiding-top-nav-bar branch July 7, 2023 12:18
Eric-Arellano added a commit to Eric-Arellano/qiskit_sphinx_theme that referenced this pull request Jul 7, 2023
Unblocks Qiskit#465.

This allows turning off the top nav bar with simply this CSS:

```css
body {
  --qiskit-top-nav-bar-height: 0;
}

qiskit-ui-shell {
  display: none;
}
```

We'll correctly turn off all the height adjustments we had to make in
`_top-nav-bar.scss` and `qiskit-sphinx-theme.js` with that config.

--

We'll use this CSS code in the Ecosystem theme, and we know Rustworkx
will also want to use this code manually when adopting
qiskit-sphinx-theme 1.13.
Eric-Arellano added a commit that referenced this pull request Jul 7, 2023
Unblocks #465.

This allows turning off the top nav bar with simply this CSS:

```css
body {
  --qiskit-top-nav-bar-height: 0;
}

qiskit-ui-shell {
  display: none;
}
```

We'll correctly turn off all the height adjustments we had to make in
`_top-nav-bar.scss` and `qiskit-sphinx-theme.js` with that config.

--

We'll use this CSS code in the Ecosystem theme, and we know Rustworkx
will also want to use this code manually when adopting
qiskit-sphinx-theme 1.13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants