mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 22:21:55 +08:00
Set catogory text_color for box style
This commit is contained in:
parent
70ed25470d
commit
a2bc2ca08f
|
@ -88,12 +88,14 @@ module CategoryBadge
|
||||||
when :bar
|
when :bar
|
||||||
'color: #222222; padding: 3px; vertical-align: text-top; margin-top: -3px; display: inline-block;'
|
'color: #222222; padding: 3px; vertical-align: text-top; margin-top: -3px; display: inline-block;'
|
||||||
when :box
|
when :box
|
||||||
"color: #{category.text_color}; #{show_parent ? 'margin-left: 5px; ' : ''} position: relative; padding: 0 5px; margin-top: 2px;"
|
"color: ##{category.text_color}; #{show_parent ? 'margin-left: 5px; ' : ''} position: relative; padding: 0 5px; margin-top: 2px;"
|
||||||
when :bullet
|
when :bullet
|
||||||
'color: #222222; vertical-align: text-top; line-height: 1; margin-left: 4px; padding-left: 2px; display: inline;'
|
'color: #222222; vertical-align: text-top; line-height: 1; margin-left: 4px; padding-left: 2px; display: inline;'
|
||||||
when :none
|
when :none
|
||||||
''
|
''
|
||||||
end + 'max-width: 150px; overflow: hidden; text-overflow: ellipsis;'
|
end + 'max-width: 150px; overflow: hidden; text-overflow: ellipsis;'
|
||||||
|
elsif (SiteSetting.category_style).to_sym == :box
|
||||||
|
"color: ##{category.text_color}"
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user