Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
style-bridge
Advanced tools
Readme
import StyleBridge from 'style-bridge';
const bridge = new StyleBridge('my-stylesheet-selector', {
desktop: [null],
tablet: ['screen and (max-width: 991px)'],
...
});
To use StyleBrige, you will primarily use the StyleBridge
constructor. Pass the constructor a selector expression
and an object consisting of the media-queries that you want to have parsed.
Nothing hapens until the parse
method will be called. This let's the you decide when to (re-)parse the document or when.
new StyleBridge(..., { ... }).parse();
bridge.select('.my-element', 'desktop').set('background-color', 'red');
bridge.select('.my-element', 'desktop').remove('background-color');
brige.select('.my-element').remove();
bridge.toObject();
// {
// mediaqueries: {
// desktop: '',
// tablet: 'screen and (max-width: 991px)'
// },
// rules: {
// desktop: {
// body: {
// 'background-color': 'red',
// 'margin-top': '0px'
// },
// },
// tablet: { ... }
// }
// }
Have a bug? Please create an issue here on GitHub that conforms with our contributing guidelines. You can also browse the Help Wanted tag in our issue tracker to find things to do.
If you discover a security vulnerability within this package, please send an e-mail directly to the Centagon Developers at developers@centagon.com. All security vulnerabilities will be promptly addressed.
This package is available under the MIT license.
Copyright (c) 2018 Centagon, B.V.
FAQs
Javascript based CSS library
The npm package style-bridge receives a total of 1 weekly downloads. As such, style-bridge popularity was classified as not popular.
We found that style-bridge 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.