Giter Club home page Giter Club logo

include-media's Introduction

'At' sign

include-media

Simple, elegant and maintainable media queries in Sass

NPM badge

What?

include-media is a Sass library for writing CSS media queries in an easy and maintainable way, using a natural and simplistic syntax.

Why?

I spent quite some time experimenting with different libraries and mixins available out there, but eventually all of them failed to do everything I needed in an elegant way. Some of them wouldn't let me mix set breakpoints with case-specific values, others wouldn't properly handle the CSS OR operator and most of them had a syntax that I found complicated and unnatural.

include-media was the result of that experience and it includes all the features I wish I had found before, whilst maintaining a simplistic and natural syntax.

How to install

  • With Bower: bower install include-media
  • With npm : npm install include-media
  • Manually: get this file

Finally, include the file in your project using an @import statement.

How to use

Examples can be found here.

Plugins

  • include-media-export - Reference include-media breakpoints in JavaScript.
  • include-media-columns - Generate column classes using the BEMIT naming convention, automatically referencing include-media breakpoints.
  • include-media-spread - Calculates the difference between property values and distributes them through your include-media breakpoints.
  • flex_e_ble - Uses your include-media breakpoints to create your own flexible class naming structure on top of a flex based grid with inline-block fallback for >= ie8 compatibility

Learn more

The authors

We are Eduardo Bouças and Hugo Giraudel.

We want to hear from you

We'll be on the lookout for your issues and pull requests — but make sure you read this before submitting any code!

License

This project is licensed under the terms of the MIT license.

include-media's People

Contributors

eduardoboucas avatar kittygiraudel avatar prisis avatar hinok avatar jackmcpickle avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.