From a273a7a7a0ee6835f10308fe41582d99b1b360d4 Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 12 Dec 2025 21:51:37 +0100 Subject: [PATCH] Add language switching and improve table styling Add h4 styling Improve footnotes styling Add table styling with alternating row colors Make site multilingual with language switching Update footer to use translations Improve language handling in navigation links --- custom/styles/base.css | 41 +++++++++++++++++++++++++ custom/templates/base.php | 64 ++++++++++++++++++++++++++++++++------- 2 files changed, 94 insertions(+), 11 deletions(-) diff --git a/custom/styles/base.css b/custom/styles/base.css index 8ff1228..478a4f6 100644 --- a/custom/styles/base.css +++ b/custom/styles/base.css @@ -28,6 +28,7 @@ h1, h2, h3, h4, h5, h6 { margin-top: 1.3em; text-wrap: pretty; } +h4 { font-weight: 700} a { color: var(--color-green); @@ -113,6 +114,10 @@ main { font-size: 1.2rem; line-height: 1.35em; } + .footnotes { + margin-top:1rem; + hr {border: 1px var(--color-grey) dashed} + } } .button { @@ -121,6 +126,42 @@ main { } } +table { + margin-top: 1.3em; + border-collapse: collapse; + width: 100%; + + thead { + tr { + background-color: var(--color-green); + color: white; + + th { + padding: 0.6rem; + text-align: left; + font-weight: 600; + } + } + } + + tbody { + tr { + &:nth-child(odd) { + background-color: white; + } + + &:nth-child(even) { + background-color: oklch(0.96 0.005 173.93); + } + + td { + padding: 0.5rem 0.6rem; + border-bottom: 1px solid oklch(0.9 0.01 173.93); + } + } + } +} + /* BUTTONS */ .button { display: inline-block; diff --git a/custom/templates/base.php b/custom/templates/base.php index 40be390..4a1771f 100644 --- a/custom/templates/base.php +++ b/custom/templates/base.php @@ -13,7 +13,7 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'], ?> - + @@ -81,16 +81,42 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],
@@ -102,15 +128,31 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],