Skip to content

Commit

Permalink
Only hyphenate on small screens
Browse files Browse the repository at this point in the history
Fixes #2820
  • Loading branch information
jayhesselberth committed Nov 25, 2024
1 parent c40ba2c commit 08fddca
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions inst/BS5/assets/pkgdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
.row > main {
// Ensure contents never become unreadably wide
max-width: 50rem;

// And that we can break and hypenate very long words
overflow-wrap: break-word;
hyphens: auto;
}

@media (max-width: 800px) {
.row > main {
// break and hypenate very long words on small screens
overflow-wrap: break-word;
hyphens: auto;
}
}

// Put extra space between content and navbar
@include media-breakpoint-only(xl) {
.container .row { justify-content: space-evenly; }
Expand Down

0 comments on commit 08fddca

Please sign in to comment.