technonaturalist

image link to hive image link to ko-fi

Sprat does not share my scss enthusiasm

posted on: Saturday, 7 April 2012 @ 8:22am in
tagged

[reformatted the code during migration to make it slightly easier to read, this was a copy/paste from some text conversation and all formatting was lost]

ryivhnn 6/04/12 10:23 PM hee hee other cool thing with sass, i do this:

@mixin inline-block {
 display: inline-block;
 margin: 0 -2px;
 vertical-align: top;
}

and then when i need things inline-blocked etc (in a few places) i do:

#container {
    .stuff-what-needs-inlining {
        @include inline-block;
    }
}

Darqx 6/04/12 10:24 PM i look at that and see what looks to be php mixed with css and want to run away screaming