|
|
|
// Exercise CSS
|
|
|
|
|
|
|
|
.main-question {
|
|
|
|
@apply mb-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_menu {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_menu li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fixes questions list */
|
|
|
|
.question_options {
|
|
|
|
min-height: 150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options label {
|
|
|
|
margin-bottom: 14px;
|
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options .radio {
|
|
|
|
min-height: 18px;
|
|
|
|
margin-left: 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options .checkbox {
|
|
|
|
margin-left: 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options .radio input[type="radio"], .question_options .checkbox input[type="checkbox"] {
|
|
|
|
float: left;
|
|
|
|
margin-left: -25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options input[type="text"] {
|
|
|
|
padding: 6px 12px;
|
|
|
|
margin: 2px 2px 2px 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
height: 34px;
|
|
|
|
line-height: 1.42857;
|
|
|
|
border: 1px solid #CCCCCC;
|
|
|
|
border-radius: 4px;
|
|
|
|
-moz-border-radius: 4px;
|
|
|
|
-webkit-border-radius: 4px;
|
|
|
|
color: #555555;
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: #FCF8D6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_options input[type="text"]:focus {
|
|
|
|
border-color: #66AFE9;
|
|
|
|
background-color: #ffffff;
|
|
|
|
outline: 0 none;
|
|
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-state-highlight {
|
|
|
|
height: 3.5em;
|
|
|
|
line-height: 2.2em;
|
|
|
|
background-color: #fafafa;
|
|
|
|
border: 1px dashed #ccc;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question_menu {
|
|
|
|
@apply p-4 flex flex-row gap-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Quuestion types */
|
|
|
|
.question_options {
|
|
|
|
/** Question unique answer image */
|
|
|
|
&.type-17 {
|
|
|
|
@apply grid sm:grid-cols-3 grid-cols-2 gap-4;
|
|
|
|
|
|
|
|
.exercise-unique-answer-image {
|
|
|
|
.radio {
|
|
|
|
padding-left: 10px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
> input {
|
|
|
|
+ .thumbnail {
|
|
|
|
@apply p-2;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 2px solid #eeeeee;
|
|
|
|
|
|
|
|
p {
|
|
|
|
@apply m-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
+ .thumbnail {
|
|
|
|
border: 2px solid #337AB7;
|
|
|
|
box-shadow: 0 4px 18px #C8C8C8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Question sequence ordering */
|
|
|
|
&.type-18 {
|
|
|
|
.exercise-draggable-answer {
|
|
|
|
@apply border-dashed border-4 p-4 mb-3 flex flex-row flex-wrap gap-4;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
min-height: 4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.exercise-draggable-answer-option {
|
|
|
|
@apply border border-gray-50 rounded-sm p-2 cursor-move bg-gray-10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.question-answer {
|
|
|
|
&__items {
|
|
|
|
@apply flex gap-4;
|
|
|
|
|
|
|
|
&--horizontal {
|
|
|
|
@apply flex-row flex-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--vertical {
|
|
|
|
@apply flex-col;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.droppable-item {
|
|
|
|
@apply p-2;
|
|
|
|
|
|
|
|
&.list-inline {
|
|
|
|
@apply text-center align-middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.number {
|
|
|
|
@apply font-bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.droppable {
|
|
|
|
@apply p-2;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
@apply rounded-sm;
|
|
|
|
min-height: 4rem;
|
|
|
|
min-width: 6rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.type-19 {
|
|
|
|
@apply mb-4;
|
|
|
|
|
|
|
|
.drag_question {
|
|
|
|
@apply relative;
|
|
|
|
|
|
|
|
.window {
|
|
|
|
@apply border rounded-md relative;
|
|
|
|
|
|
|
|
&.window_left_question {
|
|
|
|
@apply text-right p-3 pr-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.window_right_question {
|
|
|
|
@apply p-3 pl-5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Answer results */
|
|
|
|
.question-answer-result {
|
|
|
|
@apply p-4;
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
@apply mb-4;
|
|
|
|
|
|
|
|
&-ribbon {
|
|
|
|
@apply mb-4 flex border bg-gray-10 rounded-md;
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
@apply font-bold p-3 rounded-l-md text-white;
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
@apply bg-error;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--warning {
|
|
|
|
@apply bg-warning;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--success {
|
|
|
|
@apply bg-success;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--info {
|
|
|
|
@apply bg-info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-detail {
|
|
|
|
@apply font-bold p-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-description {
|
|
|
|
@apply mb-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--no-ribbon {
|
|
|
|
@apply border-l-8;
|
|
|
|
|
|
|
|
img {
|
|
|
|
@apply inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__detail {
|
|
|
|
@apply mb-4;
|
|
|
|
|
|
|
|
th {
|
|
|
|
@apply text-left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|