Only use link color on elements with 'href', plus some cleanup

This commit is contained in:
Alex Shpak
2025-08-07 09:46:40 +02:00
parent 45d90424ab
commit 722c81beb0
5 changed files with 10 additions and 15 deletions
+3
View File
@@ -32,8 +32,11 @@ h5 {
a {
text-decoration: none;
&[href] {
color: var(--color-link);
}
}
img {
vertical-align: baseline;
+2 -2
View File
@@ -55,10 +55,10 @@
a {
text-decoration: none;
&:hover {
&[href]:hover {
text-decoration: underline;
}
&:visited {
&[href]:visited {
color: var(--color-visited-link);
}
}
+1 -1
View File
@@ -124,7 +124,7 @@
border-radius: $border-radius;
overflow: hidden;
text-wrap: nowrap;
color: var(--color-text);
color: var(--body-font-color);
span {
display: inline-block;
-7
View File
@@ -1,12 +1,5 @@
{{- $style := default "default" (.Get "style") -}}
{{- if .Get "href" }}
<a href="{{ .Get "href" }}" target="_blank" class="book-badge {{ $style }}">
{{- with .Get "title" }}<span class="book-badge-title">{{ . | plainify }}</span>{{ end -}}
{{- with .Get "value" }}<span class="book-badge-value">{{ . | plainify }}</span>{{ end -}}
</a>
{{ else }}
<span class="book-badge {{ $style }}">
{{- with .Get "title" }}<span class="book-badge-title">{{ . | plainify }}</span>{{ end -}}
{{- with .Get "value" }}<span class="book-badge-value">{{ . | plainify }}</span>{{ end -}}
</span>
{{ end -}}
+1 -2
View File
@@ -16,7 +16,6 @@
}
{{ end }}</style>{{ end -}}
<div class="book-columns book-columns-{{ .Ordinal }} {{ with .Get "class" }}{{ . }}{{ end }}">
{{ .Inner | safeHTML }}
{{ .InnerDeindent | safeHTML }}
</div>
{{ end -}}