From 71be0dd8cf867312e6cd4a21e93588309c5c684d Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 4 Apr 2026 15:39:04 +0100 Subject: [PATCH] Move inline styles to CSS classes; update README Extract repeated inline styles from templates into named CSS classes in base.html: layout helpers, buttons, form groups, alert boxes, results table rules, row highlight classes, typography utilities, and empty-state styles. Remove the per-page diff --git a/templates/index.html b/templates/index.html index 306fb90..8bdbb51 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,9 +1,9 @@ {% extends "base.html" %} {% block content %}
-

Plan your journey

+

Plan your journey

-
+
Departure point
Bristol Temple Meads @@ -11,7 +11,7 @@
-
+
Eurostar destination
{% for slug, name in destinations.items() %} @@ -33,7 +33,7 @@
-
+
@@ -42,7 +42,7 @@ class="form-control">
-
+
@@ -53,7 +53,7 @@
-
+
@@ -64,9 +64,7 @@
- diff --git a/templates/results.html b/templates/results.html index 6d3b2b9..8389b73 100644 --- a/templates/results.html +++ b/templates/results.html @@ -5,31 +5,24 @@ {% block twitter_title %}Bristol to {{ destination }} via Eurostar{% endblock %} {% block twitter_description %}Train options from Bristol Temple Meads to {{ destination }} on {{ travel_date_display }} via Paddington, St Pancras, and Eurostar.{% endblock %} {% block content %} - -

+

-

+

Bristol Temple Meads → {{ destination }}

-
+
← Prev + class="btn-nav">← Prev {{ travel_date_display }} Next → + class="btn-nav">Next →
-
-
Switch destination for {{ travel_date_display }}
+
+
{% for destination_slug, destination_name in destinations.items() %} {% if destination_slug == slug %} @@ -43,26 +36,26 @@ {% endfor %}
-
+
-
-