From eddba13f59e27d911e0b3371ec4386957f200bed Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Fri, 28 Apr 2023 00:29:31 +0800 Subject: assets/css/cgit: improve UX on mobile devices - Decrease font size to 200% on smaller screens - Allow text to break into multiple lines in `table#header td.main` --- assets/css/cgit.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'assets') diff --git a/assets/css/cgit.css b/assets/css/cgit.css index 22b7958..66a89ed 100644 --- a/assets/css/cgit.css +++ b/assets/css/cgit.css @@ -120,9 +120,6 @@ div#cgit table#header td.main { white-space: nowrap; } -div#cgit table#header td.main a { -} - div#cgit table#header td.form { text-align: right; vertical-align: bottom; @@ -984,6 +981,12 @@ div#cgit { display: block; } + div#cgit table#header td.main { + font-size: 200%; + white-space: normal; + word-break: break-word; + } + div#cgit div.forms { margin-top: 0; display: block; -- cgit v1.2.3