-
Notifications
You must be signed in to change notification settings - Fork 4.2k
LMS: Revised CSS Architecture (resolves LMS_1020) #1208
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
Conversation
if anyone has any better ideas to help split the rendered CSS into manageable chunks for IE9 while addressing the concerns above, I'm all ears. |
|
Also, pinging @jzoldak formally on this one too. |
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.
This file should not be committed.
|
will look through the rest tomorrow but I'm going through active pull requests to remind people to add entries to the Change Log file. |
|
I did a quick search and found two css spliters: css_splitter (Rails Asset Pipeline) and bless.js. (Node.js). They are both a couple of hundred lines each so porting wouldn't take more than an afternoon but neither is 100% reliable. So I am not sure about doing this. However, we can probably create a test (either in js or python) which counts the number of selectors in the css files and logs an error if in any of the files the count is above 3500. So someone will not have to manually do a check every release. |
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.
Does this page not need any of the extend* files? Or was that an oversight?
|
I don't see any issues w/ the way that the pipeline stuff is defined. |
|
yea, pipeline stuff looks good, verified that it built correctly in my aws sandbox just to be sure. |
|
Thanks for the thoughts and review, folks. @symbolist, you reminded us of some good points. After talking with @frrrances, I want to take a step back and approach resolving this bug in the following steps:
Going this route will help avoid the very valid concern of manually checking for rule issues with every CSS delta to our codebase. It will also make it easier to decouple our Sass/CSS output architecture from the temporary solution needed for IE9 (which will hopefully not need to be supported in the future) With that all said, I'm going to refactor my work here to not manually split up our troublesome CSS files but will need help implementing Bless into our pipeline workflow for all of our apps and our local/production envs. Who's best to help with that? |
|
My suggestion for putting bless into everything would be to put it in as part of |
|
I've reverted this work back to just producing one lms-style-app.css file from one main Sass file (application.scss). @cpennington, thanks for the recommendation of placing Bless into assets.rake. I tried to take a look into placing that in and its way beyond my wheelhouse. I'd like to get this resolved quickly as styling is broken for parts of the LMS in production now on IE9. Is there any chance you can help 1) install Bless and 2) add it into our rake.assets file? If possible, I'd like it to run for all of our CSS files (and not just the problem ones now). Thanks for any help you can provide in resolving this. |
|
After discussing possible solutions with @singingwolfboy and others, I think we'd ideally like a solution that's less manual and more pipeline-centric. The optimal option proposed involves adding BlessCSS (http://blesscss.com/) to or around our Django Pipeline workflow when rendering our production-ready css files per app. I'm closing this with that spirit in mind. @mikigoyal, since this relates to a cat-1 bug, can we get some prioritized resources ( @singingwolfboy, @cpennington, or devops ) familiar with the pipeline on the suggested approach? |
…-centric CSS file
|
Closing this PR down, as there is now a separate one being worked on for a hotfix - https://github.com/edx/edx-platform/pull/1320 |
…ail-templates-for-multilingual-support Fix email templates for multilingual support openedx#1185
This LMS work helps to:
This work brought up large concerns:
These two points really concern me and I highly recommend a very deep revamp/cleaning of the Sass architecture shortly. I've tested the display of many pages locally, but each page's display should really be stress-tested to ensure there are no visual regressions. If you want to test the number of rules being used, crack open your console and run this gist in a view - https://gist.github.com/psebborn/1885511