Skip to content

Commit

Permalink
link fixes, add devtest
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 23, 2024
1 parent 778f3db commit a88624c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
7 changes: 7 additions & 0 deletions templates/devtest/gitea-ui.tmpl
Expand Up @@ -2,6 +2,13 @@
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/devtest.css?v={{AssetVersion}}">
<div class="page-content devtest ui container">
<div>
<h1>Link</h1>
<div>
<a href="#">normal</a>
<a class="muted" href="#">muted</a>
<a class="suppressed" href="#">suppressed</a>
<a class="silenced" href="#">silenced</a>
</div>
<h1>Button</h1>
<div>
Style:
Expand Down
13 changes: 6 additions & 7 deletions web_src/css/base.css
Expand Up @@ -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 */
Expand All @@ -239,26 +243,21 @@ 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,
.ui.search .results a,
.ui .menu a,
.ui.cards a.card,
.issue-keyword a {
text-decoration: none !important;
text-decoration-line: none !important;
}

.ui.search > .results {
Expand Down

0 comments on commit a88624c

Please sign in to comment.