feat(tag): style on hover
This commit is contained in:
parent
fce56f5088
commit
2621bc5978
6 changed files with 23 additions and 10 deletions
5
data.go
5
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 + ";")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue