From: Radek Czajka Date: Tue, 12 Feb 2013 08:45:49 +0000 (+0100) Subject: Bubbles should preserver width when dragged. X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/638edfcc8bd88a8e3ba8ee28437e0263c998f409?ds=sidebyside Bubbles should preserver width when dragged. --- diff --git a/catalogue/static/catalogue/css/exercise.css b/catalogue/static/catalogue/css/exercise.css index 774f797..3325f90 100644 --- a/catalogue/static/catalogue/css/exercise.css +++ b/catalogue/static/catalogue/css/exercise.css @@ -107,7 +107,8 @@ background-color: #d4d6d8; color: #363a3e; cursor: pointer; - z-index: 2; } + z-index: 2; + width: 38.625em; } .przyporzadkuj .question-piece.disabled { background-color: #eee; color: #d4d6d8; } @@ -132,6 +133,8 @@ position: relative; margin: 0.5em -0.688em -0.5em -0.688em; padding: 0.5em 0.688em; } + .przyporzadkuj .predicate > li .subjects li { + width: auto; } .przyporzadkuj .predicate > li .subjects .placeholder { border-radius: 0.688em; padding: 0.5em 0.688em; diff --git a/catalogue/static/catalogue/css/exercise.scss b/catalogue/static/catalogue/css/exercise.scss index 9342b90..cf7bfc3 100755 --- a/catalogue/static/catalogue/css/exercise.scss +++ b/catalogue/static/catalogue/css/exercise.scss @@ -160,6 +160,7 @@ $px: 0.0625em; .przyporzadkuj { .question-piece { @include bubble-drag; + width: 618*$px; } .question-piece.disabled { @include bubble-drag-disabled; @@ -183,6 +184,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;