diff --git a/freepost/static/css/freepost.css b/freepost/static/css/freepost.css index 7f208cd..fab0814 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; }