MOBILE-2847 quiz: Review shortanswer question styles

main
Pau Ferrer Ocaña 2019-01-31 12:27:50 +01:00 committed by Dani Palou
parent 108fd65aa0
commit 2e14b9bc8a
3 changed files with 17 additions and 10 deletions

View File

@ -6,7 +6,7 @@ ion-app.app-root page-addon-mod-quiz-review {
.text-input[disabled] {
opacity: 0.8;
.label, .radio, .checkbox, .select-disabled, .core-correct-icon {
.label, .radio, .checkbox, .select-disabled, .core-correct-icon, .text-input[disabled] {
opacity: 1;
}
}

View File

@ -1,6 +1,6 @@
<section ion-list *ngIf="question.text || question.text === ''">
<ion-item text-wrap class="addon-qtype-shortanswer-text">
<p><core-format-text [component]="component" [componentId]="componentId" [text]="question.text"></core-format-text></p>
<core-format-text [component]="component" [componentId]="componentId" [text]="question.text"></core-format-text>
</ion-item>
<ion-item *ngIf="!question.input.isInline" text-wrap ngClass="core-{{question.input.correctIconColor}}-item">
<ion-label stacked>{{ 'addon.mod_quiz.answercolon' | translate }}</ion-label>

View File

@ -1,11 +1,18 @@
addon-qtype-shortanswer {
.addon-qtype-shortanswer-text input {
display: inline-block;
border: 1px solid #ccc;
padding: 4px 6px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
margin-bottom: 10px;
.addon-qtype-shortanswer-text {
ion-label.label {
margin-bottom: 0;
}
input {
@include placeholder($text-input-placeholder-color);
@include appearance(none);
@include border-radius(4px);
display: inline-block;
border: 1px solid $gray-dark;
padding: 6px 8px;
@include margin-horizontal(2px);
margin-bottom: 10px;
}
}
}