Welcome Guest, Not a member yet? Register   Sign In
LessCss port to php, and now also to Codeigniter
#11

[eluser]DjLeChuck[/eluser]
The parent <--&gt; child is important, not the order in the file. Smile
#12

[eluser]Gregory Bolkenstijn[/eluser]
The order in the file is important. Selectors lower in the css file overwrite selectors prior to it.

Outside of this, in the example files of the script (and in every LESS example on other websites as well) the css also comes out the other way around.

So I assume something is wrong.
#13

[eluser]Gregory Bolkenstijn[/eluser]
On the demo page of the original lessphp you can see that the css returns in a different order: http://leafo.net/lessphp/
#14

[eluser]DjLeChuck[/eluser]
I see...
I haven't time to see the file now but later if nobody respond
#15

[eluser]C. Jiménez[/eluser]
.
#16

[eluser]Unknown[/eluser]
[quote author="wascko" date="1286467643"]nice one, thanx!
I just started using .less and loving it !
still trying to find a way to do something like:

Code:
background-image: url(@site_url'my_images/back.jpg');
[/quote]

That would be
Code:
background-image: url(@{site_url}'my_images/back.jpg');

You can define global variables in a separate less file, I call it something like common.less which has all the mixins and variable you want all your less to have access to (at the top of your other less files use the import statement). As for actually passing a variable from PHP to LESS I am not so sure.
#17

[eluser]Unknown[/eluser]
Am I going blind or is there no download link in the original post..




Theme © iAndrew 2016 - Forum software by © MyBB