Formatting Labels

Formatting Labels

by Meilech Leib DuBrow -
Number of replies: 5
In which file is the formatting CSS for labels?

Specifically, I used "add a resource" to "insert a label" on my home page. Instead of using the HTML editor to change the in-text formatting, I would like to make some global changes to label formatting, like border color, shape, etc.

Where is the CSS for that?
Average of ratings: -
In reply to Meilech Leib DuBrow

Re: Formatting Labels

by Andrea Bicciolo -
Label formatting follows theme's css. You have two options, either change the css of your theme or use inline css.

The theme's css are in moodle/theme/yourtheme.
In reply to Meilech Leib DuBrow

Re: Formatting Labels

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

In one of your current themes' CSS files, add this CSS rule:

.activity.label {...}

and put into it any formatting you like. NOte there should be no space in ".activity.label".

Joseph