mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 10:04:22 +00:00
Change tertiary to body-tertiary
This commit is contained in:
@@ -99,7 +99,7 @@ As an example, the following shortcode displays a stacked card with icon that li
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* card path="about" padding="3" class="w-50" color="tertiary" header="publication" footer="none" */>}}
|
{{</* card path="about" padding="3" class="w-50" color="body-tertiary" header="publication" footer="none" */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@ De volgende shortcode toont een kaart met een icoon dat linkt naar de [over mij]
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* card path="about" padding="3" class="w-50" color="tertiary" header="publication" footer="none" */>}}
|
{{</* card path="about" padding="3" class="w-50" color="body-tertiary" header="publication" footer="none" */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
"href" Required address for the button or hyperlink.
|
"href" Required address for the button or hyperlink.
|
||||||
"class" Optional class attribute of the card element, e.g. “w-50”.
|
"class" Optional class attribute of the card element, e.g. “w-50”.
|
||||||
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", "body", or "tertiary". By default, no color is
|
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". By default, no
|
||||||
specified.
|
color is specified.
|
||||||
"padding": Optional padding of the content, either "0", "1", "2", "3", "4", "5", or "auto" (default).
|
"padding": Optional padding of the content, either "0", "1", "2", "3", "4", "5", or "auto" (default).
|
||||||
"header" Optional header components of the card, displayed in small caps. Supported values are "full"
|
"header" Optional header components of the card, displayed in small caps. Supported values are "full"
|
||||||
(default), "publication", "tags", and "none".
|
(default), "publication", "tags", and "none".
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
{{- $color := "" -}}
|
{{- $color := "" -}}
|
||||||
{{- with .color }}{{ $color = . }}{{ end -}}
|
{{- with .color }}{{ $color = . }}{{ end -}}
|
||||||
{{- if $color -}}
|
{{- if $color -}}
|
||||||
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{- if not (in $supportedColors $color) -}}
|
{{- if not (in $supportedColors $color) -}}
|
||||||
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
||||||
"fixed" Optional flag to indicate the navbar should stick to the top, defaults to false.
|
"fixed" Optional flag to indicate the navbar should stick to the top, defaults to false.
|
||||||
"color" Optional background color of the navbar, either "primary", "secondary", "success",
|
"color" Optional background color of the navbar, either "primary", "secondary", "success",
|
||||||
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "tertiary". The default color is
|
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". The
|
||||||
none.
|
default color is none.
|
||||||
"mode" Optional flag to include a color mode switcher, default is "true" (if dark mode is enabled).
|
"mode" Optional flag to include a color mode switcher, default is "true" (if dark mode is enabled).
|
||||||
"search" Optional flag to include a search input, default is "true".
|
"search" Optional flag to include a search input, default is "true".
|
||||||
"logo" Optional address of the logo image, defaults to the parameter "logo" set in the "main" section of
|
"logo" Optional address of the logo image, defaults to the parameter "logo" set in the "main" section of
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
{{- $color := "" -}}
|
{{- $color := "" -}}
|
||||||
{{- with .color -}}
|
{{- with .color -}}
|
||||||
{{- $color = . -}}
|
{{- $color = . -}}
|
||||||
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{- if not (in $supportedColors $color) -}}
|
{{- if not (in $supportedColors $color) -}}
|
||||||
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
"href" Optional address for the button or hyperlink.
|
"href" Optional address for the button or hyperlink.
|
||||||
"class" Optional class attribute of the card element, e.g. “w-50”.
|
"class" Optional class attribute of the card element, e.g. “w-50”.
|
||||||
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", "body", or "tertiary". By default, no color is
|
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". By default, no
|
||||||
specified.
|
color is specified.
|
||||||
"content" Optional content of the card.
|
"content" Optional content of the card.
|
||||||
"thumbnail" Optional thumbnail image url, displayed on top or the left of the card.
|
"thumbnail" Optional thumbnail image url, displayed on top or the left of the card.
|
||||||
-->
|
-->
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
{{- $color := "" -}}
|
{{- $color := "" -}}
|
||||||
{{- with .color }}{{ $color = . }}{{ end -}}
|
{{- with .color }}{{ $color = . }}{{ end -}}
|
||||||
{{- if $color -}}
|
{{- if $color -}}
|
||||||
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{- if not (in $supportedColors $color) -}}
|
{{- if not (in $supportedColors $color) -}}
|
||||||
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
{{- errorf "Invalid value for param 'color': %s" $color -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
"state" Optional state of the button, either "enabled" (default), "disabled", "active", or "inactive".
|
"state" Optional state of the button, either "enabled" (default), "disabled", "active", or "inactive".
|
||||||
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
||||||
"color" Optional theme color of the element, either "primary" (default), "secondary", "success",
|
"color" Optional theme color of the element, either "primary" (default), "secondary", "success",
|
||||||
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "tertiary".
|
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary".
|
||||||
"outline" Optional flag indicating the button should be outlined, either "false" (default) or "true".
|
"outline" Optional flag indicating the button should be outlined, either "false" (default) or "true".
|
||||||
"badge" Optional positioned badge to display on top of the button.
|
"badge" Optional positioned badge to display on top of the button.
|
||||||
"aria-label" Optional assistive label for the badge.
|
"aria-label" Optional assistive label for the badge.
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
{{ $color := "primary" -}}
|
{{ $color := "primary" -}}
|
||||||
{{ with .color }}{{ $color = . }}{{ end -}}
|
{{ with .color }}{{ $color = . }}{{ end -}}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" $color -}}
|
{{ errorf "Invalid value for param 'color': %s" $color -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
Displays an alert. The shortcode supports the following arguments:
|
Displays an alert. The shortcode supports the following arguments:
|
||||||
"color": Optional theme color of the alert, either "primary" (default), "secondary", "success", "danger",
|
"color": Optional theme color of the alert, either "primary" (default), "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white" or "black", "body", or "tertiary".
|
"warning", "info", "light", "dark", "white" or "black", "body", or "body-tertiary".
|
||||||
"dismissible" Optional flag to indicate the alert is dismissible, defaults to false.
|
"dismissible" Optional flag to indicate the alert is dismissible, defaults to false.
|
||||||
"icon" Optional class and name of a Font Awesome icon to include.
|
"icon" Optional class and name of a Font Awesome icon to include.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{ $color := "primary" -}}
|
{{ $color := "primary" -}}
|
||||||
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{ $color = "primary" -}}
|
{{ $color = "primary" -}}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
"state" Optional state of the button, either "enabled" (default), "disabled", "active", or "inactive".
|
"state" Optional state of the button, either "enabled" (default), "disabled", "active", or "inactive".
|
||||||
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
"size" Optional size of the button, either "sm", "md" (default), or "lg".
|
||||||
"color": Optional theme color of the element, either "primary" (default), "secondary", "success",
|
"color": Optional theme color of the element, either "primary" (default), "secondary", "success",
|
||||||
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "tertiary".
|
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary".
|
||||||
"outline" Optional flag indicating the button should be outlined, either "false" (default) or "true".
|
"outline" Optional flag indicating the button should be outlined, either "false" (default) or "true".
|
||||||
"badge" Optional positioned badge to display on top of the button.
|
"badge" Optional positioned badge to display on top of the button.
|
||||||
"aria-label" Optional label for the badge.
|
"aria-label" Optional label for the badge.
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
{{ $color := "primary" -}}
|
{{ $color := "primary" -}}
|
||||||
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{ $error = true }}
|
{{ $error = true }}
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
"path" Required path of the page.
|
"path" Required path of the page.
|
||||||
"class" Optional class attribute of the card element, e.g. “w-50”.
|
"class" Optional class attribute of the card element, e.g. “w-50”.
|
||||||
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", "body", or "tertiary". By default, no color is
|
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". By default, no
|
||||||
specified.
|
color is specified.
|
||||||
"padding": Optional padding of the content, either "0", "1", "2", "3", "4", "5", or "auto" (default).
|
"padding": Optional padding of the content, either "0", "1", "2", "3", "4", "5", or "auto" (default).
|
||||||
"header" Optional header components of the card, displayed in small caps. Supported values are "full"
|
"header" Optional header components of the card, displayed in small caps. Supported values are "full"
|
||||||
(default), "publication", "tags", and "none".
|
(default), "publication", "tags", and "none".
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
{{ $color := "" -}}
|
{{ $color := "" -}}
|
||||||
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{ if $color }}
|
{{ if $color }}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{ $error = true -}}
|
{{ $error = true -}}
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
"size" Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl".
|
"size" Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl".
|
||||||
"style" Optional style of the navbar, either "light" (default) or "dark".
|
"style" Optional style of the navbar, either "light" (default) or "dark".
|
||||||
"color" Optional background color of the navbar, either "primary", "secondary", "success",
|
"color" Optional background color of the navbar, either "primary", "secondary", "success",
|
||||||
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "tertiary". The default color is
|
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". The
|
||||||
none.
|
default color is none.
|
||||||
"mode" Optional flag to include a color mode switcher, default is "true" (if dark mode is enabled).
|
"mode" Optional flag to include a color mode switcher, default is "true" (if dark mode is enabled).
|
||||||
"search" Optional flag to include a search input, default is "true".
|
"search" Optional flag to include a search input, default is "true".
|
||||||
"logo" Optional address of the logo image.
|
"logo" Optional address of the logo image.
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
{{ $error := false }}
|
{{ $error := false }}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body" "body-tertiary" -}}
|
||||||
{{ $supportedFlags := slice "true" "false" -}}
|
{{ $supportedFlags := slice "true" "false" -}}
|
||||||
|
|
||||||
{{ $id := add .Ordinal 1 }}
|
{{ $id := add .Ordinal 1 }}
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
"path" Required path of the page.
|
"path" Required path of the page.
|
||||||
"class" Optional class attribute of the card element, e.g. “w-50”.
|
"class" Optional class attribute of the card element, e.g. “w-50”.
|
||||||
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", or "tertiary". By default, no color is
|
"warning", "info", "light", "dark", "white", "black", or "body-tertiary". By default, no color
|
||||||
specified.
|
is specified.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{- $error := false -}}
|
{{- $error := false -}}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
{{- $color := "" -}}
|
{{- $color := "" -}}
|
||||||
{{- with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{- with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{- if $color -}}
|
{{- if $color -}}
|
||||||
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "tertiary" -}}
|
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body-tertiary" -}}
|
||||||
{{- if not (in $supportedColors $color) -}}
|
{{- if not (in $supportedColors $color) -}}
|
||||||
{{- errorf "Invalid value for param 'color': %s" .Position -}}
|
{{- errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{- $error = true -}}
|
{{- $error = true -}}
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
Displays a spinner. The shortcode supports the following arguments:
|
Displays a spinner. The shortcode supports the following arguments:
|
||||||
"color": Optional theme color of the alert, either "primary" (default), "secondary", "success", "danger",
|
"color": Optional theme color of the alert, either "primary" (default), "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", "body", or "tertiary".
|
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary".
|
||||||
"grow" Optional flag to indicate the spinner is growing instead of rotating, defaults to false.
|
"grow" Optional flag to indicate the spinner is growing instead of rotating, defaults to false.
|
||||||
"class": Optional class attribute of the spinner wrapping element, e.g. “text-center”.
|
"class": Optional class attribute of the spinner wrapping element, e.g. “text-center”.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{ $color := "primary" -}}
|
{{ $color := "primary" -}}
|
||||||
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{ $color = "primary" -}}
|
{{ $color = "primary" -}}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Displays a tooltip for a link. The shortcode supports the following arguments:
|
Displays a tooltip for a link. The shortcode supports the following arguments:
|
||||||
"color": Optional theme color of the element, either "primary" (default), "secondary", "success",
|
"color": Optional theme color of the element, either "primary" (default), "secondary", "success",
|
||||||
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "tertiary".
|
"danger", "warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary".
|
||||||
"title" Required text to display in the tooltip.
|
"title" Required text to display in the tooltip.
|
||||||
"href" Required address for the button or hyperlink.
|
"href" Required address for the button or hyperlink.
|
||||||
"placement" Optional position of the tooltip: "top" (default), "bottom", "left", or "right".
|
"placement" Optional position of the tooltip: "top" (default), "bottom", "left", or "right".
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
{{ $color := "primary" -}}
|
{{ $color := "primary" -}}
|
||||||
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
{{ with .Get "color" }}{{ $color = . }}{{ end -}}
|
||||||
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "tertiary" -}}
|
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
|
||||||
{{ if not (in $supportedColors $color) -}}
|
{{ if not (in $supportedColors $color) -}}
|
||||||
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
{{ errorf "Invalid value for param 'color': %s" .Position -}}
|
||||||
{{ $error = true }}
|
{{ $error = true }}
|
||||||
|
Reference in New Issue
Block a user