Moodle

Get rid of editcss.js and adjust stylesheets

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Quiz
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

As of very recently, Moodle automatically adds a jsenabled class to body using JavaScript, so you can remove this quiz-specific code. You will, of course, need to update the style sheets.

Activity

Hide
Olli Savolainen added a comment -

It is impossible to match #mod-quiz-edit at the same time. I did add a quiz-editing specific #quizcontentsblock in the rule to make sure my rules won't break anything anywhere else.

Show
Olli Savolainen added a comment - It is impossible to match #mod-quiz-edit at the same time. I did add a quiz-editing specific #quizcontentsblock in the rule to make sure my rules won't break anything anywhere else.
Hide
Tim Hunt added a comment -

Actually, css selectors like

#mod-quiz-edit.jsenabled

work. (No need to change the code, I just thought you might like to know.)

Show
Tim Hunt added a comment - Actually, css selectors like #mod-quiz-edit.jsenabled work. (No need to change the code, I just thought you might like to know.)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: