I've looked at those other CSS mixing solutions, but I like LESS
better for now, because it sticks to CSS syntax very closely. It also
keeps thing simple.

A blueprint div that look something like:

<div class="span-4 last sidebar-left" style="margin: 0px; padding: 10px;"></div>

Could be re-factored with LESS to look like:

<div class="sidebar-left"></div>

And the less file would look like:

@import "blueprint/screen.css";

.sidebar-left {
  .span-4;
  .last;
  margin: 0px;
  padding: 10px;
}

Which I think is way cleaner and easier to maintain.

I would like to know if anyone knows how to achieve that just by using
plain CSS.

I have to say that LESS doesn't make much sense unless you're using
CSS based on OOCSS concept
(http://wiki.github.com/stubbornella/oocss).


On Mon, Aug 3, 2009 at 1:28 PM, Calvin<[email protected]> wrote:
>
> I have used this — it works well.
>
> If you like this, you should look at the followings too:
>
> [Sass]: http://sass-lang.com/
> [CleverCss]: http://sandbox.pocoo.org/clevercss/
>
> On 3/08/2009, at 12:57 PM, ctx2002 wrote:
>
>>
>> it not just adds few things to CSS, it changed CSS.
>>
>> I guess that Less project will add "if" keyword to they project,
>> probably some more cool concept . etc OO. in future.
>>
>> if your need to produce a css , first your have to build a less file,
>> who will maintain that less file, you or your designer? or me (if i am
>> not that lucky).
>>
>> css is a markup language, just keep it simple.
>> i hate this concept "Mixins", every one mixin a bit, finally a big
>> LESS file which no one understand.
>>
>> regards,
>>
>> anru
>>
>>
>>
>>
>>
>>
>>
>>
>> On Aug 3, 9:49 am, Sid Bachtiar <[email protected]> wrote:
>>> I'm interested to know why you think it is over engineering?
>>>
>>> In my opinion it just adds few key things that are missing from plain
>>> CSS. I prefer LESS than other similar 'CSS mixin' solution because
>>> this one actually sticking to CSS syntax.
>>>
>>> And what has it got to do with designer and CSS standard?
>>>
>>>
>>>
>>> On Mon, Aug 3, 2009 at 9:34 AM, ctx2002<[email protected]> wrote:
>>>
>>>> mate, save your time, do not do it.
>>>> this is a typical over engineering project.
>>>
>>>> think about Designer, and CSS standard.
>>>
>>>> regards,
>>>
>>>> anru
>>>
>>>> On Aug 2, 10:54 pm, Sid Bachtiar <[email protected]> wrote:
>>>>> Has anyone triedhttp://lesscss.org/docs.html?
>>>
>>>>> It makes sense to me and I am now trying it out on a small project.
>>>>> But would like to know what other people think. May be there's
>>>>> drawbacks that I have not considered.
>>>
>>>>> Cheers,
>>>
>>>>> Sid
>>>>> --
>>>>> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>>>
>>> --
>>> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>> >
>
>
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to