shuffle answers in exercise order + fix answer numbering
[fnpeditor.git] / src / editor / plugins / core / edumed / order / order.less
index b407259..e0c1b52 100644 (file)
@@ -1,3 +1,4 @@
+@exercise-order-gray: darken(#ddd, 15%);
 .exercise-order {
     
     overflow-x: hidden;
@@ -11,7 +12,6 @@
         width: 100%;
         border-radius: 5px;
         background-color: #ddd;
-        -webkit-margin-before: -20px; // compensate for Chrome behavior for ol > li > table
     }
 
     .content {
         vertical-align: middle;
         display: table-cell;
         width: 20px;
-        background-color: darken(#ddd, 15%);
+        background-color: @exercise-order-gray;
         text-align: center;
         border-radius: 0 5px 5px 0;
         padding: 10px 10px;
-        pointer-events: none;
 
         .dragEnter {
             opacity: 0.5;
@@ -43,7 +42,7 @@
     .placeholder {
         height: 10px;
         transition: height 0.05s;
-        background-color: white;
+        background-color: transparent;
         &.active {
             height: 60px;
             transition: height 0.05s;
         width:100%;
     }
 
-    .placeholder-top {
-        margin-left: 25px;
+    ol {
+        margin: 0;
+        counter-reset: edumed-order-counter;
     }
-
-    li {
+    ol li {
+        list-style-type: none;
         cursor: move;
         .dragged {
             opacity: 0.6;
         }
     }
+
+    .nav-tabs > .active > a {
+        background-color: @exercise-order-gray;
+    }
 }
\ No newline at end of file