Changing "body" only in forums.

Changing "body" only in forums.

by Rick Jerz -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Testers

I would like to change the body attribute but only within forum discussions.  The attached figure shows what I see using Firefox inspector.  What is the form of the CSS that I need to add to my theme to make this change only in forums, where I see "body" being inherited.

For example, would it be something like:

.body#page-mod-forum-discuss (

body { line-height = .25 em }

}

Attachment change body CSS within forum.jpg
Average of ratings: -
In reply to Rick Jerz

Re: Changing "body" only in forums.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Rick,

'body' is a tag and not a class, so:

body.path-mod-forum {
    line-height: .25em;
}

should work for all forum pages or 

body#page-mod-forum-discuss {
    line-height: .25em;
}

for that specific page.

Cheers,

Gareth