Merge pull request #4110 from gdpelican/fix/bullet-category-stripe-alignment
Fix for category stripe misalignment
This commit is contained in:
commit
389801f244
|
@ -50,7 +50,7 @@ module CategoryBadge
|
||||||
case (SiteSetting.category_style || :box).to_sym
|
case (SiteSetting.category_style || :box).to_sym
|
||||||
when :bar then inline_category_stripe(category.color, 'display: inline-block; padding: 1px;', true)
|
when :bar then inline_category_stripe(category.color, 'display: inline-block; padding: 1px;', true)
|
||||||
when :box then inline_category_stripe(category.color, 'left: 5px; display: block; position: absolute; width: calc(100% - 5px); height: 100%;')
|
when :box then inline_category_stripe(category.color, 'left: 5px; display: block; position: absolute; width: calc(100% - 5px); height: 100%;')
|
||||||
when :bullet then inline_category_stripe(category.color, "display: inline-block; width: #{category.parent_category_id.nil? ? 10 : 5}px; height: 10px;", true)
|
when :bullet then inline_category_stripe(category.color, "display: inline-block; width: #{category.parent_category_id.nil? ? 10 : 5}px; height: 10px;")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
category_stripe(category.color, 'badge-category-bg')
|
category_stripe(category.color, 'badge-category-bg')
|
||||||
|
|
Loading…
Reference in New Issue