Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

working around with specificity and autoprefixer #31

@chiefjester

Description

@chiefjester

How do we work around with the specificity problem if we are declaring styles inline? 1.0.0.0?

One common use case is if you want to reuse a component and just change it slightly, like more padding or with different color? If you duplicate that component then you are not using the DRY principle.

Another question is about leveraging the power of autoprefixer which you can hook up with caniuse service and figure out what property should have prefix, special usecase is flex.

Last question is how to circumvent repetitions of styles if we're doing inline styles. Say instead of reusing classes, now we're reusing a lot of inline styles?

I would also like to note that yahoo has a quite different approach and was comparing it against inline styles. They call it Atomic CSS. http://www.smashingmagazine.com/2013/10/21/challenging-css-best-practices-atomic-approach/

cc @vjeux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions