themes/ezhil: reland link accessibility rework [deploy]

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-01-01 14:55:56 +05:30
parent 38c0bc5b10
commit a6f07fba4a
4 changed files with 13 additions and 14 deletions

View File

@ -19,7 +19,7 @@
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
{{- else -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
<a href="{{ .RelPermalink }}" class="linkplain">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}

View File

@ -17,7 +17,7 @@
{{ range $paginator.Pages }}
<div class="post">
<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
<a class="title linkplain" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
<span class="description">
{{ if isset .Params "description" }}
{{ .Description }}

View File

@ -18,7 +18,7 @@
<ul class="flat">
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
<a class="linkplain" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>

View File

@ -6,10 +6,18 @@ body {
font-size: 16px;
}
a, a:hover {
a {
color: #a00;
text-decoration-style: solid;
text-decoration-color: #a00;
text-decoration-thickness: .125em;
text-underline-offset: 1.5px;
word-break: break-word;
}
a:hover, .linkplain {
color: #a00;
text-decoration: none;
word-break: break-word;
}
html,button,input,select,textarea {
@ -79,15 +87,6 @@ blockquote em {
font-weight: 600;
}
a,a:hover {
color: #a00;
text-decoration: none
}
a:hover {
text-decoration: underline
}
h1,h2,h3,h4,h5,h6 {
font-family: raleway,sans-serif;
line-height: 1.2;