Index | Thread | Search

From:
Paul W. Rankin <hello@paulwrankin.com>
Subject:
httpd: removing italic CSS from directories in directory index
To:
tech@openbsd.org
Date:
Tue, 21 May 2024 12:51:42 +1000

Download raw body.

Thread
  • Paul W. Rankin:

    httpd: removing italic CSS from directories in directory index

Hello,

I very much appreciate the new directory index in httpd. Thank you espie@ :)

I would like to make a suggestion for the default CSS, which is to remove the 
italic styling of directories:

--- /Users/pwr/Downloads/css.h.in.txt~	2024-05-21 12:33:11
+++ /Users/pwr/Downloads/css.h.in.txt	2024-05-21 12:36:08
@@ -18,7 +18,6 @@
tr.sort th::after { content: "\a0\2195"; }
tr.dir td:nth-child(2n+1) { 
   font-weight: bold; 
-    font-style: italic; 
}
td, th { padding: 2pt 2em; }
td:first-child, th:first-child { padding-left: 5pt; }

As the CSS is currently “one size fits all”[1] I think it best to keep it 
minimal, and I personally find the italics not aesthetically pleasing, because 
the trailing slash gets pushed up against the last letter.

[1] https://cvsweb.openbsd.org/src/usr.sbin/httpd/css.h.in?rev=1.1&content-type=text/x-cvsweb-markup

Many thanks,

-- 
Paul W. Rankin
https://www.paulwrankin.com