Compare commits

...

7 Commits

Author SHA1 Message Date
Mark Dumay
c91642cbb8 Merge pull request #903 from gethinode/develop
Fix alignment of color-mode aware brand logo
2024-04-29 09:15:48 +02:00
Mark Dumay
12f334292a Merge branch 'main' into develop 2024-04-29 09:10:04 +02:00
Mark Dumay
9394ae46e8 Bump package release 2024-04-29 09:09:37 +02:00
Mark Dumay
aa82875644 Fix alignment of color-mode aware brand logo 2024-04-29 09:08:55 +02:00
Mark Dumay
6245c70de5 Merge pull request #900 from gethinode/develop
Support explicit overlay mode "none" setting
2024-04-28 14:27:48 +02:00
Mark Dumay
51a85ac675 Merge branch 'main' into develop 2024-04-28 14:12:27 +02:00
Mark Dumay
a9d62233b4 Support explicit overlay mode "none" setting 2024-04-28 14:11:52 +02:00
5 changed files with 17 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
// stylelint-disable annotation-no-unknown // stylelint-disable annotation-no-unknown
// scss-docs-start display-color // scss-docs-start display-color
.d-none-light { .d-none-light, .d-none-inline-light {
display: none if($enable-important-utilities, !important, null); display: none if($enable-important-utilities, !important, null);
} }
@@ -13,13 +13,21 @@
display: block if($enable-important-utilities, !important, null); display: block if($enable-important-utilities, !important, null);
} }
.d-none-inline-dark {
display: inline if($enable-important-utilities, !important, null);
}
@if $enable-dark-mode { @if $enable-dark-mode {
@include color-mode(dark) { @include color-mode(dark) {
.d-none-light { .d-none-light {
display: block if($enable-important-utilities, !important, null); display: block if($enable-important-utilities, !important, null);
} }
.d-none-dark { .d-none-inline-light {
display: inline if($enable-important-utilities, !important, null);
}
.d-none-dark, .d-none-inline-dark {
display: none if($enable-important-utilities, !important, null); display: none if($enable-important-utilities, !important, null);
} }
} }

View File

@@ -118,6 +118,7 @@ arguments:
values: values:
- light - light
- dark - dark
- none
group: partial group: partial
release: v0.23.0 release: v0.23.0
logo: logo:

View File

@@ -112,6 +112,7 @@
{{- $fixed := .fixed | default false -}} {{- $fixed := .fixed | default false -}}
{{- $overlay := .overlay | default false -}} {{- $overlay := .overlay | default false -}}
{{- $overlayMode := .overlayMode | default "dark" -}} {{- $overlayMode := .overlayMode | default "dark" -}}
{{- if eq $overlayMode "none" }}{{ $overlayMode = "" }}{{ end }}
{{- $color := .color | default "" -}} {{- $color := .color | default "" -}}
{{- $search := .search | default site.Params.navigation.search -}} {{- $search := .search | default site.Params.navigation.search -}}
{{- $searchModal := and $search site.Params.navigation.searchModal -}} {{- $searchModal := and $search site.Params.navigation.searchModal -}}
@@ -203,8 +204,8 @@
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}"> <a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
{{- if (and $logoLight $logoDark) -}} {{- if (and $logoLight $logoDark) -}}
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logoLight "height" 30) }} {{ $width := partial "utilities/GetWidth.html" (dict "path" $logoLight "height" 30) }}
<img src="{{if $absoluteURL }}{{ absURL $logoLight }}{{ else }}{{ $logoLight }}{{ end }}" class="d-none-dark" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}> <img src="{{if $absoluteURL }}{{ absURL $logoLight }}{{ else }}{{ $logoLight }}{{ end }}" class="d-none-inline-dark" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
<img src="{{if $absoluteURL }}{{ absURL $logoDark }}{{ else }}{{ $logoDark }}{{ end }}" class="d-none-light" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}> <img src="{{if $absoluteURL }}{{ absURL $logoDark }}{{ else }}{{ $logoDark }}{{ end }}" class="d-none-inline-light" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
{{- else if $logo -}} {{- else if $logo -}}
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logo "height" 30) }} {{ $width := partial "utilities/GetWidth.html" (dict "path" $logo "height" 30) }}
<img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}> <img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.23.9", "version": "0.23.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.23.9", "version": "0.23.11",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@fullhuman/postcss-purgecss": "^6.0.0", "@fullhuman/postcss-purgecss": "^6.0.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.23.9", "version": "0.23.11",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [ "keywords": [
"hugo", "hugo",