|
|
| Participants: |
Olli Savolainen and Tim Hunt
|
| Security Level: |
None
|
| Resolved date: |
22/Nov/08
|
| Affected Branches: |
MOODLE_20_STABLE
|
| Fixed Branches: |
MOODLE_20_STABLE
|
|
Instead, can we just add, or not add, a class name to some div using PHP, and put the CSS in the theme. I am looking at lines 716 onwards.
|
|
Description
|
Instead, can we just add, or not add, a class name to some div using PHP, and put the CSS in the theme. I am looking at lines 716 onwards. |
Show » |
committed 2 files to 'Moodle CVS' - 22/Nov/08 08:29 PM
quiz editing: MDL-17301 avoid inline CSS in mod/quiz/edit.php
|
|
|
made changes - 22/Nov/08 08:30 PM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|
The classes I created are non-semantic like bankvisible and quizwhenbankcollapsed - they do not add any semantics since they are bound to the very behaviour of the css properties, so they will just be badly named - keeping the semantics in the HTML and the style in the CSS is the idea of classes, after all. We won't reach there here, just as we do not with the special javascript class added to body (though that one may have technical reasoning).
It does not seem to make any sense to theme that specific CSS, it will just add another reference, making the code harder to read. Where is the benefit?