css-scoped
Limit the css scope by adding a uniform parent selector name to the selector, which is useful in componentized development and rendering.
Installation
npm i css-scoped -S
Usage
const scope = const scopedCss=
Examples
const scope = const css=`h1, h2, h3, h4, h5, h6 { font-size: 14px;}a{ color: #000;}.list-img-flex .job .job-mes span:not(:last-child):after { margin: 0 5px; position: relative;}@media (min-width: 1500px) and (orientation: landscape){ .header ~ .title{ color:#666; }}`const scopedCss=console
output
{ }