![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
veams-plugin-media-query-handler
Advanced tools
The VeamsMediaQueryHandler plugin provides to you a possibility to get the current media query name from your css.
The VeamsMediaQueryHandler plugin provides to you a possibility to get the current media query name from your css.
If you want to use the media query support then just add the following lines to a custom scss file and modify it like you want:
head {
font-family: desktop;
@include bp(1024px) {
font-family: tablet-l;
}
@include bp(768px) {
font-family: tablet-p;
}
@include bp(657px) {
font-family: mobile-l;
}
@include bp(480px) {
font-family: mobile-p;
}
@include bp(360px) {
font-family: mobile-s;
}
}
Then you only need to import and use the plugin from the Veams package:
import Veams from 'veams';
import VeamsModules from 'veams/lib/plugins/modules';
// Intialize core of Veams
Veams.initialize();
// Add plugins to the Veams system
Veams.use(VeamsMediaQueryHandler, {
delay: 200
});
Options:
You can pass a second parameter with an options object. Available options are:
mediaQueryProp
{String} ['font-family'] - Define a media query property which you have added to the head element.delay
{Number} [300] - Define the delay value for the throttle handling which is responsible to trigger an event and set the currentMedia
value.v1.0.2
FAQs
The VeamsMediaQueryHandler plugin provides to you a possibility to get the current media query name from your css.
The npm package veams-plugin-media-query-handler receives a total of 3 weekly downloads. As such, veams-plugin-media-query-handler popularity was classified as not popular.
We found that veams-plugin-media-query-handler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.