home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2024-04-15 09:16:35
Committer zPlus <zplus@peers.community> 2024-04-15 09:16:35
Commit 942f017 (patch)
Tree 100c4ce
Parent(s)

Change background of highlighted comment for dark theme.


commits diff: 438b462..942f017
1 file changed, 7 insertions, 1 deletiondownload


Diffstat
-rw-r--r-- freepost/static/css/freepost.css 8

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+7/-1 M   freepost/static/css/freepost.css
index 7f208cd..fab0814
old size: 23K - new size: 23K
@@ -822,11 +822,17 @@ a.logo:visited {
822 822 word-wrap: break-word;
823 823 }
824 824
825 - /* Give the comment that's linked to in the URL location hash a lightyellow background color */
825 + /* Highlight a comment when targeted by URL (eg. freepo.st/post/<post_id>#<comment_id>) */
826 826 .container > .content > .post > .comments > .comment:target {
827 827 background-color: lightyellow;
828 828 }
829 829
830 + @media (prefers-color-scheme: dark) {
831 + .container > .content > .post > .comments > .comment:target {
832 + background-color: slategray;
833 + }
834 + }
835 +
830 836 .container > .content > .search {
831 837 margin-bottom: 3rem;
832 838 }