
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
css-queryless
Advanced tools
Queryless is a rework utility to automatically create media-query free stylesheets for archaic browsers such as IE8.
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();
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.
MIT.
FAQs
Media queried CSS to non-media-queried CSS
The npm package css-queryless receives a total of 10 weekly downloads. As such, css-queryless popularity was classified as not popular.
We found that css-queryless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.