Skip to content

Suggestion: objects, mixins and breakpoints... #318

Description

@erfanimani

Wasn't sure how to call this issue, but I think it's a good idea to have each object also have a mixin so we can use it inside media queries. An example of the inuit.css implementation:

@mixin nav {
    list-style:none;
    margin-left:0;
    > li{

        &,
        > a{
            display:inline-block;
           *display:inline;
            zoom:1;
        }
    }
}

.nav {
    @include nav;
}

This way, inside my media queries I can make use of Inuit's objects. I prefer to use extend, but extend isn't available inside a MQ.

Is there a better way to do this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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