Skip to content
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

Access variables for less in main.css #1309

Closed
vera-liu opened this issue Oct 10, 2016 · 2 comments
Closed

Access variables for less in main.css #1309

vera-liu opened this issue Oct 10, 2016 · 2 comments

Comments

@vera-liu
Copy link
Contributor

I was trying to access variables from '/stylesheets/less/cosmo/variables.less' in Sqllab's main.css, but the variables couldn't be loaded.
The current flow is sqllab.html extends basic.html, basic.html reference css-theme.js, which requires index.less. The script for sqllab.html is sqllab.jsx, which requires main.css. But somehow variables from less files are not accessible in main.css, It could be that main.css is loaded before less file is imported?

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 559 days. Feel free to comment and request for this issue to be reopened.

@sodevious
Copy link
Contributor

Superset should provide either better documentation or some kind of way to override less/css files that get included with the build (as templates are easily overrideable/extendable). Essentially to theme Superset. The only way I'm seeing to do this is rolling something custom, which would be fine, except any css/less changes going forward would have to be manually applied/hard to maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants