From a13ad08101a1eedfcdab388dfda52e4f73d82a7b Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:17:26 +0100 Subject: [PATCH] css: add external-link utility class Adds an .external-link utility class, to be used together with the existing .link utility, for adding the correct styles to the open_in_new icon without having to duplicate the markup each time. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- assets/css/global.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/css/global.css b/assets/css/global.css index 5f336ca857..5ceb76c5b9 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -18,6 +18,12 @@ @apply text-blue-light underline underline-offset-2 dark:text-blue-dark; } + .external-link { + .icon:after { + @apply text-base ml-1; + } + } + .invertible { @apply dark:hue-rotate-180 dark:invert dark:filter; }