Only use link color on elements with 'href', plus some cleanup
This commit is contained in:
+4
-1
@@ -32,7 +32,10 @@ h5 {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--color-link);
|
|
||||||
|
&[href] {
|
||||||
|
color: var(--color-link);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|||||||
@@ -55,10 +55,10 @@
|
|||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&[href]:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
&:visited {
|
&[href]:visited {
|
||||||
color: var(--color-visited-link);
|
color: var(--color-visited-link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-wrap: nowrap;
|
text-wrap: nowrap;
|
||||||
color: var(--color-text);
|
color: var(--body-font-color);
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// {{< steps >}}
|
// {{< steps >}}
|
||||||
.book-steps {
|
.book-steps {
|
||||||
>ol {
|
>ol {
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
{{- $style := default "default" (.Get "style") -}}
|
{{- $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 }}">
|
<span class="book-badge {{ $style }}">
|
||||||
{{- with .Get "title" }}<span class="book-badge-title">{{ . | plainify }}</span>{{ end -}}
|
{{- with .Get "title" }}<span class="book-badge-title">{{ . | plainify }}</span>{{ end -}}
|
||||||
{{- with .Get "value" }}<span class="book-badge-value">{{ . | plainify }}</span>{{ end -}}
|
{{- with .Get "value" }}<span class="book-badge-value">{{ . | plainify }}</span>{{ end -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end -}}
|
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
}
|
}
|
||||||
{{ end }}</style>{{ end -}}
|
{{ end }}</style>{{ end -}}
|
||||||
<div class="book-columns book-columns-{{ .Ordinal }} {{ with .Get "class" }}{{ . }}{{ end }}">
|
<div class="book-columns book-columns-{{ .Ordinal }} {{ with .Get "class" }}{{ . }}{{ end }}">
|
||||||
|
{{ .InnerDeindent | safeHTML }}
|
||||||
{{ .Inner | safeHTML }}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user