exercises fix
[edumed.git] / catalogue / static / catalogue / css / exercise.scss
index cf7bfc3..9b0a596 100755 (executable)
@@ -42,6 +42,10 @@ $px: 0.0625em;
 
 
 .exercise {
+    img {
+        vertical-align: top;
+    }
+
     .question-piece {
         @include bubble;
     }
@@ -96,7 +100,11 @@ $px: 0.0625em;
         }
         .message {
             float: right;
-            margin-right: 20*$px;
+            padding: 0 20*$px;
+            background: red;
+        }
+        .maxscore {
+            background: #16a487;
         }
 
         input.check {
@@ -112,6 +120,7 @@ $px: 0.0625em;
     .question-piece {
         @include bubble-drag;
         @include bubble-inline;
+        max-width: 608*$px;
     }
     .question-piece.disabled {
         @include bubble-drag-disabled;
@@ -154,6 +163,27 @@ $px: 0.0625em;
     }
     .lista {
         @include list-plain;
+        counter-reset: answer;
+        li {
+            counter-increment: answer;
+            padding-right: 3em;
+            background-image: url(/static/img/ornaments/draggable.png);
+            background-repeat: no-repeat;
+            background-position: 100% 50%;
+        }
+        li:before {
+            @include bubble;
+            @include bubble-drag;
+            content: counter(answer);
+            float: left;
+            margin: -.5em 0 0 -3em;
+        }
+        li.ui-sortable-placeholder {
+            counter-increment: answer 0;
+        }
+        li.ui-sortable-helper:before {
+            content: none;
+        }
     }
 }
 
@@ -162,6 +192,11 @@ $px: 0.0625em;
         @include bubble-drag;
         width: 618*$px;
     }
+    span.question-piece {
+        display: inline-block;
+        margin: .1em;
+        width: auto;
+    }
     .question-piece.disabled {
         @include bubble-drag-disabled;
     }
@@ -190,15 +225,21 @@ $px: 0.0625em;
 
                 .placeholder {
                     @include bubble;
+                    text-align: right;
+                    position:relative;
+                    padding: 8*$px 11*$px;
+                    margin: 0 -11*$px;
+                }
+                .multiple {
                     position: absolute;
+                    z-index: -1;
                     top: 0;
                     bottom: 0;
                     left: 0;
                     right: 0;
                     margin: 0;
-                    z-index: -1;
-                    text-align: right;
                 }
+                
                 .placeholder.dragover {
                     z-index: 1;
                 }