How do I change the 'feedbacktext' colour in quizzes?

How do I change the 'feedbacktext' colour in quizzes?

by Peter Ruthven-Stuart -
Number of replies: 2
Picture of Plugin developers

Hello,

I have searched the forums for 'feedbacktext', and specifically information on how to change the colour of the feedback text in quizzes. I found this posting:

http://moodle.org/mod/forum/discuss.php?d=29649

but the suggested change to a style sheet did not work. Any suggestions will be most welcome.

Here's what I have done so far:

I have added this code

.feedbacktext {
color: #ff6600;
}


to the 'styles_color.css' and to the 'styles_fonts.css' (both in the 'standard' theme directory). I also found a reference to '.feedbacktext' in the 'styles_layout.css' (also in the 'standard' theme directory):

/***
*** Modules: Quiz
***/

.feedbacktext {
display:block;
text-align:right;
}

which I changed to:

/***
*** Modules: Quiz
***/

.feedbacktext {
display:block;
text-align:right;
color:#ff6600;
}

However, the colour of the feedback has not yet been effected - it remains black.

Any suggestions you have will be most welcome.

I am using Moodle 1.5.2
and the standardblue theme, which refers to the 'standard' theme for all style sheets except 'gradients.css'.
Average of ratings: -
In reply to Peter Ruthven-Stuart

Re: How do I change the 'feedbacktext' colour in quizzes?

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

Hi Peter,

If you want to use (and customize) the standardblue theme, the best way would be to add your own custom stylesheet(s)  in the standardblue directory. If you want minimum customization (such as changing the color of .feedbacktext), then

a) create a single stylesheet, called e.g. myownblue.css

b) in this file, just put

.feedbacktext {  color: #FF6600; } (if you want this text in orange)

b) in \theme\standardblue\config.php add its refrence in this line:

change line: $THEME->sheets = array('gradients');

to: $THEME->sheets = array('gradients','myownblue');

Anyway, you should never touch the stylesheets in the \theme\standard\ directory...

Joseph
Average of ratings: Useful (1)
In reply to Joseph Rézeau

Re: How do I change the 'feedbacktext' colour in quizzes?

by Peter Ruthven-Stuart -
Picture of Plugin developers
Joseph

Thank you very much.

I made the changes as you suggested and it worked! cool And even managed to make other changes.

Changing the stylesheets seemed to be very complicated and enormously time consuming looked at from the point of view of someone whose only experience with styelsheets is Adobe GoLive. However, your reply made me realise that little changes are very easy to make, and thus 'customising' ones own moodle - at least in a limited way - is really quite straightforward.

For any one else new to this, note that because of stylesheets being cached on servers, the changes you make may not be immediately apparent. Also, the Firefox extension (Web Developer Toolbar) makes experimentation with stylesheets much less opaque.

Thanks again.