We know a lot about Moodle themes so that you don't have to.
This tutorial will demonstrate how you can use the free Web Developer extension for Firefox to understand the Moodle CSS. If you do not already have the web developer extension, it can be downloaded here.
Once you have the Web Developer extension installed in Firefox, you should see a new toolbar appear underneath your Navigation Toolbar:
If you don't see the toolbar, right click on the navigation bar to see a menu of possible toolbars.
For this tutorial, we're only going to use one feature of this toolbar: View Style Information.
That box is continually reshaping itself to identify the different elements on the page. As the box changes, notice also that the text in the web developer bar (shown above) changes also. Technically, any element can be styled to your preferences.
For example, let's look at our demo server using the Standard theme. Say I was interested in changing the color of the background that appears behind the sideblock titles. With "View Style Information" turned on, I would simply hover my mouse over the part I was interested in changing to figure out how that element was identified in the Moodle code.
Now, I know that there is quite a learning curve to understand everything that appears in text, but that shouldn't stop you from attempting to figure things out. This should help:
Some elements belong to more than one class. (ex: div.block_login and div.sideblock - though the period is not present above for the "sideblock" class, it is implied.)
#right-column .block_login .header {
background:#000;
} to your style sheet would change the header background color of the login block whenever it appears in the right column. When in the left column, the header would be uneffected.Since, in my imaginary scenario, I want to change the background color of the sideblock header in the Standard theme, I would search styles_color.css for .header until I found:
.sideblock .header {
border-color: #dddddd;
}
.sideblock .header {
border-color: #dddddd;
background:#00f;
}
If the class or ID you are looking for simply cannot be found, add one yourself using the information learned from the toolbar.
Please feel free to post any questions or feedback you have in our forums.