Not planned Add back in old classes (forum_view / thread_view)

Russ

Well-known member
It was nice being able to utilize things like:

Code:
[data-template="forum_view"] .p-body-header
{
    background: rgb(255, 255, 255);
    padding: 5px 10px;
}

Now it would appear that forum + thread views have unique classes based upon what type of node you're viewing. It's nice to have these new classes but it'd be great to target ALL forum-view and ALL thread_view without having:

Code:
.forum_view, .forum_view_type_article, .forum_view_type_question, .forum_view_type_suggestion, .search_forum_view

Maybe add it in the HTML class level as opposed to the data-template.
 
Last edited:
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
You can still do this rather simply with the following:
Code:
[data-template*="forum_view"] .p-body-header
{
    background: rgb(255, 255, 255);
    padding: 5px 10px;
}
For the most part we're good at sticking to naming conventions so this should be a reasonable catch-all approach.
 
Realistically, I don't think this will change. What you're referencing here is an entirely automated process based on whatever template is used to render the page, rather than any sort of manually applied value.

Beyond that, changing this would actually also prevent a more type-specific modification if you wanted it. Changing styles on just an article seems like a reasonable use case, for example.

Chris's workaround should generally be a reasonable approximation here (and work in add-ons too, provided they use "forum_view" or "thread_view" in the template name, which would logically be a resonable approach.
 
Top Bottom