general.css

general.css

by Steve Cooke -
Number of replies: 4

Hi,

I'm new to Moodle. Where might I find general.css please? I'm using Moodle 2.x, and the Fusion theme.

Kind regards,

Steve.

Average of ratings: -
In reply to Steve Cooke

Re: general.css

by Steve Cooke -

So, it looks like there isn't one.  I found a bunch of css files in the style dir.  My question now becomes - what in the Fusion theme replaces the general.css file in the Anomoly theme please?

Steve Cooke.

In reply to Steve Cooke

Re: general.css

by Richard Oelmann -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Steve,

There is no set file for file equivalent from one theme to another in naming the css files, although I would probably check out core.css or pagelayout.css depending on what exactly you want to change - these are both in anomaly and are fairly common in many other themes.

You should probably start off though by reading through a few of the tutorials relavent to changing/creating themes such as

http://docs.moodle.org/dev/Themes_2.0_creating_your_first_theme

http://docs.moodle.org/dev/Themes_2.0_how_to_clone_a_Moodle_2.0_theme

Another useful tool is firebug for fierfox (there are similar tools for other browsers) which will point you to the existing rules and their locations for any given css selector.

HTH

Richard

In reply to Richard Oelmann

Re: general.css

by Steve Cooke -

Once again, thank you Richard,

I really appreciate you providing links to the information required.  It's refreshing to be able to come to a forum, ask a question as a new user, and not be shouted down, nor made to feel like an imbecile.

I'm not attempting to create a theme, just massage an existing theme to give me the look and feel I want. I feel sure I'm going to have more questions, but I'll read the info first!

Kind regards,

Steve.

In reply to Steve Cooke

Re: general.css

by Richard Oelmann -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Steve,

It's no problem.

You will find this community very helpful and supportive and full of people who are only too willing to help and provide advice. One of the main reasons I spend time on here is to repay some of that support I had when I was starting out with Moodle Themes.

I would suggest not changing the theme itself, but using Mary's How to clone a theme tutorial (So that your changes do not get overwritten by any updates, especially if you are using one of the core moodle themes) - or creating a new very minimal theme that uses the original one as a parent and just contains the css changes you need (Using a parent means that any changes/updates/bug fixes to the parent theme will automatically be included in your theme). You should find all the information you need when you read the links I gave you, but don't hesitate to come back to the forum for any help and support about anything you don't understand in what you are reading or trying to do.

Have fun moodling smile

Richard