Fix lighthouse remarks: icon sizes, noopener

This commit is contained in:
Alex Shpak 2021-05-20 18:58:02 +02:00
parent 195138cad0
commit 553d378db3
5 changed files with 11 additions and 4 deletions

View File

@ -170,6 +170,11 @@ ul.pagination {
label {
line-height: 0;
}
img.book-icon {
height: 1.5em;
width: 1.5em;
}
}
.book-search {
@ -226,6 +231,7 @@ ul.pagination {
img {
height: 1em;
width: 1em;
}
nav > ul > li:first-child {
@ -239,6 +245,7 @@ ul.pagination {
img {
height: 1em;
width: 1em;
margin-inline-end: $padding-8;
}
}

View File

@ -1 +1 @@
{"Target":"book.min.9e217e8fd1922c0fc0926a9b07763aa75679e57e0b01deab420c944511684929.css","MediaType":"text/css","Data":{"Integrity":"sha256-niF+j9GSLA/AkmqbB3Y6p1Z55X4LAd6rQgyURRFoSSk="}}
{"Target":"book.min.3e90539cf7130f0a89ba2f8b9f54ac5e5ecdd1fa345b6c8e3e5a83ec6f19ec8e.css","MediaType":"text/css","Data":{"Integrity":"sha256-PpBTnPcTDwqJui+Ln1SsXl7N0fo0W2yOPlqD7G8Z7I4="}}

View File

@ -31,7 +31,7 @@
{{ if .Page.Params.bookCollapseSection }}
<input type="checkbox" id="section-{{ md5 .Page }}" class="toggle" {{ if or $current $ancestor }}checked{{ end }} />
<label for="section-{{ md5 .Page }}" class="flex justify-between">
<a {{ if .Page.Content }}href="{{ .Page.Permalink }}"{{ end }} class="{{ if $current }}active{{ end }}">
<a {{ if .Page.Content }}href="{{ .Page.Permalink }}"{{ else }}role="button"{{ end }} class="{{ if $current }}active{{ end }}">
{{- partial "docs/title" .Page -}}
</a>
</label>

View File

@ -7,6 +7,6 @@
{{ with .Get "relref" }}
{{ $ref = relref $ . }}
{{ end }}
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" rel="noopener" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
{{ $.Inner | markdownify }}
</a>