feat(tag): style on hover

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-14 15:22:50 +01:00
parent fce56f5088
commit 2621bc5978
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
6 changed files with 23 additions and 10 deletions

View file

@ -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 + ";")
}