Skip to content

Commit

Permalink
Fix layout more
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcook committed Jan 11, 2025
1 parent 24d390c commit 0313079
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions docs/source/_static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@

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

@media only screen and (min-width: 1180px){
:root {
--pst-header-height: 6rem;
}
}

/* Adjust layout on narrower screens */
@media only screen and (max-width: 1170px){
/* Adjust layout of nav to fit narrower screens */

@media only screen and (max-width: 1179px){
/* Condense link text in nav to preserve layout */
.navbar-header-items__center .nav-item {
font-stretch: ultra-condensed;
.navbar-header-items__center .nav-item:not(.dropdown-item) {
font-stretch: 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;
/* Shrink search button */
.search-button__default-text,
.search-button__kbd-shortcut {
display:none !important;
}
}

Expand Down Expand Up @@ -98,3 +99,11 @@ dl.cpp.enumerator {
p.breathe-sectiondef-title {
margin-top: 1rem;
}

/* 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 !important;
}

0 comments on commit 0313079

Please sign in to comment.