From e9cf500f44f691af0d5529ebbef61c20059955c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 6 Aug 2014 16:46:23 +0200 Subject: [PATCH] editor: fixing, refactoring, improving styling in choice exercises --- src/editor/plugins/core/edumed/choice/choice.less | 4 +++- .../plugins/core/edumed/choice/choiceMulti.less | 11 +++++++++++ src/editor/plugins/core/edumed/choice/choiceSingle.js | 2 +- .../plugins/core/edumed/choice/choiceSingle.less | 11 +++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/editor/plugins/core/edumed/choice/choiceMulti.less create mode 100644 src/editor/plugins/core/edumed/choice/choiceSingle.less diff --git a/src/editor/plugins/core/edumed/choice/choice.less b/src/editor/plugins/core/edumed/choice/choice.less index fb99110..6a80f87 100644 --- a/src/editor/plugins/core/edumed/choice/choice.less +++ b/src/editor/plugins/core/edumed/choice/choice.less @@ -1 +1,3 @@ -@import 'choiceTrueOrFalse.less'; \ No newline at end of file +@import 'choiceTrueOrFalse.less'; +@import 'choiceSingle.less'; +@import 'choiceMulti.less'; \ No newline at end of file diff --git a/src/editor/plugins/core/edumed/choice/choiceMulti.less b/src/editor/plugins/core/edumed/choice/choiceMulti.less new file mode 100644 index 0000000..92877b2 --- /dev/null +++ b/src/editor/plugins/core/edumed/choice/choiceMulti.less @@ -0,0 +1,11 @@ +.exercise-multi { + input { + margin-right: 15px; + } + ul { + margin: 0; + } + li { + list-style-type: none; + } +} \ No newline at end of file diff --git a/src/editor/plugins/core/edumed/choice/choiceSingle.js b/src/editor/plugins/core/edumed/choice/choiceSingle.js index 6824d44..68ff576 100644 --- a/src/editor/plugins/core/edumed/choice/choiceSingle.js +++ b/src/editor/plugins/core/edumed/choice/choiceSingle.js @@ -44,7 +44,7 @@ _.extend(choiceSingle, { }); var RadioView = function(checked, name, onValueChange) { - this.dom = $('') + this.dom = $('') .attr('checked', checked) .attr('name', name); this.dom.on('change', function() { diff --git a/src/editor/plugins/core/edumed/choice/choiceSingle.less b/src/editor/plugins/core/edumed/choice/choiceSingle.less new file mode 100644 index 0000000..ddb9c96 --- /dev/null +++ b/src/editor/plugins/core/edumed/choice/choiceSingle.less @@ -0,0 +1,11 @@ +.exercise-single { + input { + margin-right: 15px; + } + ul { + margin: 0; + } + li { + list-style-type: none; + } +} \ No newline at end of file -- 2.20.1