From b1d04f5b39df58e092ad503e9ccd0584b30936a1 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Sat, 1 Oct 2022 17:14:27 -0700 Subject: fileserver: better dark mode visited link contrast (#5105) PR #4066 added a dark color scheme to the file_server browse template. PR #4356 later set the links for the `:visited` pseudo-class, but did not set anything for the dark mode, resulting in poor contrast. I selected some new colors by feel. This commit also adds an `a:visited:hover` for both, to go along with the normal blue hover colors. --- modules/caddyhttp/fileserver/browse.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/caddyhttp/fileserver') diff --git a/modules/caddyhttp/fileserver/browse.html b/modules/caddyhttp/fileserver/browse.html index c0ea131..01537fc 100644 --- a/modules/caddyhttp/fileserver/browse.html +++ b/modules/caddyhttp/fileserver/browse.html @@ -27,6 +27,10 @@ a:visited { color: #800080; } +a:visited:hover { + color: #b900b9; +} + header, #summary { padding-left: 5%; @@ -244,6 +248,14 @@ footer { color: #62b2fd; } + a:visited { + color: #c269c2; + } + + a:visited:hover { + color: #d03cd0; + } + tr { border-bottom: 1px dashed rgba(255, 255, 255, 0.12); } -- cgit v1.2.3