Skip to content

Commit f0a1a2f

Browse files
committed
Improve styling of question author window (thanks Luca Bösch)
1 parent 5272ff3 commit f0a1a2f

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

styles.css

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,16 @@ body#page-question-type-coderunner .ace_wrapper {
379379
border: 1px solid #bbb;
380380
}
381381

382-
body#page-question-type-coderunner div[id^=fitem_id_],
383-
body#page-question-type-coderunner div[id^=fgroup_id_] {
382+
body#page-question-type-coderunner div[id^=fitem_id_]:not([id=fitem_id_templateparams], [id=fitem_id_templateparams],
383+
[id=fitem_id_templateparams], [id=fitem_id_category], [id=fitem_id_name], [id=fitem_id_questiontext], [id=fitem_id_status],
384+
[id=fitem_id_defaultmark], [id=fitem_id_generalfeedback], [id=fitem_id_idnumber], [id=fitem_id_answer],
385+
[id=fitem_id_answerpreload], [id=fitem_id_globalextra], [id=fitem_id_datafiles], [id=fitem_id_addanswers],
386+
[id=fitem_id_attachments], [id=fitem_id_attachmentsrequired], [id=fitem_id_maxfilesize], [id=fitem_id_tags]),
387+
body#page-question-type-coderunner div[id^=fgroup_id_]:not([id=fgroup_id_coderunner_type_group],
388+
[id=fgroup_id_coderunner_type_checkboxes], [id=fgroup_id_answerbox_group], [id=fgroup_id_coderunner_precheck_group],
389+
[id=fgroup_id_coderunner_giveup_group], [id=fgroup_id_coderunner_feedback_group], [id=fgroup_id_markinggroup],
390+
[id=fgroup_id_twigcontrols], [id=fgroup_id_uiparametergroup], [id=fgroup_id_filenamesgroup], [id=fgroup_id_updatebuttonar],
391+
[id=fgroup_id_buttonar]) {
384392
background: #eee;
385393
margin-bottom: 0;
386394
margin-top: 0;
@@ -426,7 +434,6 @@ body#page-question-type-coderunner div[id^=fitem_id_testcode]:not(:first-of-type
426434

427435
body#page-question-type-coderunner div[id=fitem_id_addanswers] {
428436
margin-top: 14px;
429-
border: 1px solid #bbb;
430437
padding-top: 8px;
431438
}
432439

@@ -489,3 +496,22 @@ li.bulktest.coderunner.context.quiz {
489496
outline: 1px solid;
490497
outline-color: rgba(0, 0, 0, 0.5);
491498
}
499+
500+
/* stylelint-disable declaration-no-important */
501+
502+
body#page-question-type-coderunner div[id^=fitem_id_testcode]:first-of-type {
503+
border-top: 1px solid #ccc !important;
504+
}
505+
506+
body#page-question-type-coderunner div[id^=fgroup_id_testcasecontrols_] {
507+
border-bottom: 1px solid #ccc !important;
508+
}
509+
510+
body#page-question-type-coderunner div[id^=fitem_id_testcode],
511+
body#page-question-type-coderunner div[id^=fitem_id_stdin_],
512+
body#page-question-type-coderunner div[id^=fitem_id_expected_],
513+
body#page-question-type-coderunner div[id^=fitem_id_extra_] {
514+
margin-bottom: 0 !important;
515+
}
516+
517+
/* stylelint-enable declaration-no-important */

0 commit comments

Comments
 (0)