From: Aleksander Ɓukasz Date: Wed, 6 Aug 2014 14:46:23 +0000 (+0200) Subject: editor: fixing, refactoring, improving styling in choice exercises X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/e9cf500f44f691af0d5529ebbef61c20059955c8?hp=ac50cae92710f684c801ad933b924de2bec2b460 editor: fixing, refactoring, improving styling in choice exercises --- 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