mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-08 10:34:26 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1506281000 | ||
![]() |
a0a550d070 | ||
![]() |
0fe6e477a4 | ||
![]() |
a8618e1da3 | ||
![]() |
e724130159 | ||
![]() |
831fc66534 | ||
![]() |
ba8631b6a3 | ||
![]() |
0092588d87 |
@@ -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";
|
||||||
|
@@ -25,3 +25,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// scss-docs-end export
|
// scss-docs-end export
|
||||||
|
// stylelint-enable selector-pseudo-class-no-unknown
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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 */
|
||||||
|
@@ -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
|
||||||
|
@@ -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>
|
||||||
|
@@ -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
4
package-lock.json
generated
@@ -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": {
|
||||||
|
@@ -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",
|
||||||
|
Reference in New Issue
Block a user