Skip to content

Commit

Permalink
[Doc] Avoid needing two lines for header links
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Oct 9, 2023
1 parent eaed836 commit 134fce7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/doxygen/cantera-doxygen.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ div#top {
.sm-dox a {
color: var(--pst-color-text-muted) !important;
font-size: 16px;
padding: 0 8px;
}

.sm-dox a#selected {
Expand Down
20 changes: 20 additions & 0 deletions doc/sphinx/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,23 @@ p + div.math {
display: none;
visibility: hidden;
}

/* Make extra room for header section links when page isn't wide enough */
@media(max-width: 1199.88px) {
/* Collapse search field to just a button */
button.search-button-field .search-button__default-text {
display: none;
visibility: hidden;
}
.search-button-field > :not(svg) {
display: none;
visibility: hidden;
}

/* Hide text portion of the Cantera logo */
.navbar-brand img {
width: 36px;
object-fit: cover;
object-position: left
}
}

0 comments on commit 134fce7

Please sign in to comment.