From 7b3d4eb2e8f73e2fdb1342b0270f65667e9dc98a Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 10 Jul 2022 13:45:39 +0200 Subject: [PATCH] add no link coloring to replies --- css/global.css | 2 +- js/posts.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/css/global.css b/css/global.css index 1f59a51..efdb9e2 100644 --- a/css/global.css +++ b/css/global.css @@ -41,7 +41,7 @@ li a:hover { a { text-decoration: none; } -a:link, a:visited { +a:link:not(.no-link-style), a:visited:not(.no-link-style) { color: var(--green); } a:hover { diff --git a/js/posts.js b/js/posts.js index 2553a68..56aa0f9 100644 --- a/js/posts.js +++ b/js/posts.js @@ -133,6 +133,8 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id) replyA.innerHTML += filterPost(reply_text.replace("\n"," ").substring(0,20)) replyA.appendChild(replyBr) + replyA.classList.add("no-link-style") + replyDiv.appendChild(replyA) newDiv.appendChild(replyDiv)