-
Notifications
You must be signed in to change notification settings - Fork 88
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
Compiling vendored Bulma CSS with sass-rails or sassc-rails #237
Comments
Hi @barrywoolgar , just want to say thanks for your investigation into this issue! I can confirm that forking and removing all -is-palette-* rules fixes the compile error, which right now is more than good enough for me. Don't have a simpler solution sadly. |
Would love to have this now that the fix is in. When is the next release? |
@florian2 can you create a PR with your changes ? main...florian2:mission_control-jobs:main Thanks for your contribution <3 |
My project uses
sassc-rails
andsprockets
, and has fallen afoul of the issue referenced in the README (added by ac664d8):The exact error being:
Not being in a position to migrate to
dartsass-rails
,dartsass-sprockets
, orcss-bundling
right now, I looked a bit further into the exact cause, and would like to record it here to save the next person having to jump through the same hoops to figure out.The vendored
bulma.min.css
file (added by d43649c for good reasons) contains a series of.is-palette-*
rules containing CSS Variables that begin with numbers (eg.--00-l
), for example:This is valid CSS, but the Sass(C) compiler's don't like it, and I doubt that's going to change now that DartSass is on the scene.
Removing these rules from the CSS file will allow the MissionControl assets to be compiled, and has no apparent impact on MissionControl's UI. I've achieved this by forking the repo and replacing the CSS file, but that's not ideal for long-term maintenance.
Ideally this gem would only include the subset of CSS rules it needs from Bulma, but I appreciate it's a lot easier to just update the whole file as necessary to stay updated. Additionally, it's unlikely to get "fixed" upstream at Bulma as it's not really broken, so manually adjusting the CSS would be an open-ended task.
Have I missed a simpler solution?
The text was updated successfully, but these errors were encountered: