• 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.

  • Members 6 posts
    June 5, 2023, 7:25 a.m.

    Hello rafalp. I am new here, but I want to thank you for your work and your project before asking my question. Misago seems pretty cool.

    Is this feature still working, or has it changed somewhat since you made this post? I ask because I set my category css class and then followed your guide <here> to create a new child theme, but it doesn't seem to be working. When I look at the html of the category page (http://127.0.0.1:8000/c/<category>/3/) the category css class is not being appended to "list-group-item".

  • June 5, 2023, 10:36 a.m.

    Hey, this was dropped from threads list when it was redesigned. I don’t think it would be hard to add back, but I am currently busy with other things, so unless somebody contributes a PR its going to take a while.

  • Members 6 posts
    June 5, 2023, 5:51 p.m.

    @rafalp

    Okay, fair enough. My coding is mighty rusty at the moment, but I am hoping to contribute at some point in the future when I feel I can be of use!