• Members 3 posts
    Dec. 28, 2020, 3:33 p.m.

    Hello, I recently deployed Misago_Docker on DigitalOcean but I'm trying to change the color of the categories using the Administrator dashboard. In the edit categories section on "CSS class:" what exactly i need to put there? on the documentation there is a list default classes such as red, black, yellow etc but nothing changes. I'm missing something? Sorry noob here.

    BTW thank you for your hard work and amazing framework.

  • Dec. 29, 2020, 12:42 a.m.

    Lets say you want to make some categories (and their threads) stand out. You pick one of those categories and in their "CSS class" you type something unique to this category, eg. "primary".

    Now, new CSS class will be added to different parts of the UI associated with this category:

    • list-group-item-category-primary will be added to category's threads on threads list and category on categories list
    • page-threads-primary will be added to page container for this category
    • page-thread-primary will be added to page container for thread within this category

    Next, you should decide which items you want to customize, then go to admin panel -> themes and create new child theme to default theme. Activate this new theme, then in theme's options pick "Edit assets". Create CSS file for this theme:

    .list-group-item-category-primary {
        border: 1px solid #00F;
    }
    

    This will cause threads and category on items lists to have blue border.