2025-05-23 00:57:12 +01:00
|
|
|
/* Hugo template to derive CSS variables from site and page parameters */
|
|
|
|
|
|
|
|
|
|
/* Do not remove the following comment. It is used by Hugo to render CSS variables.
|
2026-02-19 23:54:43 +00:00
|
|
|
{{- $layoutWidthValues := dict "normal" "80rem" "wide" "90rem" "full" "100%" -}}
|
|
|
|
|
{{- $layoutWidthDefault := index $layoutWidthValues "normal" -}}
|
2025-05-23 00:57:12 +01:00
|
|
|
|
2026-02-19 23:54:43 +00:00
|
|
|
{{- $maxPageWidth := (index $layoutWidthValues (site.Params.page.width | default "normal")) | default $layoutWidthDefault -}}
|
|
|
|
|
{{- $maxNavbarWidth := (index $layoutWidthValues (site.Params.navbar.width | default "normal")) | default $layoutWidthDefault -}}
|
|
|
|
|
{{- $maxFooterWidth := (index $layoutWidthValues (site.Params.footer.width | default "normal")) | default $layoutWidthDefault -}}
|
2025-05-23 00:57:12 +01:00
|
|
|
|
2026-02-19 23:54:43 +00:00
|
|
|
{{- $maxContentWidth := "72rem" -}}
|
2025-05-23 00:57:12 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--hextra-max-page-width: {{ $maxPageWidth }};
|
2026-01-24 00:02:50 +00:00
|
|
|
--hextra-max-content-width: {{ $maxContentWidth }};
|
2025-05-23 00:57:12 +01:00
|
|
|
--hextra-max-navbar-width: {{ $maxNavbarWidth }};
|
|
|
|
|
--hextra-max-footer-width: {{ $maxFooterWidth }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hextra-max-page-width {
|
|
|
|
|
max-width: var(--hextra-max-page-width);
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-24 00:02:50 +00:00
|
|
|
.hextra-max-content-width {
|
|
|
|
|
max-width: var(--hextra-max-content-width);
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-23 00:57:12 +01:00
|
|
|
.hextra-max-navbar-width {
|
|
|
|
|
max-width: var(--hextra-max-navbar-width);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hextra-max-footer-width {
|
|
|
|
|
max-width: var(--hextra-max-footer-width);
|
|
|
|
|
}
|