am css gearbeitet

This commit is contained in:
xoy 2023-01-29 20:01:09 +01:00
parent 11c486736b
commit 7bcfd9273f
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("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\""))

View File

@ -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;