[PATCH htdocs] menu: fix spacing when wrapping links

Mike Frysinger vapier@gentoo.org
Wed Dec 20 03:06:01 GMT 2023


On narrow pages, as the links wrap around, they start to overlap
each other makes it visually hard to distinguish & click.  Set the
line-height to 2em which offsets the padding used so that they do
not overlap when wrapping, but the original amount of padding above
and below do not change.
---
 glibc.css | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glibc.css b/glibc.css
index 817276a09851..be710b38586b 100644
--- a/glibc.css
+++ b/glibc.css
@@ -35,16 +35,16 @@ h1.title {
 	border-right:1px solid #000;
 	border-left:1px solid #000;
 	border-bottom:0px solid #000;
-	padding: 10px 10px 10px 10px;
+	padding: 5px 10px 5px 10px;
 	voice-family: "\"}\"";
 	voice-family: inherit;
 	margin-left: 51px;
 	margin-right:51px;
 	margin-bottom:0px;
-	padding-bottom:10px;
 }
 
 ul.menu {
+	line-height: 2em;
 	list-style-type:none;
 	margin:0px;
 	padding:0px;
-- 
2.43.0



More information about the Libc-alpha mailing list