diff --git a/src/core/components/loading/core-loading.html b/src/core/components/loading/core-loading.html
index 2bffacab4..7f5006545 100644
--- a/src/core/components/loading/core-loading.html
+++ b/src/core/components/loading/core-loading.html
@@ -1,8 +1,6 @@
-
-
- {{message}}
-
+
+
{{message}}
diff --git a/src/core/components/loading/loading.scss b/src/core/components/loading/loading.scss
index 2cb4ac8ea..ba0bcd3d6 100644
--- a/src/core/components/loading/loading.scss
+++ b/src/core/components/loading/loading.scss
@@ -4,35 +4,44 @@
--loading-background: var(--ion-background-color);
--loading-spinner: var(--ion-color-primary);
--loading-text-color: var(--ion-text-color);
+ --loading-inline-margin: 0;
+ --loading-inline-min-height: 28px;
position: static;
color: var(--loading-text-color);
+ &.margin {
+ --loading-inline-margin: 10px;
+ }
+
+ &.core-loading-loaded {
+ --loading-inline-margin: 0;
+ --loading-inline-min-height: 0;
+ }
+
ion-spinner {
--color: var(--loading-spinner);
color: var(--color);
}
- > .core-loading-container {
+ .core-loading-container {
position: absolute;
@include position(0, 0, 0, 0);
- display: table;
+ display: flex;
height: 100%;
width: 100%;
- text-align: center;
- clear: both;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
z-index: 3;
margin: 0;
- padding: 10px 0 0 0;
+ padding: 0;
background-color: var(--loading-background);
- -webkit-transition: all 200ms ease-in-out;
- transition: all 200ms ease-in-out;
+ @include core-transition(all, 200ms);
+ }
- .core-loading-spinner {
- display: table-cell;
- text-align: center;
- vertical-align: middle;
- }
+ .core-loading-message {
+ @include margin(10px, 0, 0, 0);
}
.core-loading-content {
@@ -48,21 +57,26 @@
}
&.core-loading-inline {
- display: block;
-
- .core-loading-container {
- padding-top: 20px;
- position: relative;
- }
- }
-
- &.core-loading-loaded.core-loading-inline {
+ --loading-background: transparent;
position: relative;
- min-height: 102px;
+ display: block;
+ min-height: var(--loading-inline-min-height);
+ margin-top: var(--loading-inline-margin);
+ margin-bottom: var(--loading-inline-margin);
+
+ .core-loading-message {
+ @include margin(0, 0, 0, 10px);
+ }
.core-loading-container {
- padding-top: 10px;
- position: absolute;
+ flex-direction: row;
}
}
}
+
+:host-context(ion-item) {
+ &.core-loading-inline {
+ position: static;
+ display: block;
+ }
+}
diff --git a/src/core/features/block/components/course-blocks/core-block-course-blocks.html b/src/core/features/block/components/course-blocks/core-block-course-blocks.html
index 120e60749..74e57a9b2 100644
--- a/src/core/features/block/components/course-blocks/core-block-course-blocks.html
+++ b/src/core/features/block/components/course-blocks/core-block-course-blocks.html
@@ -3,7 +3,7 @@
0 && !hideBlocks" [class.core-hide-blocks]="hideBottomBlocks" class="core-course-blocks-side">
-
+
diff --git a/src/core/features/block/components/pre-rendered-block/core-block-pre-rendered.html b/src/core/features/block/components/pre-rendered-block/core-block-pre-rendered.html
index 46b579a07..f1cf8b8d4 100644
--- a/src/core/features/block/components/pre-rendered-block/core-block-pre-rendered.html
+++ b/src/core/features/block/components/pre-rendered-block/core-block-pre-rendered.html
@@ -7,7 +7,7 @@
-
+
+
{{ 'core.comments.commentscount' | translate : {'$a': commentsCount} }}
diff --git a/src/core/features/courses/pages/my-courses/my-courses.html b/src/core/features/courses/pages/my-courses/my-courses.html
index dcb81531f..e48166389 100644
--- a/src/core/features/courses/pages/my-courses/my-courses.html
+++ b/src/core/features/courses/pages/my-courses/my-courses.html
@@ -12,7 +12,7 @@
+ (click)="prefetchCourses()" [attr.aria-label]="'core.courses.downloadcourses' | translate">
+