]> git.wh0rd.org - nano-editor.git/commitdiff
css: widen the text column on the news page by fourteen percent
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 19 Aug 2026 09:05:00 +0000 (11:05 +0200)
committerBenno Schulenberg <bensberg@telfort.nl>
Wed, 19 Aug 2026 09:05:00 +0000 (11:05 +0200)
This comes closest to the intended width of most news items
(on a wide-enough screen).

Also, do not wrap text inside <tt> tags.

style.css

index 904ef61fef918adc4d8aed619fd250a9f73d6869..0b08c2ad60c92c5439c2243e6a006c13c4f29bcc 100644 (file)
--- a/style.css
+++ b/style.css
@@ -49,6 +49,10 @@ a:active {
        color: var(--nano-a-inverted-color);
 }
 
+tt {
+       text-wrap-mode: nowrap;
+}
+
 * {
        box-sizing: border-box;
 }
@@ -108,7 +112,7 @@ div#news ul.details {
        flex-basis: 100%;
        flex-grow: 1;
        flex-shrink: 0;
-       max-width: 500px;
+       max-width: 570px;
        margin-top: 1em;
        margin-bottom: 0;
        padding-right: 0.5em;