Exercises: retry implied on move; add handlers to sortable
[edumed.git] / catalogue / static / catalogue / css / exercise.scss
index 9342b90..035aa2a 100755 (executable)
@@ -154,12 +154,39 @@ $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;
+        }
     }
 }
 
 .przyporzadkuj {
     .question-piece {
         @include bubble-drag;
+        width: 618*$px;
+    }
+    span.question-piece {
+        display: inline-block;
+        margin: .1em;
+        width: auto;
     }
     .question-piece.disabled {
         @include bubble-drag-disabled;
@@ -183,6 +210,10 @@ $px: 0.0625em;
                 margin: 8*$px -11*$px -8*$px -11*$px;
                 padding: 8*$px 11*$px;
 
+                li {
+                    width: auto;
+                }
+
                 .placeholder {
                     @include bubble;
                     position: absolute;