![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
easy-media-queries
Advanced tools
Readme
A node-sass importer for Whiteboard Media mixin. It allows creating breakpoints and defining styles for each breakpoint in a simple way.
$ npm install --save-dev easy-media-queries
You can use this importer in node-sass or any project that depends on node-sass. the only thing you need to do to make this work is add the importer to the options and include the mixin.
var sass = require("node-sass");
var easyMediaQueries = require("easy-media-queries");
sass.render({
data: '@import "wb-media"; .heading { @include wb-media("<small") { display: none; }; }',
importer: easyMediaQueries
});
var easyMediaQueries = require("easy-media-queries");
grunt.initConfig({
sass:{
options: {
importer: easyMediaQueries
},
...
}
})
var gulp = require("gulp");
var sass = require("gulp-sass");
var easyMediaQueries = require("easy-media-queries");
gulp.task("sass", function() {
return gulp.src("sass/**/*.scss")
.pipe(sass({ importer: easyMediaQueries }).on("error", sass.logError))
.pipe(gulp.dest("./css"));
});
$wb-breakpoints: wb-add-breakpoint("BREAKPOINT_NAME", (
"value" : BREAKPOINT_VALUE
));
// Smaller than breakpoint value
@include wb-media('<BREAKPOINT_NAME') {...}
// Larger than breakpoint value
@include wb-media('>BREAKPOINT_NAME') {...}
@import "wb-media";
// Define breakpoints
$wb-breakpoints: wb-add-breakpoint("tablet", (
"value" : 768px
));
$wb-breakpoints: wb-add-breakpoint("mobile", (
"value" : 480px
));
// Primary title styles
.primary-title {
display: block;
font-size: 32px;
@include wb-media('<tablet') { font-size: 24px; }
@include wb-media('<mobile') { font-size: 16px; }
}
FAQs
Easy media queries
The npm package easy-media-queries receives a total of 0 weekly downloads. As such, easy-media-queries popularity was classified as not popular.
We found that easy-media-queries 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.