Hello,
I currently have the setting “Boxes with Subcategories” turned on, but I have a lot of subcategories, causing it to look a little crowded. (see image)
Is there a way I can make the subcategories into a bulleted list? Or move them around manually rather than using the “Reorder Categories” feature? Or even if I could make the margins on each side smaller so that more could fit on one line?
Thank you!
1 Like
Canapin
(Coin-coin le Canapin)
February 20, 2023, 12:48pm
2
Edit: as of 11/9/2023: Category styles other than squared bullets are or will be discontinued/unavailable in the short future.
Michelle Barnett:
Boxes with Subcategories
I’m replying to this later, but better late than never…
To stack them on top of each others:
.category-box .subcategories {
flex-direction: column;
.subcategory {
.subcategory-image-placeholder {
display: none;
}
}
}
As for a bulleted list, it will depend on what style you use for your categories. Let’s assume you’re using “bullet”:
It will look like this:
If you want to keep the colored bullets for the parent categories but not for the subcategories:
Using real bullet character:
.category-box .subcategories {
flex-direction: column;
.subcategory {
&:before {
content: "•";
margin-right: .25em;
font-size: 1.5em;
line-height: 0;
}
.badge-category-bg {
display: none;
}
.subcategory-image-placeholder {
display: none;
}
}
}
Simpler, reshaping the current Discourse category bullet:
.category-box .subcategories {
flex-direction: column;
.subcategory {
.badge-category-bg {
border-radius: 50%;
}
.subcategory-image-placeholder {
display: none;
}
}
}
2 Likes