Open kdmccormick opened 1 month ago
Perhaps duplicate of https://github.com/openedx/edx-platform/issues/35306
@farhan Whereas #35306 concerned converting just the variables, this issue will concern converting the entire files from .scss to .css
@farhan I've filled this one in. Let me know if you have any questions.
Background
Follows up from:
The goal of this task is to entirely convert the Sass in the ./xmodule/ directory into vanilla CSS which can be loaded with the standard ResourceLoader class from xblock.utils. The immediate benefit is that we can remove the xmodule Sass build steps from edx-platform. The longer-term benefit is that this will remove any Sass build concerns from the xblock extraction effort.
Tasks
npm run compile-sass-dev
).lms/static/css/*Display.css
andlms/static/css/*Editor.css
) into xmodule/assets. Add those CSS files to version control.add_sass_to_fragment
call with standard usage of axblock.utils.resources.ResourceLoader
andfragment.add_css
.add_sass_to_fragment
from xmodule.util.builtin_assets.py.scss
files under xmodule/assetscompile_sass_dir(...)
calls in scripts/compile_sass.sh which compile Sass under xmodule/assets.xmodule/assets/README.rst