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

CSS injection failing if changing imported .less files #713

Open
roblgs opened this issue Jan 9, 2014 · 0 comments
Open

CSS injection failing if changing imported .less files #713

roblgs opened this issue Jan 9, 2014 · 0 comments

Comments

@roblgs
Copy link

roblgs commented Jan 9, 2014

I'm trying to edit the bootstrap .less module files that come with the Roots theme for wordpress.

The main stylesheet is generated from app.less, which in turn imports bootstrap.less, which then imports a load of modules (all .less files).

If I make a change to body background-color within the app.less file then the CSS injection works fine. However this isn't ideal. The body background-color should be defined within the variables.less module file that is imported by bootstrap.less.

If I make the change within the variable.less file the CSS injection does not result in any change in the displayed page. If I reload the page manually at thios point, without further changes to the variables.less file the change DOES display.

It's as if the CSS injection happens when the app.less file is changed as a result of changing the imported variables.less file two levels down, but crucially BEFORE the actual CSS file has updated. If I make the change to the higher level app.less file, then the injection is triggered after the CSS file has been updated and the change is displayed OK.

Using Safari and Chrome (latest versions) woith latest CodeKit on Mavericks 10.9.1

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

1 participant