> CSS topic in PHP Group oh no :) call the police :p

I'm pleading guilty of all charges there :P

> why you do the above when you can do this
> h2,#header {
>   color:  #4D926F;
> }

All good if you only have one property

Try this one:

@brand_color: #4D926F;
h2 { color: @brand_color; display: inline; }
#header { color: @brand_color; display: block; }

The only way to not repeat the color using plain CSS is to write it as:

h2 { display: inline; }
#header { display: block; }
h2,#header { color: #4D926F; }

Of course all is still good if you only have 3 lines of CSS. And of
course with LESS you can still just write plain CSS.

The lack of syntax for refactoring is a real problem in CSS.

On Mon, Aug 3, 2009 at 10:02 AM, S.Mohammed
Alsharaf<[email protected]> wrote:
>
> CSS topic in PHP Group oh no :) call the police :p
>
> its good idea what Less project want to do. its kinda a fast fix for not
> wanting to  spend time on writting an optimized css.
>
> from their site:
> @brand_color: #4D926F;
>
> #header {
>   color: @brand_color;
> }
>
> h2 {
>   color: @brand_color;
> }
>
> why you do the above when you can do this
> h2,#header {
>   color:  #4D926F;
> }
>
> its less lines, which mean smaller css file size, then faster to load.
>
> Mohammed Alsharaf
> http://www.safitech.com
>
>
>> Date: Mon, 3 Aug 2009 09:49:17 +1200
>> Subject: [phpug] Re: LESS is more? (Leaner cSS)
>> From: [email protected]
>> To: [email protected]
>>
>>
>> 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 tried http://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 Development
>> http://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