Skip to content

Commit

Permalink
ungoofy the header at intermediate widths
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat authored and lwasser committed Aug 29, 2024
1 parent c66dfe7 commit 0da208c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions _static/pyos.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,45 @@ html[data-theme="dark"] {
--pyos-h1-color: var(--pyos-color-light);
}

/* --------------------------------------
De-jumble header items.
See https://github.com/pydata/pydata-sphinx-theme/pull/1784
*/

.bd-header .bd-header__inner {
padding: 0 1rem;
}

.bd-header .navbar-item {
height: unset;
max-height: unset;
}

@media (max-width: 960px) {
.bd-header .navbar-header-items {
flex-wrap: wrap;
row-gap: 0.5rem;
}
}

.bd-header .navbar-header-items__end,
.bd-header .navbar-header-items__center,
.bd-header .navbar-header-items__start {
flex-flow: nowrap;
}

.bd-header .navbar-header-items__start {
width: unset;
}

.bd-header .navbar-header-items__center {
margin-right: 0.25em !important;
}

.bd-header ul.navbar-nav {
flex-wrap: wrap;
}

/* -------------------------------------- */
/* Generated by https://gwfh.mranftl.com/ */

Expand Down

0 comments on commit 0da208c

Please sign in to comment.