feat(style): harmonize button color
This commit is contained in:
parent
83a7fc5cf8
commit
fce56f5088
3 changed files with 8 additions and 36 deletions
16
data.go
16
data.go
|
@ -50,12 +50,8 @@ type ButtonColor struct {
|
|||
}
|
||||
|
||||
type Link struct {
|
||||
Link string `json:"link"`
|
||||
Content string `json:"content"`
|
||||
Color string `json:"color"`
|
||||
TextColor string `json:"text_color"`
|
||||
ColorHover string `json:"color_hover"`
|
||||
TextColorHover string `json:"text_color_hover"`
|
||||
Link string `json:"link"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
type Legal struct {
|
||||
|
@ -91,11 +87,3 @@ func (b *ButtonColor) GetTextColor() template.CSS {
|
|||
func (b *ButtonColor) GetBackground() template.CSS {
|
||||
return template.CSS("--background: " + b.Background + ";--background-hover: " + b.BackgroundHover + ";")
|
||||
}
|
||||
|
||||
func (l *Link) GetLinkColor() template.CSS {
|
||||
return template.CSS("--text-color: " + l.TextColor + ";--text-color-hover: " + l.TextColorHover + ";")
|
||||
}
|
||||
|
||||
func (l *Link) GetBackground() template.CSS {
|
||||
return template.CSS("--background: " + l.Color + ";--background-hover: " + l.ColorHover + ";")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue