diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-14 15:22:50 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-14 15:22:50 +0100 |
| commit | 2621bc5978fc7f6f24d2f0ba91715c01c62b43a9 (patch) | |
| tree | 25566b8d9013c33119c25019883440c39ab02d4a /data.go | |
| parent | fce56f5088e27c0865d3a2d03936039e1a21059a (diff) | |
feat(tag): style on hover
Diffstat (limited to 'data.go')
| -rw-r--r-- | data.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 + ";") +} |
