mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
Merge pull request #1646 from ldericher/support-svg-logo
✨ add SVG support for logos
This commit is contained in:
@@ -3163,6 +3163,13 @@ body button {
|
|||||||
width:1em
|
width:1em
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Scale SVG logos to appropriate size */
|
||||||
|
|
||||||
|
.logo svg {
|
||||||
|
height:5rem;
|
||||||
|
width:5rem
|
||||||
|
}
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
|
|
||||||
#search-query::-webkit-search-cancel-button,
|
#search-query::-webkit-search-cancel-button,
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ body button {
|
|||||||
@apply h-[1em] w-[1em];
|
@apply h-[1em] w-[1em];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Scale SVG logos to appropriate size */
|
||||||
|
.logo svg {
|
||||||
|
@apply h-[5rem] w-[5rem];
|
||||||
|
}
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
#search-query::-webkit-search-cancel-button,
|
#search-query::-webkit-search-cancel-button,
|
||||||
#search-query::-webkit-search-decoration,
|
#search-query::-webkit-search-decoration,
|
||||||
|
|||||||
@@ -7,8 +7,14 @@
|
|||||||
<a href="{{ "" | relLangURL }}" class="flex">
|
<a href="{{ "" | relLangURL }}" class="flex">
|
||||||
<span class="sr-only">{{ .Site.Title | markdownify }}</span>
|
<span class="sr-only">{{ .Site.Title | markdownify }}</span>
|
||||||
|
|
||||||
|
{{ if eq $logo.MediaType.SubType "svg" }}
|
||||||
|
<span class="logo object-scale-down object-left nozoom">
|
||||||
|
{{ $logo.Content | safeHTML }}
|
||||||
|
</span>
|
||||||
|
{{ else }}
|
||||||
<img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}"
|
<img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}"
|
||||||
class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" />
|
class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user