Skip to content

Commit

Permalink
Fix navbar in two lines
Browse files Browse the repository at this point in the history
[why]
The navbar should only be one line, switching to smaller and smaller
items, until we reach a very small size (the smallest) where we finally
allow it to overlow into the next lines.
But that is not the case, the navbar switches between one and two lines
already at medium sized screens.

[how]
Correct the width point when the navbar titles switch from long-titles
to short-titles.

Introduce new width switch point that reduces the cell widths of the navbar
one they become very full and further reduction in width would result in
overflow into the next line.

Tested on Netscape and Chromium; the later needs bigger numbers (hmm)

Fixes: #1375

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Oct 9, 2023
1 parent 20da768 commit 9f7e6ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions _includes/css/nerd-font-tweaks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,12 @@ a.nerd-font-button:before {
}
}

@media only screen and (max-width: 785px) {
nav ul li {
min-width: 50px;
}
}

/* util */

.text-left {
Expand Down
4 changes: 2 additions & 2 deletions _includes/css/skeleton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@
}

/* top nav tweaks */
@media(min-width:768px) {
@media(min-width:940px) {
.hide-on-larger-view {
display: none !important;
}

}

@media(max-width:767px) {
@media(max-width:939px) {
.hide-on-smaller-view {
display: none !important;
}
Expand Down

0 comments on commit 9f7e6ee

Please sign in to comment.