From 8a89df18ef2ea6b71a9a39643b5ff3edabd58655 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 21:55:11 +0100 Subject: [PATCH 1/8] Change: set the font size of header to 1rem and to 0.86em to its children Signed-off-by: Heiko August --- static/css/base.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/css/base.css b/static/css/base.css index 15c532bd..60a3340c 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -64,6 +64,7 @@ body > * { body > header { margin: 0px auto; padding: 6px 10px 10px 10px; + font-size: 1rem; box-shadow: 0px 0px 5px #000000; /* Stripes! */ background-image: repeating-linear-gradient(to bottom, #323536 0, #323536 1px, #3c3e40 1px, #3c3e40 2px); @@ -74,6 +75,7 @@ body > header { #download-fast { background: url("../img/layout/download-package.gif") 12px 50% no-repeat, rgba(85, 87, 89, 0.4); + font-size: 0.86em; border: 0 solid; border-radius: 6px; list-style: none; @@ -83,7 +85,6 @@ body > header { } #download-fast a { color: #ccc; - font-size: 11px; text-decoration: none; } #download-fast a:focus, #download-fast a:hover { From fcfcb0ff04819f6e90e51b412bc3ad5ad3dd5ffd Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 21:55:48 +0100 Subject: [PATCH 2/8] Fix: set a background colour for ancient browsers without knowlege of colour gradients Use the property background for both cases instead of background-color and background-image. Signed-off-by: Heiko August --- static/css/base.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/css/base.css b/static/css/base.css index 60a3340c..d94eda1b 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -66,8 +66,9 @@ body > header { padding: 6px 10px 10px 10px; font-size: 1rem; box-shadow: 0px 0px 5px #000000; + background: #323536; /* Stripes! */ - background-image: repeating-linear-gradient(to bottom, #323536 0, #323536 1px, #3c3e40 1px, #3c3e40 2px); + background: repeating-linear-gradient(to bottom, #323536 0, #323536 1px, #3c3e40 1px, #3c3e40 2px); display: flex; justify-content: space-between; align-items: flex-end; From cbc97afe14f25d09cab504b79ba641dd99239bfb Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 21:57:58 +0100 Subject: [PATCH 3/8] Change: set uniform padding and remove the unit for a 0-value Signed-off-by: Heiko August --- static/css/base.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index d94eda1b..05170678 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -62,9 +62,9 @@ body > * { } body > header { - margin: 0px auto; - padding: 6px 10px 10px 10px; font-size: 1rem; + margin: 0 auto; + padding: 0.625em; box-shadow: 0px 0px 5px #000000; background: #323536; /* Stripes! */ From 29636b63eb0e7553ef4af8d6884c766a2526ac55 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 21:59:38 +0100 Subject: [PATCH 4/8] Change: replace the pixel-based radius with a value with relative unit em Signed-off-by: Heiko August --- static/css/base.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/base.css b/static/css/base.css index 05170678..f0882d4d 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -78,7 +78,7 @@ body > header { background: url("../img/layout/download-package.gif") 12px 50% no-repeat, rgba(85, 87, 89, 0.4); font-size: 0.86em; border: 0 solid; - border-radius: 6px; + border-radius: 0.25em; list-style: none; margin: 0; padding: 6px 10px 6px 45px; From 9097a81a9ab526899d47a549a33ca51aab6dfd43 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 22:00:51 +0100 Subject: [PATCH 5/8] Change: set the background position with unit em and adjust the padding for the contained list Signed-off-by: Heiko August --- static/css/base.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index f0882d4d..aed73b34 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -75,14 +75,15 @@ body > header { } #download-fast { - background: url("../img/layout/download-package.gif") 12px 50% no-repeat, rgba(85, 87, 89, 0.4); font-size: 0.86em; + background: url("../img/layout/download-package.gif") 0.875em 50% no-repeat, rgba(85, 87, 89, 0.4); border: 0 solid; border-radius: 0.25em; list-style: none; margin: 0; - padding: 6px 10px 6px 45px; text-align: left; + padding-block: 0.25em; + padding-inline: calc(0.875em + 21px + 0.875em) 0.75em; } #download-fast a { color: #ccc; From 799761edf0cb61653c247a3b28df195b3752615c Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 22:03:07 +0100 Subject: [PATCH 6/8] Change: display: block; for the download links and a small gap between the links Signed-off-by: Heiko August --- static/css/base.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/css/base.css b/static/css/base.css index aed73b34..ce0902d9 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -85,9 +85,13 @@ body > header { padding-block: 0.25em; padding-inline: calc(0.875em + 21px + 0.875em) 0.75em; } +#download-fast li:not(:last-child) { + margin-block-end: 0.125em; +} #download-fast a { color: #ccc; text-decoration: none; + display: block; } #download-fast a:focus, #download-fast a:hover { color: #999; From ff3c99e8ae6d601564701e513a16c18b9f555066 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Tue, 27 Jan 2026 22:05:41 +0100 Subject: [PATCH 7/8] Change: replace the OpenTTD logo in GIF format with the SVG version Signed-off-by: Heiko August --- static/css/base.css | 2 +- static/img/layout/openttd.svg | 265 ++++++++++++++++++++++++++++++++++ 2 files changed, 266 insertions(+), 1 deletion(-) create mode 100644 static/img/layout/openttd.svg diff --git a/static/css/base.css b/static/css/base.css index ce0902d9..a84edb95 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -99,7 +99,7 @@ body > header { } #openttd-logo { - background: url("../img/layout/openttd-64.gif") no-repeat left bottom 2px; + background: url("../img/layout/openttd.svg") no-repeat left calc(100% - 3px) / 64px 64px; height: 68px; width: 250px; position: relative; diff --git a/static/img/layout/openttd.svg b/static/img/layout/openttd.svg new file mode 100644 index 00000000..30aba231 --- /dev/null +++ b/static/img/layout/openttd.svg @@ -0,0 +1,265 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 9fb81e8a7dc23145cda572d411a9e500827e7fa4 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Sun, 1 Feb 2026 23:47:53 +0100 Subject: [PATCH 8/8] Change: add a background element to cover the partial transparency Signed-off-by: Heiko August --- static/img/layout/openttd.svg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/img/layout/openttd.svg b/static/img/layout/openttd.svg index 30aba231..aacb0e7f 100644 --- a/static/img/layout/openttd.svg +++ b/static/img/layout/openttd.svg @@ -164,6 +164,9 @@ xlink:href="#linearGradient3421" gradientUnits="userSpaceOnUse" /> + + +