From 2621bc5978fc7f6f24d2f0ba91715c01c62b43a9 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 14 Nov 2024 15:22:50 +0100 Subject: feat(tag): style on hover --- data.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data.go') diff --git a/data.go b/data.go index 06ac7e2..7c976e7 100644 --- a/data.go +++ b/data.go @@ -31,6 +31,7 @@ type Color struct { Background *BackgroundColor `json:"background"` Button *ButtonColor `json:"buttons"` Text string `json:"text"` + TagHover string `json:"tag_hover"` } type BackgroundColor struct { @@ -87,3 +88,7 @@ func (b *ButtonColor) GetTextColor() template.CSS { func (b *ButtonColor) GetBackground() template.CSS { return template.CSS("--background: " + b.Background + ";--background-hover: " + b.BackgroundHover + ";") } + +func (t *Color) GetTagColor() template.CSS { + return template.CSS("--tag-hover: " + t.TagHover + ";") +} -- cgit v1.2.3