
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
include-media-or
Advanced tools
This project is no longer maintained. Please use @nirazul/scss-mq instead.
Get the original include-media here.
include-media simplifies the usage of media queries in Sass. However, media features could only be connected with an AND conjunction. This fork enables the usage of nested lists of expressions that are connected with logical AND/OR conjunctions.
npm install include-media-orThe media mixin can be used either as before with a list of arguments, or it can take a list as the only argument:
Lists with a list separator space are considered AND conjunctions
@include media(('<=phone' 'retina2x')) {
color: red;
}
Lists with a list separator comma are considered OR conjunctions
@include media(('<=tablet', '>desktop')) {
color: red;
}
Nested lists are resolved according to their hierarchy of braces
@include media(('<=tablet', (>phone retina2x))) {
color: red;
}
If you have customized the default media expressions map, please make sure that you update AND/OR conjunctions to the new format:
// OLD
$media-expressions: (
'customRetina': '(min-resolution: 192dpi), (min-resolution: 2dppx)',
) !default;
// NEW
$media-expressions: (
'customRetina': ('(min-resolution: 192dpi)', '(min-resolution: 2dppx)'),
) !default;
FAQs
An `include-media` fork, enabling OR conjunctions and nested queries
The npm package include-media-or receives a total of 184 weekly downloads. As such, include-media-or popularity was classified as not popular.
We found that include-media-or 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.