diff --git a/src/core/features/course/components/module-completion/core-course-module-completion.html b/src/core/features/course/components/module-completion/core-course-module-completion.html index ce6a3073a..32a0dacae 100644 --- a/src/core/features/course/components/module-completion/core-course-module-completion.html +++ b/src/core/features/course/components/module-completion/core-course-module-completion.html @@ -1,3 +1,9 @@ - + diff --git a/src/core/features/course/components/module-completion/module-completion.scss b/src/core/features/course/components/module-completion/module-completion.scss index 664cb4eef..a0fd0020d 100644 --- a/src/core/features/course/components/module-completion/module-completion.scss +++ b/src/core/features/course/components/module-completion/module-completion.scss @@ -1,13 +1,20 @@ :host { - button { - display: block; - background-color: transparent; + min-width: var(--a11y-min-target-size); + min-height: var(--a11y-min-target-size); + --size: 30px; - img { - padding: 5px; - width: 30px; - vertical-align: middle; - max-width: none; - } + img { + padding: 5px; + width: var(--size); + vertical-align: middle; + max-width: none; + margin: 7px; + } + + ion-button { + --padding-top: 0; + --padding-start: 0; + --padding-end: 0; + --padding-bottom: 0; } } 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 a6a942e03..453f5098c 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -1,22 +1,57 @@ - + + + - - - -
- - + + +

+ + +

+ + + + + {{ 'core.course.hiddenfromstudents' | translate }} + + + {{ 'core.course.hiddenoncoursepage' | translate }} + +
+ {{ 'core.restricted' | translate }} + + +
+ + {{ 'core.course.manualcompletionnotsynced' | translate }} + +
-
+
@@ -37,39 +72,34 @@
-
- -
- - - - - {{ 'core.course.hiddenfromstudents' | translate }} - - - {{ 'core.course.hiddenoncoursepage' | translate }} - -
- {{ 'core.restricted' | translate }} - + + + + -
- - {{ 'core.course.manualcompletionnotsynced' | translate }} - -
+
+
+
- - - -
- - - - - + + + + + diff --git a/src/core/features/course/components/module/module.scss b/src/core/features/course/components/module/module.scss index 5ded99475..017a6d617 100644 --- a/src/core/features/course/components/module/module.scss +++ b/src/core/features/course/components/module/module.scss @@ -1,45 +1,10 @@ :host { - // @todo Review commented styles. - background: white; - display: block; - - .item.core-course-module-handler { - align-items: flex-start; - min-height: 52px; - cursor: pointer; - -// &.item .item-inner { -// @include safe-area-padding(null, 0px, null, null); -// } -// .label { -// @include margin(0, 0, 0, null); -// } - .core-module-icon { - align-items: flex-start; - width: 24px; - height: 24px; - margin-top: 11px; - } - -// &.item-ios:active, -// &.item-ios.activated { -// background-color: $list-ios-activated-background-color; -// } -// &.item-md:active, -// &.item-md.activated { -// background-color: $list-md-activated-background-color; -// } + .item.core-module-main-item { + --min-height: 52px; } - .core-module-title { - display: flex; - flex-flow: row; - align-items: flex-start; - - core-format-text { - flex-grow: 2; - } + .core-module-main-item { .core-module-buttons, .buttons.core-module-buttons { margin: 0; @@ -66,10 +31,10 @@ } } - .core-module-more-info { - // ion-badge { - // @include text-align('start'); - // } + .core-module-module-description { + ion-badge { + text-align: start; + } .core-module-availabilityinfo { font-size: 90%; @@ -79,86 +44,23 @@ } } - .core-not-clickable { - cursor: initial; - -// &:active, -// &.activated { -// background-color: $list-background-color; -// } - } - .core-module-loading { width: 100%; text-align: center; padding-top: 10px; clear: both; -// @include darkmode() { -// color: $core-dark-text-color; -// } } -// @include darkmode() { -// .item.core-course-module-handler { -// background: $core-dark-item-bg-color; -// &.item-ios:active, -// &.item-ios.activated, -// &.item-md:active, -// &.item-md.activated { -// background-color: $core-dark-background-color; -// } -// } + .core-module-main-item + .core-module-module-description ion-label { + margin-top: 0px; + } + + .core-module-main-item.has-module-description { + --inner-border-width: 0; + } + + .core-module-module-description ion-label { + margin-inline-start: 50px; + } -// .core-not-clickable:active, -// .core-not-clickable.activated { -// background-color: $core-dark-item-bg-color; -// } -// } } - -// ion-app.app-root.md core-course-module { -// .core-module-description { -// @include padding(null, $label-md-margin-end, null, null); -// margin-bottom: $label-md-margin-bottom; - -// .core-show-more { -// @include padding(null, $label-md-margin-end, null, null); -// } -// } - -// .core-module-title core-format-text { -// padding-top: $label-md-margin-top + 3; -// } -// .button-md { -// margin-top: 8px; -// margin-bottom: 8px; -// } -// .core-module-buttons-more { -// min-height: 52px; -// min-width: 53px; -// } -// } - -// ion-app.app-root.ios core-course-module { -// .core-module-description { -// @include padding(null, $label-ios-margin-end, null, null); -// margin-bottom: $label-md-margin-bottom; - -// .core-show-more { -// @include padding(null, $label-ios-margin-end, null, null); -// } -// } - -// .core-module-title core-format-text { -// padding-top: $label-ios-margin-top + 3; -// } - -// .core-module-buttons-more { -// min-height: 53px; -// min-width: 58px; -// } -// } - -// ion-app.app-root .core-course-module-handler.item [item-start] + .item-inner { -// @include margin-horizontal(4px, null); -// }