diff --git a/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html b/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html index 6885e5146..79c4f4af5 100644 --- a/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html +++ b/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html @@ -4,7 +4,7 @@ - + -
+
-
+
diff --git a/src/core/features/course/components/course-format/course-format.scss b/src/core/features/course/components/course-format/course-format.scss index 6b7420c86..6589e71d6 100644 --- a/src/core/features/course/components/course-format/course-format.scss +++ b/src/core/features/course/components/course-format/course-format.scss @@ -14,3 +14,18 @@ .course-section { --inner-padding-end: 12px; } + +.multiple-sections .core-course-module-list-wrapper { + border: var(--ion-card-border-width) solid var(--ion-card-border-color); + border-radius: var(--ion-card-radius); + margin: 8px 4px; + width: calc(100% - 8px); + + ion-card { + --ion-card-background: transparent; + } + + ion-item-divider { + --background: transparent; + } +} diff --git a/src/core/features/course/components/module/core-course-module.html b/src/core/features/course/components/module/core-course-module.html index 1a296ac1b..f11390d14 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -1,7 +1,7 @@ diff --git a/src/core/features/course/components/module/module.scss b/src/core/features/course/components/module/module.scss index 19f40ee3c..69736bbd9 100644 --- a/src/core/features/course/components/module/module.scss +++ b/src/core/features/course/components/module/module.scss @@ -4,13 +4,15 @@ --horizontal-margin: 12px; --vertical-margin: 12px; --card-padding: 16px; + --card-border-width: 0px; + --card-radius: 0px; + --card-background: transparent; ion-card { margin: var(--vertical-margin) var(--horizontal-margin); - - &.activityinline { - border: 0px; - } + --ion-card-border-width: var(--card-border-width); + --ion-card-radius: var(--card-radius); + --ion-card-background: var(--card-background); } ion-item { @@ -125,6 +127,7 @@ } .activity-extrabadges { + font: var(--mdl-typography-body-font-md); color: var(--medium); } @@ -182,13 +185,11 @@ } &.indented ion-card { - border: none; - --ion-card-radius: 0; @include margin-horizontal(calc(var(--horizontal-margin) + 1rem), null); } - &.indented + ::ng-deep core-course-module.indented ion-card { - border-top: 1px solid var(--border-color); + & + ::ng-deep core-course-module ion-card { + border-top: 1px solid var(--ion-card-border-color); } // Hide download folder icon meanwhile MOBILE-4147 is not solved diff --git a/src/core/features/course/components/module/module.ts b/src/core/features/course/components/module/module.ts index afe4c1545..4f1063fb5 100644 --- a/src/core/features/course/components/module/module.ts +++ b/src/core/features/course/components/module/module.ts @@ -66,7 +66,6 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy { prefetchStatusIcon$ = new BehaviorSubject(''); // Module prefetch status icon. prefetchStatusText$ = new BehaviorSubject(''); // Module prefetch status text. moduleHasView = true; - activityInline = false; protected prefetchHandler?: CoreCourseModulePrefetchHandler; @@ -103,18 +102,6 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy { this.module.handlerData.a11yTitle = this.module.handlerData.a11yTitle ?? this.module.handlerData.title; this.moduleHasView = CoreCourse.moduleHasView(this.module); - if ( - this.module.handlerData.hasCustomCmListItem && - (!this.showAvailability || !this.module.availabilityinfo) && - (!this.showCompletion || !this.hasCompletion) && - (!this.showActivityDates || !this.module.dates?.length) && - !this.module.groupmode && - !(this.module.visible === 0) && - !(this.module.visible !== 0 && this.module.isStealth) - ) { - this.activityInline = true; - } - if (this.showDownloadStatus && this.module.handlerData.showDownloadButton) { const status = await CoreCourseModulePrefetchDelegate.getDownloadedModuleStatus(this.module, this.module.course); this.updateModuleStatus(status); diff --git a/src/core/features/course/pages/list-mod-type/list-mod-type.html b/src/core/features/course/pages/list-mod-type/list-mod-type.html index ce6264820..b7358a4d1 100644 --- a/src/core/features/course/pages/list-mod-type/list-mod-type.html +++ b/src/core/features/course/pages/list-mod-type/list-mod-type.html @@ -8,7 +8,7 @@ - + @@ -18,7 +18,7 @@ - +

@@ -30,7 +30,7 @@ - + diff --git a/src/core/features/sitehome/pages/index/index.html b/src/core/features/sitehome/pages/index/index.html index 6190b15c3..168648f1c 100644 --- a/src/core/features/sitehome/pages/index/index.html +++ b/src/core/features/sitehome/pages/index/index.html @@ -8,9 +8,37 @@ - + - +
+ + +

+ +

+
+ + {{ 'core.course.hiddenfromstudents' | translate }} + +
+
+ + {{ 'core.notavailable' | translate }} + +
+
+ + + + + + +
+
+
+ @@ -18,11 +46,10 @@ - +
- diff --git a/src/core/features/sitehome/pages/index/index.scss b/src/core/features/sitehome/pages/index/index.scss index 562b7a536..f28b3f94d 100644 --- a/src/core/features/sitehome/pages/index/index.scss +++ b/src/core/features/sitehome/pages/index/index.scss @@ -10,6 +10,21 @@ ion-item ion-icon { @include margin-horizontal(null, var(--margin-end)); } -core-spacer { - --spacer-horizontal: 10px; +section.core-course-module-list-wrapper { + border: var(--ion-card-border-width) solid var(--ion-card-border-color); + border-radius: var(--ion-card-radius); + margin: 12px; + + ion-card { + --ion-card-background: transparent; + } + + ion-item-divider { + --background: transparent; + } +} + +core-course-module.core-sitehome-news { + --card-border-width: var(--ion-card-border-width); + --card-radius: var(--ion-card-radius); } diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 2c4350d3e..74b62ffbd 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -207,9 +207,7 @@ img[core-external-content]:not([src]) { border-radius: var(--mdl-shape-borderRadius-lg); } -ion-list.core-course-module-list-wrapper, .list-item-limited-width, -.core-course-module-list-wrapper, ion-content.limited-width > :not([slot]) { max-width: var(--list-item-max-width); margin-left: auto !important;