am css gearbeitet

This commit is contained in:
xoy 2023-01-29 20:01:09 +01:00
parent 65413b679b
commit 6e269efd4d
2 changed files with 1 additions and 4 deletions

View File

@ -80,7 +80,7 @@ func htmlReplacer(input string, activePage string) string {
tempA = htmlElement("h2", htmlClean(Event.title), "title") tempA = htmlElement("h2", htmlClean(Event.title), "title")
tempA += htmlElement("p", htmlClean(Event.date), "date") tempA += htmlElement("p", htmlClean(Event.date), "date")
tempA += htmlElement("p", htmlClean(Event.description), "desc") 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" tempB += "!SPLIT"
} }
output = strings.ReplaceAll(output, "!EVENTS", htmlElement("div", strings.ReplaceAll(tempB, "!SPLIT", ""), "class=\"eventList\"")) output = strings.ReplaceAll(output, "!EVENTS", htmlElement("div", strings.ReplaceAll(tempB, "!SPLIT", ""), "class=\"eventList\""))

View File

@ -7,7 +7,6 @@ div.eventList {
div.eventList a.event { div.eventList a.event {
display: inline-block; display: inline-block;
position: relative;
color: white !important; color: white !important;
background-color: var(--nav-background-color) !important; background-color: var(--nav-background-color) !important;
} }
@ -17,8 +16,6 @@ div.eventList a.event:hover {
} }
div.eventList a.event div.event { div.eventList a.event div.event {
display: inline-block;
position: relative;
max-width: 200px; max-width: 200px;
width: 100%; width: 100%;
height: 200px; height: 200px;