Closed (fixed)
Project:
Live CSS
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
29 Dec 2011 at 07:43 UTC
Updated:
26 Mar 2015 at 07:00 UTC
Jump to comment: Most recent
Comments
Comment #1
guybedford commentedLESS support is live, and applies as you type as well. If it is not working for you can you let me know if you are seeing any script errors on the page? Also have you got the LESS support enabled from the module configuration?
It would also help to know what browser you are using, and if possible, a print out of the <head> section from your page.
Comment #2
Anonymous (not verified) commentedI am using firefox and chrome. I dont see any errors.
in chrome there is this message
I do have Less enabled in the configuration. It works fine with a page refresh (like i stated before) however when i open up live_css to edit the .less changes revert and the only styles to come through are normal css (should have mentioned this).
When this occurs i get a
in firefox, and in chrome
thanks
Comment #3
guybedford commentedSo are you saying you find the 'less' file in the live css dropdown fine, but as soon as you select it, the less styles are all disabled?
What do you see in the code window? A blank screen or the less code? If it's a blank screen, can you type any less in here at all and see it reflect?
Also are you able to edit other styles afterwards?
Comment #4
Anonymous (not verified) commented"So are you saying you find the 'less' file in the live css dropdown fine, but as soon as you select it, the less styles are all disabled?" -yeah
the code window still shows less code but it just does not reflect the changes. So it works on a page refresh but as soon as i select the .less file from the drop down it goes back to the default .css files.
I can edit other styles, the regular .css and it reflects just not the .less until i refresh the page again.
Comment #5
guybedford commentedHmmm and you're definitely typing in valid less code?
Without any obvious errors, apart from the mime time notice, nothing really sticks out here.
Open the editor, select the less file from the list, then once you see the less code in the editor, type the following in the JavaScript console -
It should output the parsed css syntax from the less code. See if that is parsed correctly?
Comment #6
Anonymous (not verified) commentedthis is the result
for this code
Comment #7
guybedford commentedWell it seems like it is parsing fine then. Was the 'undefined' written as text? That's not ideal, but still shouldn't affect the rendering. Have you tried adding "!important" at the end of the style?
ie -
Otherwise this is an issue with re-injecting the styles.
Comment #8
Anonymous (not verified) commentedim on win7 using wamp and the omega theme
the .less file is being called in the .info file like so.
Comment #9
guybedford commentedThe only thing left to test is the injection of the css itself, and unfortunately without any error messages it's difficult to do that remotely.
If you can put the site online, I'm happy to look at it, but otherwise not sure what else I can do to help without easy replication.
Comment #10
Anonymous (not verified) commentedcool. It still in development but when it does go live i will let you know
thanks
Comment #11
guybedford commentedI was just checking out the code again, and it's a long shot, but you could try the following.
In sites/all/modules/live_css/css.js, around line 357, update the 'setStyle' function to the following:
You will also now see the debugging messages as you type through invalid less in the editor. Let me know if that helps!
Comment #12
Anonymous (not verified) commented