This is fantastic! I've just recently decided to fully embrace Sass
and it is amazing to see how it slowly but steadily brings back
tidyness and logic to the madness to which my stylesheets have grown
over the months.
It is really gratifying to use constants and inline arithmetics to
make it obvious why some margin is 7.426em and not just 7.5em :)
Thank you again to all involved in creating the beauty that is Haml /
Sass!
- Niels.
On Dec 9, 4:37 pm, Chris Eppstein <[EMAIL PROTECTED]> wrote:
> Not a problem. Notice now that sass has an innate understanding of
> units now, so you can convert units like so:
>
> font-size = 1em * 10px / 18px
>
> Also, sass on the edge has arguments for mixins so you can abstract
> this pattern:
>
> =em-font-size(!size, !base = 12px)
> font-size = 1em * !size / !base
>
> Then you can simply write:
> div.bigger
> +em-font-size(18px)
>
> => div.bigger {font-size: 1.5em;}
>
> chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---