From a88624c1a5af7fc6ebfe59e9ab3cd2730b16f5f6 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 23 Mar 2024 17:30:36 +0100 Subject: [PATCH] link fixes, add devtest --- templates/devtest/gitea-ui.tmpl | 7 +++++++ web_src/css/base.css | 13 ++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl index f71b6611c5ec0..6341076323e94 100644 --- a/templates/devtest/gitea-ui.tmpl +++ b/templates/devtest/gitea-ui.tmpl @@ -2,6 +2,13 @@
+

Link

+
+ normal + muted + suppressed + silenced +

Button

Style: diff --git a/web_src/css/base.css b/web_src/css/base.css index 19fd22934d663..cd01437b48546 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -219,6 +219,10 @@ a { text-decoration-skip-ink: all; } +a:hover { + text-decoration-line: underline; +} + /* a = always colored, underlined on hover */ /* a.muted = colored on hover, underlined on hover */ /* a.suppressed = never colored, underlined on hover */ @@ -239,18 +243,13 @@ a.muted:hover [class*="color-text"], color: var(--color-primary); } -a.muted:hover, -a.suppressed:hover { - text-decoration-line: underline; -} - a.silenced:hover, a.suppressed:hover { color: inherit; } a.silenced:hover { - text-decoration: none; + text-decoration-line: none; } a.label, @@ -258,7 +257,7 @@ a.label, .ui .menu a, .ui.cards a.card, .issue-keyword a { - text-decoration: none !important; + text-decoration-line: none !important; } .ui.search > .results {