From 942f017b523664424fca994680490026ca11dcf2 Mon Sep 17 00:00:00 2001 From: zPlus Date: Mon, 15 Apr 2024 11:16:35 +0200 Subject: [PATCH] Change background of highlighted comment for dark theme. --- freepost/static/css/freepost.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/freepost/static/css/freepost.css b/freepost/static/css/freepost.css index 7f208cd7..fab08144 100644 --- a/freepost/static/css/freepost.css +++ b/freepost/static/css/freepost.css @@ -822,11 +822,17 @@ a.logo:visited { word-wrap: break-word; } - /* Give the comment that's linked to in the URL location hash a lightyellow background color */ + /* Highlight a comment when targeted by URL (eg. freepo.st/post/#) */ .container > .content > .post > .comments > .comment:target { background-color: lightyellow; } + @media (prefers-color-scheme: dark) { + .container > .content > .post > .comments > .comment:target { + background-color: slategray; + } + } + .container > .content > .search { margin-bottom: 3rem; }