editor: fixing, refactoring, improving styling in choice exercises
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 6 Aug 2014 14:46:23 +0000 (16:46 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 14 Aug 2014 14:26:14 +0000 (16:26 +0200)
src/editor/plugins/core/edumed/choice/choice.less
src/editor/plugins/core/edumed/choice/choiceMulti.less [new file with mode: 0644]
src/editor/plugins/core/edumed/choice/choiceSingle.js
src/editor/plugins/core/edumed/choice/choiceSingle.less [new file with mode: 0644]

index fb99110..6a80f87 100644 (file)
@@ -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 (file)
index 0000000..92877b2
--- /dev/null
@@ -0,0 +1,11 @@
+.exercise-multi {
+    input {
+        margin-right: 15px;
+    }
+    ul {
+        margin: 0;
+    }
+    li {
+        list-style-type: none;
+    }
+}
\ No newline at end of file
index 6824d44..68ff576 100644 (file)
@@ -44,7 +44,7 @@ _.extend(choiceSingle, {
 });
 
 var RadioView = function(checked, name, onValueChange) {
 });
 
 var RadioView = function(checked, name, onValueChange) {
-    this.dom = $('<input type="radio" style="float: left; margin-right: 40px;">')
+    this.dom = $('<input type="radio">')
             .attr('checked', checked)
             .attr('name', name);
     this.dom.on('change', function() {
             .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 (file)
index 0000000..ddb9c96
--- /dev/null
@@ -0,0 +1,11 @@
+.exercise-single {
+    input {
+        margin-right: 15px;
+    }
+    ul {
+        margin: 0;
+    }
+    li {
+        list-style-type: none;
+    }
+}
\ No newline at end of file