feat: move general imports to specific scss files (#32121)

This moves XModule scss imports to the specific files where they are required instead of
having a common XModule scss import list.

This is part of  https://github.com/openedx/edx-platform/issues/31624
This commit is contained in:
Andrey Cañon
2023-04-27 09:38:04 -05:00
committed by GitHub
parent 6af95b46e7
commit f8e2363e10
6 changed files with 8 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
@import 'bourbon/bourbon';
.course-index {
@include transition(all 0.2s $ease-in-out-quad 0s);
@include border-right(1px solid $border-color-2);

View File

@@ -18,6 +18,7 @@
// * +Problem - Choice Text Group
// * +Problem - Image Input Overrides
// * +Problem - Annotation Problem Overrides
@import 'bourbon/bourbon';
// +Variables - Capa
// ====================

View File

@@ -1,3 +1,5 @@
@import 'bourbon/bourbon';
// HTML component display:
* {
line-height: 1.4em;

View File

@@ -130,10 +130,6 @@
padding: 0;
border: none;
}
.blue-button {
@include blue-button;
}
}

View File

@@ -8,6 +8,7 @@
// --------
// Defaults: what displays if the icon font doesn't load.
// --------
@import 'bourbon/bourbon';
// the html target is necessary for xblocks and xmodules, but works across the board

View File

@@ -147,10 +147,8 @@ def _write_styles(selector, output_root, classes, css_attribute):
for class_ in classes:
css_imports[class_].add(fragment_name)
module_styles_lines = [
"@import 'bourbon/bourbon';",
"@import 'lms/theme/variables';",
]
module_styles_lines = []
for class_, fragment_names in sorted(css_imports.items()):
fragment_names = sorted(fragment_names)
module_styles_lines.append("""{selector}.xmodule_{class_} {{""".format(