From ba0d9f64f71650b8cc6cf0441fdbc8258e9d0880 Mon Sep 17 00:00:00 2001 From: Lilian Date: Fri, 2 Aug 2024 20:03:25 +0200 Subject: [PATCH] [frontend] Add styling for mfm links and URLs --- Iceshrimp.Frontend/Components/MfmText.razor.css | 13 +++++++++++++ Iceshrimp.Frontend/wwwroot/css/app.css | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Iceshrimp.Frontend/Components/MfmText.razor.css b/Iceshrimp.Frontend/Components/MfmText.razor.css index 259174ff..6cd81cc2 100644 --- a/Iceshrimp.Frontend/Components/MfmText.razor.css +++ b/Iceshrimp.Frontend/Components/MfmText.razor.css @@ -55,9 +55,22 @@ } } +::deep { + .link-node { + color: var(--link); + } +} + +::deep { + .url-node { + color: var(--link); + } +} + ::deep { .hashtag-node { text-decoration-line: none; + color: var(--link); } } diff --git a/Iceshrimp.Frontend/wwwroot/css/app.css b/Iceshrimp.Frontend/wwwroot/css/app.css index 0cef8acf..d97178d9 100644 --- a/Iceshrimp.Frontend/wwwroot/css/app.css +++ b/Iceshrimp.Frontend/wwwroot/css/app.css @@ -21,7 +21,8 @@ --highlight-color: #544d77; --hover-color: #544f6f; --accent-color: linear-gradient(to right, #9A92FF, #8372F5); - --notice-color: #ffc684 + --notice-color: #ffc684; + --link: #9E9EFF }