Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Clean, simple, for styling the web.
Check out the docs and examples on csstyle.io
You can use csstyle with either Sass or postcss.
Setup your project with either Sass or Postcss. If you're using Sass make sure you have the latest stable SASS (3.4).
Add id="csstyle"
to your html or body element. This is necessary so that components with their
parts and options can nest indefinitely yet always be overridden by tweaks and locations.
Download csstyle from npm:
npm install csstyle --save
or from bower:
bower install csstyle --save
If you're using Sass, import into your stylesheets:
@import 'csstyle';
If you're using postcss, add csstyle as a plugin:
postcss([require('postcss-nested'), require('csstyle')]);
Be sure to include postcss-nested and csstyle in that order.
Now you're set and can start creating components with options & parts, adding in tweaks and locations as needed. Enjoy!
People using webpack or similar often want to load Sass via libsass. Unfortunately libsass is quite behind the ruby Sass and some things are still missing before it will work with csstyle. As a workaround while we wait for libsass you can load your Sass files with the ruby Sass loader and it will work just fine, it just won't be as fast as libsass.
In Sass you can append a &
to a selector or pseudo-selector to have it applied to the parent context. So for example to have a part
react when the component
gets hovered:
@include component(capacitor){
background: red;
@include part(flux){
background: orange;
}
&:hover & {
@include part(flux){
background: blue;
}
}
}
There are a few settings you can change. You can set these to whatever suits your style.
options
by changing the $csstyle-option-symbol
variable. The default is \--
.parts
by changing the $csstyle-part-symbol
variable. The default is __
.tweaks
by changing the $csstyle-tweak-symbol
variable. The default is \+
.locations
by changing the $csstyle-location-symbol
variable. The default is \@
.All characters besides _
need to be escaped! However, if you are using dashes, only the first one needs to be escaped. Use two backslashes to properly escape in SASS. For example to use a forward slash to separate parts, set $csstyle-part-symbol to \\/
.
In adition to that, you can also change your app's root id
on the html or body element by changing the $csstyle-root-id
variable. The default is csstyle
.
MIT
FAQs
clean, simple styling for styling the web.
The npm package csstyle receives a total of 117 weekly downloads. As such, csstyle popularity was classified as not popular.
We found that csstyle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.