From 8566e704c21adb6936423779f99986c4e26c672c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Mon, 4 Dec 2023 16:52:14 +0100 Subject: [PATCH] MDL-77124 theme_boost: Final removal of dnd unused styles --- theme/boost/scss/moodle/course.scss | 58 ----------------------------- theme/boost/style/moodle.css | 57 ---------------------------- theme/classic/style/moodle.css | 57 ---------------------------- 3 files changed, 172 deletions(-) diff --git a/theme/boost/scss/moodle/course.scss b/theme/boost/scss/moodle/course.scss index b5d0a041d75..6fbe161e40d 100644 --- a/theme/boost/scss/moodle/course.scss +++ b/theme/boost/scss/moodle/course.scss @@ -640,39 +640,6 @@ span.editinstructions { ); } -/* Course drag and drop upload styles */ -#dndupload-status { - position: fixed; - left: 0; - width: 40%; - margin: 0 30%; - padding: 6px; - text-align: center; - z-index: 1; // Required in order to have this above relatively positioned course content@mixin - border: $alert-border-width solid transparent; - - @include alert-variant( - theme-color-level('info', $alert-bg-level), - theme-color-level('info', $alert-border-level), - theme-color-level('info', $alert-color-level) - ); -} - -.dndupload-preview { - padding: $modal-inner-padding; - background-color: $primary; - color: $white; - text-align: center; - font-size: $font-size-lg; - max-width: 600px; - margin: 0 auto; - @include border-radius(); -} - -.dndupload-hidden { - display: none; -} - /* COURSES LISTINGS AND COURSE SUMMARY */ #page-course-pending .singlebutton, #page-course-index .singlebutton, @@ -1423,31 +1390,6 @@ $activity-add-hover: theme-color-level('primary', -10) !default; font-size: $font-size-lg; color: $primary; } - - // Legacy dndupload classes. Can be removed in 4.4 as part of MDL-77124. - &.dndupload-dropzone { - border: 2px dashed $primary; - padding-left: 2px; - padding-right: 2px; - position: relative; - - .dndupload-preview-overlay { - background-color: $white; - opacity: 0.8; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - } - - .dndupload-preview-wrapper { - position: absolute; - top: 0; - padding: 2rem; - width: 100%; - } - } } /* Re-style ordered list in course content */ diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 96f9cba3e15..fc5d9cb09a2 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -28508,42 +28508,6 @@ span.editinstructions .alert-link { color: #00171b; } -/* Course drag and drop upload styles */ -#dndupload-status { - position: fixed; - left: 0; - width: 40%; - margin: 0 30%; - padding: 6px; - text-align: center; - z-index: 1; - border: 0 solid transparent; - color: #00434e; - background-color: #cce6ea; - border-color: #b8dce2; -} -#dndupload-status hr { - border-top-color: #a6d3db; -} -#dndupload-status .alert-link { - color: #00171b; -} - -.dndupload-preview { - padding: 1rem; - background-color: #0f6cbf; - color: #fff; - text-align: center; - font-size: 1.171875rem; - max-width: 600px; - margin: 0 auto; - border-radius: 0.5rem; -} - -.dndupload-hidden { - display: none; -} - /* COURSES LISTINGS AND COURSE SUMMARY */ #page-course-pending .singlebutton, #page-course-index .singlebutton, @@ -29189,27 +29153,6 @@ span.editinstructions .alert-link { font-size: 1.171875rem; color: #0f6cbf; } -.course-section.dndupload-dropzone { - border: 2px dashed #0f6cbf; - padding-left: 2px; - padding-right: 2px; - position: relative; -} -.course-section.dndupload-dropzone .dndupload-preview-overlay { - background-color: #fff; - opacity: 0.8; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.course-section.dndupload-dropzone .dndupload-preview-wrapper { - position: absolute; - top: 0; - padding: 2rem; - width: 100%; -} /* Re-style ordered list in course content */ .course-content .activity-altcontent ul { diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 6120c863bc3..c9db8fffc7d 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -28508,42 +28508,6 @@ span.editinstructions .alert-link { color: #00171b; } -/* Course drag and drop upload styles */ -#dndupload-status { - position: fixed; - left: 0; - width: 40%; - margin: 0 30%; - padding: 6px; - text-align: center; - z-index: 1; - border: 0 solid transparent; - color: #00434e; - background-color: #cce6ea; - border-color: #b8dce2; -} -#dndupload-status hr { - border-top-color: #a6d3db; -} -#dndupload-status .alert-link { - color: #00171b; -} - -.dndupload-preview { - padding: 1rem; - background-color: #0f6cbf; - color: #fff; - text-align: center; - font-size: 1.171875rem; - max-width: 600px; - margin: 0 auto; - border-radius: 0.25rem; -} - -.dndupload-hidden { - display: none; -} - /* COURSES LISTINGS AND COURSE SUMMARY */ #page-course-pending .singlebutton, #page-course-index .singlebutton, @@ -29189,27 +29153,6 @@ span.editinstructions .alert-link { font-size: 1.171875rem; color: #0f6cbf; } -.course-section.dndupload-dropzone { - border: 2px dashed #0f6cbf; - padding-left: 2px; - padding-right: 2px; - position: relative; -} -.course-section.dndupload-dropzone .dndupload-preview-overlay { - background-color: #fff; - opacity: 0.8; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.course-section.dndupload-dropzone .dndupload-preview-wrapper { - position: absolute; - top: 0; - padding: 2rem; - width: 100%; -} /* Re-style ordered list in course content */ .course-content .activity-altcontent ul {