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.
css-components
Advanced tools
Readme
introduces the @component selector to CSS.
this was originally released as a react specific CSS preprocessor of its own, but it is being transitioned to be a generic concept
as we start to develop websites in a modular way with nested components it starts to make sense to have your selectors only effect the component you're targeting, and not have to worry about naming collisions.
by using components like this
@component Example {
width: 100%;
height: 100%;
.content {
width: 100%;
}
}
you can produce this CSS
.app-component.app-example {
width: 100%;
height: 100%;
}
.app-component.app-example .app-example_content {
width: 100%;
}
CCSS is meant to be used in conjunction with a DOM helper, so you don't have to manually prefix anything.
CCSS is also meant to be used after a CSS preprocessor
if your CSS preprocessor doesn't support root properties inside of a component you can nest them inside of a self
selector like this
@component Example {
self {
width: 100%;
height: 100%;
}
}
theres also the concept of states
@component Example {
state::active {
width: 100%;
}
.nested state::active {
width: 100%;
}
}
states reference the overall component state
npm install component-css
var ccss = require('component-css');
ccss(/* Component Name */, /* source */, /* options */);
FAQs
introduces the @component selector to CSS
The npm package css-components receives a total of 3 weekly downloads. As such, css-components popularity was classified as not popular.
We found that css-components 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.