diff --git a/src/addon/mod/folder/components/index/addon-mod-folder-index.html b/src/addon/mod/folder/components/index/addon-mod-folder-index.html index f9ccdcf31..62cda2e8e 100644 --- a/src/addon/mod/folder/components/index/addon-mod-folder-index.html +++ b/src/addon/mod/folder/components/index/addon-mod-folder-index.html @@ -18,8 +18,8 @@ - -

{{file.name}}

+ +

{{file.name}}

diff --git a/src/addon/mod/quiz/pages/player/player.ts b/src/addon/mod/quiz/pages/player/player.ts index 669445fbc..83fb1dca3 100644 --- a/src/addon/mod/quiz/pages/player/player.ts +++ b/src/addon/mod/quiz/pages/player/player.ts @@ -94,7 +94,7 @@ export class AddonModQuizPlayerPage implements OnInit, OnDestroy { // Create the navigation modal. this.navigationModal = modalCtrl.create('AddonModQuizNavigationModalPage', { page: this - }); + }, { cssClass: 'core-modal-lateral' }); } /** diff --git a/src/app/app.scss b/src/app/app.scss index eb0aad801..679a902f5 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -664,6 +664,22 @@ ion-app.app-root { } } + .core-#{$color-name}-item.item-input { + border-bottom: 0 !important; + + &.item-md .item-inner { + @include md-input-highlight($color-base); + } + + &.item-ios .item-inner { + @include ios-input-highlight($color-base); + } + + &.item-wp .item-inner { + border-color: $color-base; + } + } + .core-#{$color-name}-selected-item { @include safe-area-border-start(5px, solid, $color-base); @@ -721,13 +737,22 @@ ion-app.app-root { width: 100%; } - .core-modal-fullscreen { - .modal-wrapper { - position: absolute; - @include position(0 !important, null, null, 0 !important); - display: block; - width: 100% !important; - height: 100% !important; + .core-modal-fullscreen .modal-wrapper { + position: absolute; + @include position(0 !important, null, null, 0 !important); + display: block; + width: 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; } } diff --git a/src/classes/base-sync.ts b/src/classes/base-sync.ts index 2d1106973..f4a2bb436 100644 --- a/src/classes/base-sync.ts +++ b/src/classes/base-sync.ts @@ -243,7 +243,7 @@ export class CoreSyncBaseProvider { if (!siteId) { // No site ID defined, sync all sites. this.logger.debug(`Try to sync '${syncFunctionLog}' in all sites.`); - promise = this.sitesProvider.getSitesIds(); + promise = this.sitesProvider.getLoggedInSitesIds(); } else { this.logger.debug(`Try to sync '${syncFunctionLog}' in site '${siteId}'.`); promise = Promise.resolve([siteId]); diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 759b89372..9ae995e8b 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -1050,6 +1050,19 @@ export class CoreSitesProvider { }); } + /** + * Get the list of IDs of sites stored and not logged out. + * + * @return {Promise} Promise resolved when the sites IDs are retrieved. + */ + getLoggedInSitesIds(): Promise { + return this.appDB.getRecords(this.SITES_TABLE, {loggedOut : 0}).then((sites) => { + return sites.map((site) => { + return site.id; + }); + }); + } + /** * Get the list of IDs of sites stored. *