MOBILE-1973 quiz: Make the navigation modal lateral

main
Pau Ferrer Ocaña 2019-02-25 17:11:42 +01:00
parent d129c23d54
commit f78f3cddc7
2 changed files with 17 additions and 8 deletions

View File

@ -94,7 +94,7 @@ export class AddonModQuizPlayerPage implements OnInit, OnDestroy {
// Create the navigation modal. // Create the navigation modal.
this.navigationModal = modalCtrl.create('AddonModQuizNavigationModalPage', { this.navigationModal = modalCtrl.create('AddonModQuizNavigationModalPage', {
page: this page: this
}); }, { cssClass: 'core-modal-lateral' });
} }
/** /**

View File

@ -721,13 +721,22 @@ ion-app.app-root {
width: 100%; width: 100%;
} }
.core-modal-fullscreen { .core-modal-fullscreen .modal-wrapper {
.modal-wrapper { position: absolute;
position: absolute; @include position(0 !important, null, null, 0 !important);
@include position(0 !important, null, null, 0 !important); display: block;
display: block; width: 100% !important;
width: 100% !important; height: 100% !important;
height: 100% !important; }
@media only screen and (min-height: 600px) and (min-width: 768px) {
.core-modal-lateral .modal-wrapper {
position: absolute;
@include position(0 !important, 0 !important, 0 !important, auto);
display: block;
height: 100% !important;
width: auto;
min-width: 400px;
} }
} }