From 6e269efd4db51c0f5c298e4694874a7c5d8bb132 Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 20:01:09 +0100 Subject: [PATCH] am css gearbeitet --- html.go | 2 +- web/styles/events.css | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/html.go b/html.go index fd7e6f7..a357b33 100644 --- a/html.go +++ b/html.go @@ -80,7 +80,7 @@ func htmlReplacer(input string, activePage string) string { tempA = htmlElement("h2", htmlClean(Event.title), "title") tempA += htmlElement("p", htmlClean(Event.date), "date") tempA += htmlElement("p", htmlClean(Event.description), "desc") - tempB += htmlLinkElement(htmlElement("div", tempA, ""), "event/"+strconv.Itoa(Event.id), false, "class=\"event\"") + tempB += htmlLinkElement(htmlElement("div", tempA, "class=\"event\""), "event/"+strconv.Itoa(Event.id), false, "class=\"event\"") tempB += "!SPLIT" } output = strings.ReplaceAll(output, "!EVENTS", htmlElement("div", strings.ReplaceAll(tempB, "!SPLIT", ""), "class=\"eventList\"")) diff --git a/web/styles/events.css b/web/styles/events.css index 2328448..6d4cbfd 100644 --- a/web/styles/events.css +++ b/web/styles/events.css @@ -7,7 +7,6 @@ div.eventList { div.eventList a.event { display: inline-block; - position: relative; color: white !important; background-color: var(--nav-background-color) !important; } @@ -17,8 +16,6 @@ div.eventList a.event:hover { } div.eventList a.event div.event { - display: inline-block; - position: relative; max-width: 200px; width: 100%; height: 200px;