Skip to content

ip-tools/discourse-category-badge-theme-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Category badge adjustments for Discourse

About

This is a theme component which allows you to adjust the CSS parameters of category badges in Discourse. Primarily made for Material Design for Discourse, it might be useful for other themes too. See also article Category badge adjustment component on meta.discourse.org.

Synopsis

  • Optionally adjust border-radius css attribute of category badges. Use border_radius = 6px for a more flat / less globular appearance.
  • Optionally prevent shrinked badges on e.g. /latest.
  • Optionally emphasize category label

Screenshots

Before

image

After

image

Settings

image

  • border_radius: The border-radius css attribute to apply to all category badges.
  • transform_enabled: Whether to apply shrink transformation to category badges on e.g. /latest.
  • emphasize_label: Whether to display category name with font-weight: bolder.

Defaults

border_radius:
  default: ''
transform_enabled:
  default: true
emphasize_label:
  default: false

See also

Example

Credits

Thanks for all your hard work on Discourse and Material Design for Discourse!

About

Category badge adjustments for Discourse

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages