From 758ae24fc63c5bb9ea1f75f9a5d758334ee13243 Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 20:20:45 +0100 Subject: [PATCH] =?UTF-8?q?event=20aussehen=20ver=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html.go | 4 ++-- web/styles/events.css | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/html.go b/html.go index bc3bf54..0f1d50e 100644 --- a/html.go +++ b/html.go @@ -77,8 +77,8 @@ func htmlReplacer(input string, activePage string) string { break } - tempA = htmlElement("h2", htmlClean(Event.title), "class=\"title\"") - tempA += htmlElement("p", htmlClean(Event.date), "class=\"date\"") + tempA = htmlElement("p", htmlClean(Event.date), "class=\"date\"") + tempA += htmlElement("h2", htmlClean(Event.title), "class=\"title\"") tempA += htmlElement("p", htmlClean(Event.description), "class=\"desc\"") tempB += htmlLinkElement(htmlElement("div", tempA, "class=\"event\""), "event/"+strconv.Itoa(Event.id), false, "class=\"event\"") tempB += "!SPLIT" diff --git a/web/styles/events.css b/web/styles/events.css index 12b0159..f0b5760 100644 --- a/web/styles/events.css +++ b/web/styles/events.css @@ -35,6 +35,7 @@ div.eventList a.event div.event:hover { div.eventList a.event div.event p.date { text-align: right; - padding-right: 10px; + padding: 0 10px 0 0; + margin: 0; text-decoration: none !important; } \ No newline at end of file