Compare commits

...

8 Commits

Author SHA1 Message Date
Mark Dumay
1506281000 Merge pull request #156 from gethinode/develop
SEO
2023-02-18 17:21:32 +01:00
mark
a0a550d070 Fix scss issue 2023-02-18 17:01:03 +01:00
mark
0fe6e477a4 Bump package version 2023-02-18 16:55:24 +01:00
mark
a8618e1da3 Fix SEO issue 2023-02-18 16:54:44 +01:00
mark
e724130159 Refine scss definitions 2023-02-18 07:44:38 +01:00
Mark Dumay
831fc66534 Merge pull request #153 from gethinode/develop
Fix rendering of scss docs
2023-02-18 07:29:48 +01:00
mark
ba8631b6a3 Bump package version 2023-02-18 07:23:26 +01:00
mark
0092588d87 Fix rendering of scss 2023-02-18 07:22:53 +01:00
10 changed files with 24 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ $light: {{ site.Params.style.light | default "#f8f9fa" }
$dark: {{ site.Params.style.dark | default "#212529" }}; $dark: {{ site.Params.style.dark | default "#212529" }};
$navbar-offset: {{ if site.Params.navigation.fixed }}{{ site.Params.navigation.offset | default "4em" }}{{ else }}0em{{ end }}; $navbar-offset: {{ if site.Params.navigation.fixed }}{{ site.Params.navigation.offset | default "4em" }}{{ else }}0em{{ end }};
$enable-dark-mode: {{ site.Params.main.enableDarkMode | default true }} !default; $enable-dark-mode: {{ site.Params.main.enableDarkMode | default true }} !default;
$enable-important-utilities: true !default;
// Include default variable overrides // Include default variable overrides
@import "common/variables.scss"; @import "common/variables.scss";

View File

@@ -25,3 +25,4 @@
} }
// scss-docs-end export // scss-docs-end export
// stylelint-enable selector-pseudo-class-no-unknown

View File

@@ -17,7 +17,7 @@ $font-weight-bold: 600 !default;
$font-weight-bolder: bolder !default; $font-weight-bolder: bolder !default;
strong { strong {
font-weight: 600 !important; font-weight: 600 if($enable-important-utilities, !important, null);
} }
// scss-docs-end font // scss-docs-end font

View File

@@ -4,5 +4,5 @@
.btn-primary:active, .btn-primary:active,
.btn-primary.active, .btn-primary.active,
.open > .dropdown-toggle.btn-primary { .open > .dropdown-toggle.btn-primary {
color: #fff !important; color: #fff if($enable-important-utilities, !important, null);
} }

View File

@@ -13,15 +13,15 @@
/* Remove border from toggler */ /* Remove border from toggler */
.navbar-toggler { .navbar-toggler {
border: 0 !important; border: 0 if($enable-important-utilities, !important, null);
} }
.navbar-toggler:focus, .navbar-toggler:focus,
.navbar-toggler:active, .navbar-toggler:active,
.navbar-toggler-icon:focus { .navbar-toggler-icon:focus {
outline: none !important; outline: none if($enable-important-utilities, !important, null);
box-shadow: none !important; box-shadow: none if($enable-important-utilities, !important, null);
border: 0 !important; border: 0 if($enable-important-utilities, !important, null);
} }
/* Lines of the Toggler */ /* Lines of the Toggler */

View File

@@ -1,4 +1,4 @@
// stylelint-disable function-name-case // stylelint-disable function-name-case, declaration-no-important
// scss-docs-start colored-links // scss-docs-start colored-links
@each $color, $value in $theme-colors { @each $color, $value in $theme-colors {
@@ -6,16 +6,20 @@
$color-rgb: to-rgb($value); $color-rgb: to-rgb($value);
.link-bg-#{$color} { .link-bg-#{$color} {
color: $contrast-color !important; // stylelint-disable-line declaration-no-important color: $contrast-color if($enable-important-utilities, !important, null);
background-color: RGBA($color-rgb, var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null); // stylelint-disable-line annotation-no-unknown background-color: RGBA($color-rgb, var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
@if $link-shade-percentage != 0 { @if $link-shade-percentage != 0 {
&:hover, &:hover,
&:focus { &:focus {
color: if($contrast-color == $color-contrast-light, shade-color($contrast-color, $link-shade-percentage), tint-color($contrast-color, $link-shade-percentage)) !important; // stylelint-disable-line declaration-no-important color: if($contrast-color == $color-contrast-light,
shade-color($contrast-color, $link-shade-percentage),
tint-color($contrast-color, $link-shade-percentage))
if($enable-important-utilities, !important, null);
} }
} }
} }
} }
// scss-docs-end colored-links // scss-docs-end colored-links
// stylelint-enable function-name-case, declaration-no-important

View File

@@ -185,19 +185,19 @@
</a> </a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbar-color-theme"> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbar-color-theme">
<li> <li>
<a class="dropdown-item" data-bs-theme-value="light"> <a class="dropdown-item" data-bs-theme-value="light" href="#!">
{{- partial "assets/icon.html" (dict "icon" "fas sun theme-icon") }} {{- partial "assets/icon.html" (dict "icon" "fas sun theme-icon") }}
{{ T "colorLight" }} {{ T "colorLight" }}
</a> </a>
</li> </li>
<li> <li>
<a class="dropdown-item" data-bs-theme-value="dark"> <a class="dropdown-item" data-bs-theme-value="dark" href="#!">
{{- partial "assets/icon.html" (dict "icon" "fas moon theme-icon") }} {{- partial "assets/icon.html" (dict "icon" "fas moon theme-icon") }}
{{ T "colorDark" }} {{ T "colorDark" }}
</a> </a>
</li> </li>
<li> <li>
<a class="dropdown-item" data-bs-theme-value="auto"> <a class="dropdown-item" data-bs-theme-value="auto" href="#!">
{{- partial "assets/icon.html" (dict "icon" "fas circle-half-stroke theme-icon" ) }} {{- partial "assets/icon.html" (dict "icon" "fas circle-half-stroke theme-icon" ) }}
{{ T "colorAuto" }} {{ T "colorAuto" }}
</a> </a>

View File

@@ -25,6 +25,7 @@
{{- $capture_start = printf "// scss-docs-start %s" $name -}} {{- $capture_start = printf "// scss-docs-start %s" $name -}}
{{- $capture_end = printf "// scss-docs-end %s" $name -}} {{- $capture_end = printf "// scss-docs-end %s" $name -}}
{{- end -}} {{- end -}}
{{- $extension = strings.TrimLeft "." $extension }}
{{- else -}} {{- else -}}
{{- errorf "File format not supported (line %s): %s" .Position $file -}} {{- errorf "File format not supported (line %s): %s" .Position $file -}}
{{- end -}} {{- end -}}
@@ -71,7 +72,7 @@
</ul> </ul>
<div class="border-start border-end border-bottom mb-3"> <div class="border-start border-end border-bottom mb-3">
<div class="collapse multi-{{ $id }}{{ if $show }} show{{ end }} syntax-highlight" id="body-{{ $id }}"> <div class="collapse multi-{{ $id }}{{ if $show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
{{- highlight (trim $match "\r\n") "toml" "" -}} {{- highlight (trim $match "\r\n") $extension "" -}}
</div> </div>
<div class="collapse multi-{{ $id }}{{ if not $show }} show{{ end }} p-3" id="footer-{{ $id }}"><i>...</i></div> <div class="collapse multi-{{ $id }}{{ if not $show }} show{{ end }} p-3" id="footer-{{ $id }}"><i>...</i></div>
</div> </div>

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.9.1", "version": "0.9.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.9.1", "version": "0.9.3",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.9.1", "version": "0.9.3",
"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",