Skip to content

Commit

Permalink
fix: inline the logo instead
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud authored and hodory committed Dec 16, 2024
1 parent 4562f4a commit 64ef512
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,10 @@ html.dark {
display: inline-block;
}

.tw-inline {
display: inline;
}

.tw-flex {
display: flex;
}
Expand All @@ -833,10 +837,6 @@ html.dark {
height: 2.5rem;
}

.tw-h-6 {
height: 1.5rem;
}

.\!tw-max-h-0 {
max-height: 0px !important;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="{{ .Site.Home.RelPermalink }}" title="{{ .Site.Title }}">
{{- with .Site.Params.header.title -}}
{{- with .logo -}}
{{- dict "Src" . "Class" "tw-inline-block tw-h-6 tw-align-text-bottom tw-mr-1" "Height" "36" "Width" "36" | partial "plugin/image.html" -}} {{- end -}}
{{- dict "Src" . "Class" "tw-inline tw-align-text-bottom tw-mr-1" "Height" "28" "Width" "28" | partial "plugin/image.html" -}} {{- end -}}
{{- with .pre -}}
<span class="tw-mr-1">{{ . | safeHTML }}</span>
{{- end -}}
Expand Down Expand Up @@ -108,7 +108,7 @@
<a href="{{ .Site.Home.RelPermalink }}" title="{{ .Site.Title }}">
{{- with .Site.Params.header.title -}}
{{- with .logo -}}
{{- dict "Src" . "Class" "tw-inline-block tw-h-6 tw-align-text-bottom tw-mr-1" "Height" "36" "Width" "36" | partial "plugin/image.html" -}}
{{- dict "Src" . "Class" "tw-inline tw-align-text-bottom tw-mr-1" "Height" "28" "Width" "28" | partial "plugin/image.html" -}}
{{- end -}}
{{- with .pre -}}
<span class="tw-mr-1">{{ . | safeHTML }}</span>
Expand Down

0 comments on commit 64ef512

Please sign in to comment.