GitXplorerGitXplorer
i

queryless

public
7 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
c7b6980ddf7dc7bf43d0d5b2e8d6ad82d848dc2a

Travis Badgespam

iiamdustan committed 11 years ago
Unverified
5fd24970345be2e080057d5d1a3bf242b9a4fec2

Create .travis.yml

iiamdustan committed 11 years ago
Unverified
bd764b4e50955185cd4d7198f56e32204ac6e0d1

Add CodeClimate badgespam

iiamdustan committed 11 years ago
Unverified
13ae194121c55422c5aa647ea4f945109e53632a

Simplify the heck out of it. Changes logic and matches to be much more strict

iiamdustan committed 11 years ago
Unverified
b5a4fa5407f0d3f0082e2f0d50da8275984de3e5

Add proper support for print media blocks

iiamdustan committed 11 years ago
Unverified
285526ab7cf9cc22f411fc424a5b8f05fcb25342

Remove imaginary dependency

iiamdustan committed 11 years ago

README

The README file for this repository.

Queryless, with Rework

Build Status Code Climate

Queryless is a rework utility to automatically create media-query free stylesheets for archaic browsers such as IE8.

Usage

Simply pass in queryless to your rework pipeline with an array of media queries you would like to extract. The match is based on the media queries you are using in your project. They don't have to be an exact match, but is a subset. Look in test/cases for examples.

// Create a stylesheet with all media queries that match
// larger than 600px wide and the print media block.

var keepmatches = [
  'screen and (min-width: 600px)', // assumes the units entered here are the same used in your CSS.
  'print'
];

var css = rework(input)
  .use(queryless(keepmatches))
  .toString();

Upgrade Note

The 0.0.x branch was much more complex and attempted to dynamically resolve media queries. This was over-complicated waste—you know your media-queries best.

In 0.1.x the match is string based. It should be much quicker and much more dependable in complex situations.

License

MIT.