-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move general imports to specific scss files #32121
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import 'bourbon/bourbon'; | ||
|
||
// HTML component display: | ||
* { | ||
line-height: 1.4em; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,10 +130,6 @@ | |
padding: 0; | ||
border: none; | ||
} | ||
|
||
.blue-button { | ||
@include blue-button; | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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';", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it true that none of the XModules use lms/theme/variables? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, that's false, probably one of them uses if you check this list after decoupling you will find that more of one import is necessary There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. Do you want to merge this PR first? If so, when you rebase the decoupling PR, do you think you will put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I'd like to merge this one first, in that way I can add just the required imports in the specific files in this PR |
||
] | ||
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( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I am having trouble understanding what you mean here:
As I understand it, you are removing this block because it generates extra CSS in the video editor (which is the only thing that uses tabs.scss), but that CSS has no visual impact on the video editor, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that is the conclusion, that has no visual impact, the comment is probably a bad explanation of why the blue-button style change when I change the import place, but at the end it doesn't matter since that class doesn't exist in the current video editor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me 👍🏻