Skip to content

@ getting a little redundant with nesting #8

@patbrown

Description

@patbrown

Not a terminal issue, but a touch on the annoying side. I've been porting a few libraries to cssgen, because I prefer to write clojure code over Ruby. I'm running into a redundancy issue with parsing @

For instance
["@Keyframes flash"
["0%, 50%, 100%" :opacity :1]
["25%, 75%" :opacity :0]]

Becomes
@Keyframes flash {

} @Keyframes flash 0%, @Keyframes flash 50%, @Keyframes flash 100% {
opacity: 1;
}
@Keyframes flash 25%, @Keyframes flash 75% {
opacity: 0;
}

I understand the way nesting is designed in CSSGen and for most instances it is perfect, but in the event of designing responsive sites or utilizing CSS3 features it creates a lot of unnecessary bloat.

If I can figure out an elegant solution, I'll send you a pull. Right now my work-around is too jank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions