From b543399e0a4646ab51b225bf65440ebb9e2d03d8 Mon Sep 17 00:00:00 2001 From: Nick Colley <2445413+NickColley@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:03:26 +0000 Subject: [PATCH] fix: hide invisible content consistently (#2254) Some other parts of the interface for example URLs in profiles use the invisible class, move this to the top level global file so it'll be applied everywhere. --- src/routes/_components/status/StatusContent.html | 10 ---------- src/scss/global.scss | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/routes/_components/status/StatusContent.html b/src/routes/_components/status/StatusContent.html index 87e92d34..69c02644 100644 --- a/src/routes/_components/status/StatusContent.html +++ b/src/routes/_components/status/StatusContent.html @@ -67,16 +67,6 @@ color: var(--very-deemphasized-link-color); } - :global(.status-content .invisible) { - /* copied from Mastodon */ - font-size: 0; - line-height: 0; - display: inline-block; - width: 0; - height: 0; - position: absolute; - } - :global(.underline-links .status-content a) { text-decoration: underline; } diff --git a/src/scss/global.scss b/src/scss/global.scss index 16d0ab85..b7ab8bdf 100644 --- a/src/scss/global.scss +++ b/src/scss/global.scss @@ -207,3 +207,13 @@ textarea { .inline-emoji { font-family: CountryFlagEmojiPolyfill, PinaforeEmoji, sans-serif; } + +.invisible { + /* copied from Mastodon */ + font-size: 0; + line-height: 0; + display: inline-block; + width: 0; + height: 0; + position: absolute; +}