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 3ce510a26..fa38b0bc3 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/format/core-course-format.html b/src/core/features/course/components/format/core-course-format.html
index 0a3185058..e994ed9ec 100644
--- a/src/core/features/course/components/format/core-course-format.html
+++ b/src/core/features/course/components/format/core-course-format.html
@@ -66,9 +66,8 @@
-
+ class="core-course-module-list-wrapper" [id]="section.id">
+
diff --git a/src/core/features/course/components/module/module.scss b/src/core/features/course/components/module/module.scss
index faf96e525..9048f93d7 100644
--- a/src/core/features/course/components/module/module.scss
+++ b/src/core/features/course/components/module/module.scss
@@ -1,12 +1,16 @@
@import "~theme/globals";
:host {
+ --horizontal-margin: 12px;
- .item.core-module-main-item {
- --min-height: 52px;
+ ion-card {
+ margin-left: var(--horizontal-margin);
+ margin-right: var(--horizontal-margin);
}
- .core-module-main-item {
+ ion-item.core-module-main-item {
+ --min-height: 52px;
+
.core-module-buttons,
.buttons.core-module-buttons {
margin: 0;
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 d0cf3b7d1..edf62be15 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
@@ -16,7 +16,7 @@
-
+
diff --git a/src/core/features/sitehome/pages/index/index.html b/src/core/features/sitehome/pages/index/index.html
index 45bd97c06..a2f064248 100644
--- a/src/core/features/sitehome/pages/index/index.html
+++ b/src/core/features/sitehome/pages/index/index.html
@@ -8,7 +8,7 @@
-
+
diff --git a/src/core/features/sitehome/pages/index/index.scss b/src/core/features/sitehome/pages/index/index.scss
index 7a2bbde1d..6193c059a 100644
--- a/src/core/features/sitehome/pages/index/index.scss
+++ b/src/core/features/sitehome/pages/index/index.scss
@@ -15,3 +15,7 @@ core-course-module.core-sitehome-news ::ng-deep ion-card {
margin: 0;
padding: 0;
}
+
+core-spacer ::ng-deep .item {
+ border-radius: var(--medium-radius);
+}
diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss
index 0143bf8b3..1a92c7795 100644
--- a/src/theme/theme.base.scss
+++ b/src/theme/theme.base.scss
@@ -736,6 +736,22 @@ ion-card {
display: inline !important;
}
+ion-list.core-course-module-list-wrapper,
+.core-course-module-list-wrapper {
+ max-width: var(--module-list-width);
+ margin-left: auto;
+ margin-right: auto;
+
+ --padding-start: 12px;
+ --padding-end: 12px;
+ padding-left: var(--padding-start);
+ padding-right: var(--padding-end);
+
+ core-course-module {
+ --horizontal-margin: 0px;
+ }
+}
+
ion-toolbar h1 img.core-bar-button-image,
ion-toolbar h1 .core-bar-button-image img {
padding: 4px;
@@ -1209,8 +1225,15 @@ ion-item.item-input ion-input.has-focus {
}
}
-ion-item-divider {
+ion-item-divider.item, ion-item.item.divider {
--inner-padding-end: 8px;
+ background: var(--background);
+ min-height: var(--min-height);
+ border-width: var(--item-divider-border-width);
+ font-size: var(--item-divider-font-size);
+ h2, ion-label h2 {
+ font-size: var(--item-divider-font-size);
+ }
}
// Change default outline.
diff --git a/src/theme/theme.dark.scss b/src/theme/theme.dark.scss
index 0f512966d..6e88cfc14 100644
--- a/src/theme/theme.dark.scss
+++ b/src/theme/theme.dark.scss
@@ -77,7 +77,6 @@
--ion-item-background: #{$ion-item-background-dark};
--ion-item-detail-icon-color: var(--white);
- --item-divider-background: var(--gray-800);
--item-divider-color: var(--text-color);
--spacer-background: var(--gray-100);
diff --git a/src/theme/theme.light.scss b/src/theme/theme.light.scss
index 71697c5f6..61b52c0f7 100644
--- a/src/theme/theme.light.scss
+++ b/src/theme/theme.light.scss
@@ -71,6 +71,7 @@
--module-icon-size: 24px;
--module-icon-radius: var(--medium-radius);
+ --module-list-width: 768px;
--ion-background-color: var(--background-color);
--ion-background-color-rgb: #{$background-color-rgb};
@@ -221,20 +222,21 @@
}
--item-divider-min-height: calc(var(--a11y-min-target-size) + 8px);
- --item-divider-background: var(--light);
+ --item-divider-background: transparent;
--item-divider-color: var(--text-color);
+ --item-divider-border-width: 0px;
+ --item-divider-font-size: 20px;
ion-item-divider, ion-item.divider {
--background: var(--item-divider-background);
--color: var(--item-divider-color);
--min-height: var(--item-divider-min-height);
- min-height: var(--min-height);
.expandable-status-icon {
font-size: 18px;
}
}
- --spacer-background: var(--item-divider-background);
+ --spacer-background: var(--light);
core-spacer {
--item-divider-background: var(--spacer-background);
}