diff --git a/src/addons/block/timeline/components/events/addon-block-timeline-events.html b/src/addons/block/timeline/components/events/addon-block-timeline-events.html index b370beae4..5244492db 100644 --- a/src/addons/block/timeline/components/events/addon-block-timeline-events.html +++ b/src/addons/block/timeline/components/events/addon-block-timeline-events.html @@ -53,7 +53,7 @@ - + {{event.action.name}} {{event.action.itemcount}} diff --git a/src/addons/block/timeline/components/timeline/addon-block-timeline.html b/src/addons/block/timeline/components/timeline/addon-block-timeline.html index 949692cb2..c494a8f6f 100644 --- a/src/addons/block/timeline/components/timeline/addon-block-timeline.html +++ b/src/addons/block/timeline/components/timeline/addon-block-timeline.html @@ -4,13 +4,21 @@ - - - + + + + + + + + + {{ 'core.all' | translate }} - + {{ 'addon.block_timeline.overdue' | translate }} @@ -30,13 +38,13 @@ - + - + @@ -48,14 +56,7 @@ - - - - - - + - +

{{ 'addon.storagemanager.courseinfo' | translate }}

@@ -47,8 +47,8 @@ - - + - diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.scss b/src/addons/storagemanager/pages/course-storage/course-storage.scss index 8682b14eb..cf6193060 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.scss +++ b/src/addons/storagemanager/pages/course-storage/course-storage.scss @@ -3,36 +3,41 @@ :host { --course-storage-max-activity-height: 120px; - ion-card ion-item { + ion-card ion-item.size { --inner-padding-end: 0px; } - ion-card.section ion-card-header { - padding-top: 8px; - padding-bottom: 8px; - } - ion-card.section .item-heading { - font-weight: bold; - font-size: 1.2rem; - } + ion-card.section { + ion-card-header { + padding: 0; + } + ion-card-content { + padding: 0; - ion-card-content.hidden-content { - padding: 0; - } + .core-course-storage-activity ion-label { + h3 { + position: relative; + max-height: var(--course-storage-max-activity-height); + overflow: hidden; + ::ng-deep * { + pointer-events: none !important; + } - .core-course-storage-activity ion-label h3 { - position: relative; - max-height: var(--course-storage-max-activity-height); - - &:before { - content: ''; - height: 100%; - min-height: var(--course-storage-max-activity-height); - position: absolute; - @include position(0, 0, null, 0); - background: linear-gradient(to bottom, rgba(var(--background-gradient-rgb), 0) calc(100% - 30px), rgba(var(--background-gradient-rgb), 1) calc(100% - 20px)); - z-index: 6; - pointer-events: none; + &:before { + content: ''; + height: var(--course-storage-max-activity-height); + position: absolute; + @include position(0, 0, null, 0); + background: linear-gradient(to bottom, rgba(var(--background-gradient-rgb), 0) calc(100% - 30px), rgba(var(--background-gradient-rgb), 1) calc(100% - 20px)); + z-index: 6; + pointer-events: none; + } + } + } + } + .item-heading { + font-weight: bold; + font-size: 1.2rem; } } } diff --git a/src/core/features/course/classes/module-prefetch-handler.ts b/src/core/features/course/classes/module-prefetch-handler.ts index ab9bf9fda..79dfd6bc7 100644 --- a/src/core/features/course/classes/module-prefetch-handler.ts +++ b/src/core/features/course/classes/module-prefetch-handler.ts @@ -47,12 +47,6 @@ export class CoreCourseModulePrefetchHandlerBase implements CoreCourseModulePref */ updatesNames = /^.*files$/; - /** - * If true, this module will be ignored when determining the status of a list of modules. The module will - * still be downloaded when downloading the section/course, it only affects whether the button should be displayed. - */ - skipListStatus = false; - /** * List of download promises to prevent downloading the module twice at the same time. */ diff --git a/src/core/features/course/services/module-prefetch-delegate.ts b/src/core/features/course/services/module-prefetch-delegate.ts index 91e069b40..992e069e8 100644 --- a/src/core/features/course/services/module-prefetch-delegate.ts +++ b/src/core/features/course/services/module-prefetch-delegate.ts @@ -1361,8 +1361,10 @@ export interface CoreCourseModulePrefetchHandler extends CoreDelegateHandler { /** * If true, this module will be treated as not downloadable when determining the status of a list of modules. The module will * still be downloaded when downloading the section/course, it only affects whether the button should be displayed. + * + * @depracated since app 4.0. */ - skipListStatus: boolean; + skipListStatus?: boolean; /** * Get the download size of a module. diff --git a/src/core/features/search/components/search-box/core-search-box.html b/src/core/features/search/components/search-box/core-search-box.html index 66dedb5c2..675a7f9b0 100644 --- a/src/core/features/search/components/search-box/core-search-box.html +++ b/src/core/features/search/components/search-box/core-search-box.html @@ -1,26 +1,24 @@ - -
- - {{ placeholder }} - - - - - - - - + + + {{ placeholder }} + + + + + + + + + + + + + {{item.searchedtext}} - - - - {{item.searchedtext}} - - - -
+ + diff --git a/src/core/features/search/components/search-box/search-box.scss b/src/core/features/search/components/search-box/search-box.scss index 958a5edc7..698da8e5b 100644 --- a/src/core/features/search/components/search-box/search-box.scss +++ b/src/core/features/search/components/search-box/search-box.scss @@ -1,29 +1,40 @@ :host { - min-height: var(--a11y-min-target-size); + --height: var(--a11y-min-target-size); + --search-height: calc(var(--height) - 2px); + min-height: var(--height); display: block; position: relative; margin: 8px; - ion-card { + form { position: absolute; left: 0; right: 0; z-index: 4; margin: 0; - --border-color: var(--core-search-box-border-color); - --border-radius: var(--core-search-box-border-radius); - --background: var(--core-search-box-background); - --color: var(--core-search-box-border-color); + border: 1px solid var(--core-search-box-border-color); + border-radius: var(--core-search-box-border-radius); + background: var(--core-search-box-background); + color: var(--core-search-box-border-color); + + .search-box { + --min-height: var(--search-height); + border-radius: var(--core-search-box-border-radius); + } + + ion-button.button { + margin: 0; + --a11y-min-target-size: var(--search-height); + } } - ion-button.button { - margin: 0; - } + .core-search-history { max-height: calc(-120px + 80vh); overflow-y: auto; background: var(--core-search-box-background); + border-radius: 0 0 var(--core-search-box-border-radius) var(--core-search-box-border-radius); --ion-item-background: var(--core-search-box-background); .item:hover { diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 6efa32011..32100b047 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -501,10 +501,6 @@ ion-toast { @include media-breakpoint-down(sm) { &::part(container) { flex-direction: column; - align-items: flex-end; - } - &::part(message) { - align-self: flex-start; } } } @@ -848,6 +844,10 @@ ion-card { ion-item:only-child { --inner-border-width: 0px; } + + ion-card-title { + font-size: 20px; + } } .core-course-module-handler:not(.addon-mod-label-handler) .item-heading .filter_mathjaxloader_equation div { @@ -1054,9 +1054,16 @@ ion-button.chip { ion-icon { font-size: 16px; min-width: 16px; + } + + ion-icon[slot=start] { @include margin(0, 8px, 0, 0); } + ion-icon[slot=end] { + @include margin(0, 0, 0, 8px); + } + ion-label { white-space: normal !important; }