diff --git a/src/addon/mod/label/label.scss b/src/addon/mod/label/label.scss new file mode 100644 index 000000000..aa867a8f1 --- /dev/null +++ b/src/addon/mod/label/label.scss @@ -0,0 +1,3 @@ +a.core-course-module-handler.addon-mod-label-handler { + align-items: center; +} diff --git a/src/core/course/components/format/format.html b/src/core/course/components/format/format.html index 80df9237c..4c8d1d43a 100644 --- a/src/core/course/components/format/format.html +++ b/src/core/course/components/format/format.html @@ -12,7 +12,7 @@ -
+
{{section.formattedName || section.name}} @@ -63,7 +63,7 @@ -
+
- - {{section.count}} / {{section.total}} + +
diff --git a/src/core/course/components/format/format.scss b/src/core/course/components/format/format.scss new file mode 100644 index 000000000..11fd5d99a --- /dev/null +++ b/src/core/course/components/format/format.scss @@ -0,0 +1,6 @@ +ion-badge.core-course-download-section-progress { + display: block; + float: left; + margin-top: 12px; + margin-right: 12px; +} \ No newline at end of file diff --git a/src/core/course/components/module/module.html b/src/core/course/components/module/module.html index d4d63e0e7..84cd92959 100644 --- a/src/core/course/components/module/module.html +++ b/src/core/course/components/module/module.html @@ -1,36 +1,39 @@ +
+ - + +
+ + - -
- - +
+ + - - + + - - + + - - + + +
+
- - +
+ {{ 'core.course.hiddenfromstudents' | translate }} + +
- -
- {{ 'core.course.hiddenfromstudents' | translate }} - -
- +
\ No newline at end of file diff --git a/src/core/course/components/module/module.scss b/src/core/course/components/module/module.scss index 8eeee189e..c76d9e6f1 100644 --- a/src/core/course/components/module/module.scss +++ b/src/core/course/components/module/module.scss @@ -2,29 +2,116 @@ core-course-module { a.core-course-module-handler { align-items: flex-start; - item-inner { + min-height: 52px; + + &.item .item-inner { padding-right: 0; } + .label { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + } + .core-module-icon { + align-items: flex-start; + } } - .core-module-icon { - align-items: flex-start; - } - - .core-module-buttons { + .core-module-title { display: flex; flex-flow: row; - align-items: center; - z-index: 1; - cursor: pointer; - pointer-events: auto; - position: absolute; - right: 0; - top: 4px; + align-items: flex-start; - .spinner { - right: 7px; + core-format-text { + flex-grow: 2; + } + .core-module-buttons { + margin: 0; + } + + .core-module-buttons, + .core-module-buttons-more { + display: flex; + flex-flow: row; + align-items: center; + z-index: 1; + } + + .core-module-buttons core-course-module-completion, + .core-module-buttons-more button { + cursor: pointer; + pointer-events: auto; + } + + .core-module-buttons-more .spinner { + right: 13px; position: absolute; } } +} + +.md core-course-module { + .core-module-description, + .core-module-description .core-show-more { + padding-right: $label-md-margin-end; + } + + a.core-course-module-handler .core-module-icon { + margin-top: $label-md-margin-top; + margin-bottom: $label-md-margin-bottom; + } + + .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; + } +} + +.ios core-course-module { + .core-module-description, + .core-module-description .core-show-more { + padding-right: $label-ios-margin-end; + } + + a.core-course-module-handler .core-module-icon { + margin-top: $label-ios-margin-top; + margin-bottom: $label-ios-margin-bottom; + } + + .core-module-title core-format-text { + padding-top: $label-ios-margin-top + 3; + } + + .core-module-buttons-more { + min-height: 53px; + min-width: 58px; + } +} + +.wp core-course-module { + .core-module-description, + .core-module-description .core-show-more { + padding-right: ($item-wp-padding-end / 2); + } + + a.core-course-module-handler .core-module-icon { + margin-top: $item-wp-padding-top; + margin-bottom: $item-wp-padding-bottom; + } + + .core-module-title core-format-text { + padding-top: $item-wp-padding-top + 3; + } + + .button-wp { + margin-top: 8px; + margin-bottom: 8px; + } } \ No newline at end of file