From f35bbeb4d4f662ca5471b9aa9efaedfeb95a226f Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 20:17:42 +0100 Subject: [PATCH] am css gearbeitet --- html.go | 2 +- web/styles/events.css | 7 +++---- web/styles/main.css | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/html.go b/html.go index b0a44a1..bc3bf54 100644 --- a/html.go +++ b/html.go @@ -78,7 +78,7 @@ func htmlReplacer(input string, activePage string) string { } tempA = htmlElement("h2", htmlClean(Event.title), "class=\"title\"") - tempA += htmlElement("p", htmlClean(Event.date), "class=\"dat\"") + tempA += htmlElement("p", htmlClean(Event.date), "class=\"date\"") 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 9561c58..fd845a2 100644 --- a/web/styles/events.css +++ b/web/styles/events.css @@ -19,7 +19,7 @@ div.eventList a.event:hover { div.eventList a.event div.event { max-width: 100%; - width: 200px; + width: 420px; height: 200px; transform: scale(1); transition: transform .5s; @@ -34,8 +34,7 @@ div.eventList a.event div.event:hover { } div.eventList a.event div.event p.date { - position: absolute; - right: 10px; - top: 10px; + text-align: right; + padding-right: 10px; text-decoration: none !important; } \ No newline at end of file diff --git a/web/styles/main.css b/web/styles/main.css index 338c064..9811152 100644 --- a/web/styles/main.css +++ b/web/styles/main.css @@ -174,7 +174,7 @@ p.topic { nav ul li { display: block; font-size: 200%; - padding: 20px 0 20px 0; + padding: 20px 20px 20px 0; text-align: right; } } \ No newline at end of file