From feb55953796e9b9a117459436e188ffed3754184 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Thu, 9 Jul 2020 12:46:36 +0200 Subject: [PATCH] improve spacing/sizes on very low resolutions --- static/site.css | 19 +++++++++++++++++++ static/toggle_button.css | 8 +++++++- templates/events.html | 17 ++++++++++------- templates/index.html | 10 +++++----- 4 files changed, 41 insertions(+), 13 deletions(-) diff --git a/static/site.css b/static/site.css index d892cf6..c42e968 100644 --- a/static/site.css +++ b/static/site.css @@ -68,3 +68,22 @@ html { .image-max-dimensions{ max-width: 400px; } + +@media(max-width: 440px){ + .event-responsive{ + padding-left: 0; + font-size: 5vw; + } + .date-responsive{ + margin-right: 4vw !important; + } + .container-responsive{ + margin-left: 0; + margin-right: 0; + padding-left: 0; + padding-right: 0; + } + .mt-0-u440{ + margin-top: 0 !important; + } +} diff --git a/static/toggle_button.css b/static/toggle_button.css index ed4adef..0c8cac0 100644 --- a/static/toggle_button.css +++ b/static/toggle_button.css @@ -60,4 +60,10 @@ .switch-caption { float: left; - } \ No newline at end of file + } + +@media(max-width: 440px){ + .switch-caption{ + font-size: 7vw !important; + } +} diff --git a/templates/events.html b/templates/events.html index 0b181b2..b532350 100644 --- a/templates/events.html +++ b/templates/events.html @@ -6,17 +6,20 @@ {% for event in events %}
3 %} style="display: none;" {% endif %}>
-
+
-

{{ event["day"] }}

-
-

{{ event["month"] }}

-

{{ event["year"] }}

-
+

+ {{ event["day"] }} +

+
+

{{ event["month"] }}

+

{{ event["year"] }}

+
-

+

{{ event["description"] }} {% if event.get("location") %} @{{ event["location"] }} {% endif %}

diff --git a/templates/index.html b/templates/index.html index 07b3464..835bb97 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,7 +34,7 @@
-
+
{% include 'events.html' %}
@@ -54,15 +54,15 @@