marioblas / include-media

Simple, elegant and maintainable media queries in Sass

Home Page:http://include-media.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'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
  • Manually: get this file

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

How to use

Examples can be found here.

Plugins

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.

About

Simple, elegant and maintainable media queries in Sass

http://include-media.com

License:MIT License


Languages

Language:CSS 91.6%Language:JavaScript 8.4%