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 committed Jun 5, 2024
1 parent cfdf56e commit ab9dbc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 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 @@ -837,6 +841,10 @@ html.dark {
height: 1.5rem;
}

.tw-h-8 {
height: 2rem;
}

.\!tw-max-h-0 {
max-height: 0px !important;
}
Expand Down Expand Up @@ -941,6 +949,10 @@ html.dark {
padding-top: 8rem;
}

.tw-align-middle {
vertical-align: middle;
}

.tw-align-text-bottom {
vertical-align: text-bottom;
}
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 ab9dbc4

Please sign in to comment.