X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/638edfcc8bd88a8e3ba8ee28437e0263c998f409..df129917a9ce220c14ac978bcdbc13b949bef551:/catalogue/static/catalogue/css/exercise.scss diff --git a/catalogue/static/catalogue/css/exercise.scss b/catalogue/static/catalogue/css/exercise.scss index cf7bfc3..ac0bcdd 100755 --- a/catalogue/static/catalogue/css/exercise.scss +++ b/catalogue/static/catalogue/css/exercise.scss @@ -1,4 +1,7 @@ $px: 0.0625em; +$oranji: #ed7831; +$ciemny: #363a3e; +$zielony: #16a487; @mixin bubble { @@ -42,6 +45,10 @@ $px: 0.0625em; .exercise { + img { + vertical-align: top; + } + .question-piece { @include bubble; } @@ -96,7 +103,11 @@ $px: 0.0625em; } .message { float: right; - margin-right: 20*$px; + padding: 0 20*$px; + background: red; + } + .maxscore { + background: #16a487; } input.check { @@ -105,6 +116,15 @@ $px: 0.0625em; } } + .instruction { + display: block; + margin: .3em; + color: green; + font-size: .9em; + } + .instruction:before { + content: "☞ "; + } } @@ -112,6 +132,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 +175,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 +204,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 +237,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; }