From 08fddcaa661688fa1af5defad87ca38289658a23 Mon Sep 17 00:00:00 2001 From: Jay Hesselberth Date: Mon, 25 Nov 2024 06:51:58 -0700 Subject: [PATCH] Only hyphenate on small screens Fixes #2820 --- inst/BS5/assets/pkgdown.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/inst/BS5/assets/pkgdown.scss b/inst/BS5/assets/pkgdown.scss index 86d40cc6b..fda44c10d 100644 --- a/inst/BS5/assets/pkgdown.scss +++ b/inst/BS5/assets/pkgdown.scss @@ -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; }