Skip to content

Commit

Permalink
Fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcook committed Jan 11, 2025
1 parent be6cfa5 commit 24d390c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/source/_static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,28 @@
--pst-font-weight-heading: 600;
}

/* Change header hight to make the logo a bit larger */
/* Change header height to make the logo a bit larger */
/* only on wider screens */
@media only screen and (min-width: 1170px){
:root {
--pst-header-height: 6rem;
}
}

/* Adjust layout on narrower screens */
@media only screen and (max-width: 1170px){
/* Condense link text in nav to preserve layout */
.navbar-header-items__center .nav-item {
font-stretch: ultra-condensed;
}
/* Reduce horizontal space between icons in nav and sidebar */
div.sidebar-header-items__end,
div.navbar-header-items__end,
ul.navbar-icon-links {
column-gap: 0.75rem;
}
}

/* Contributing landing page overview cards */

.contrib-card {
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
},
"header_links_before_dropdown": 2,
"header_dropdown_text": "Implementations",
"navbar_align": "left",
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
"icon_links": [
{
Expand Down

0 comments on commit 24d390c

Please sign in to comment.