MDL-78334 course: Deprecate .togglecompletion SCSS styles

This commit is contained in:
Mikel Martín 2023-11-09 13:17:59 +01:00
parent c9c3a34bf1
commit 8bca00cd59
4 changed files with 90 additions and 50 deletions

View File

@ -605,13 +605,6 @@ body:not(.editing) .sitetopic ul.section {
margin-left: 0;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}
.path-course-view {
&.editing {
li.activity span.autocompletion img {
@ -622,15 +615,6 @@ body:not(.editing) .sitetopic ul.section {
}
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
li.section.hidden span.commands a.editing_hide,
li.section.hidden span.commands a.editing_show {
cursor: default;

View File

@ -36,3 +36,23 @@
// color: $red;
// @include deprecated-styles();
// }
// The .togglecompletion usage was deprecated in 311 and finally removed in 403.
// Replaced by core_renderer::activity_information() and proper use of templates.
.path-course-view li.activity form.togglecompletion {
@include deprecated-styles();
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}

View File

@ -28467,29 +28467,12 @@ body:not(.editing) .sitetopic ul.section .label .mod-indent-outer {
margin-left: 0;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}
.path-course-view.editing li.activity span.autocompletion img {
/* Use the same spacing as the filler. */
margin-right: 0.5rem;
margin-left: 0.5rem;
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
li.section.hidden span.commands a.editing_hide,
li.section.hidden span.commands a.editing_show {
cursor: default;
@ -38782,6 +38765,41 @@ div.editor_atto_toolbar button .icon {
/**
Deprecations
*/
.path-course-view li.activity form.togglecompletion {
/* stylelint-disable declaration-no-important */
/* stylelint-enable */
}
body.behat-site .path-course-view li.activity form.togglecompletion,
.path-course-view li.activity form.togglecompletion body.behat-site.path-course-view li.activity form.togglecompletion, body.themedesignermode .path-course-view li.activity form.togglecompletion,
.path-course-view li.activity form.togglecompletion body.themedesignermode.path-course-view li.activity form.togglecompletion {
outline: 3px dotted #ca3120 !important;
background-color: #fceeed !important;
}
body.behat-site .path-course-view li.activity form.togglecompletion::before,
.path-course-view li.activity form.togglecompletion body.behat-site.path-course-view li.activity form.togglecompletion::before, body.themedesignermode .path-course-view li.activity form.togglecompletion::before,
.path-course-view li.activity form.togglecompletion body.themedesignermode.path-course-view li.activity form.togglecompletion::before {
content: "Deprecated style in use" !important;
color: #ca3120 !important;
font-size: smaller !important;
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

View File

@ -28467,29 +28467,12 @@ body:not(.editing) .sitetopic ul.section .label .mod-indent-outer {
margin-left: 0;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}
.path-course-view.editing li.activity span.autocompletion img {
/* Use the same spacing as the filler. */
margin-right: 0.5rem;
margin-left: 0.5rem;
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
li.section.hidden span.commands a.editing_hide,
li.section.hidden span.commands a.editing_show {
cursor: default;
@ -38716,6 +38699,41 @@ div.editor_atto_toolbar button .icon {
/**
Deprecations
*/
.path-course-view li.activity form.togglecompletion {
/* stylelint-disable declaration-no-important */
/* stylelint-enable */
}
body.behat-site .path-course-view li.activity form.togglecompletion,
.path-course-view li.activity form.togglecompletion body.behat-site.path-course-view li.activity form.togglecompletion, body.themedesignermode .path-course-view li.activity form.togglecompletion,
.path-course-view li.activity form.togglecompletion body.themedesignermode.path-course-view li.activity form.togglecompletion {
outline: 3px dotted #ca3120 !important;
background-color: #fceeed !important;
}
body.behat-site .path-course-view li.activity form.togglecompletion::before,
.path-course-view li.activity form.togglecompletion body.behat-site.path-course-view li.activity form.togglecompletion::before, body.themedesignermode .path-course-view li.activity form.togglecompletion::before,
.path-course-view li.activity form.togglecompletion body.themedesignermode.path-course-view li.activity form.togglecompletion::before {
content: "Deprecated style in use" !important;
color: #ca3120 !important;
font-size: smaller !important;
}
.path-course-view li.activity form.togglecompletion .ajaxworking {
width: 16px;
height: 16px;
position: absolute;
right: 22px;
top: 3px;
background: url([[pix:i/ajaxloader]]) no-repeat;
}
.path-course-view li.activity form.togglecompletion .btn {
padding: 0;
}
.path-course-view li.activity form.togglecompletion img {
max-width: none; /* The width is 0 so ensure we don't end up with a relative max-width */
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;