8000 GitHub - tvquizphd/no-nest-css: Remove nesting from CSS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tvquizphd/no-nest-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

no-nest-css

Remove nesting from CSS

import { noNestCSS } from 'no-nest-css';

const result = noNestCSS(`
  div {
    & > p {
      color: red;
    }
    & > h1 {
      color: blue;
    }
  }
`);

Will result in result as

`
  div  > p  {  color: red;  }
  div  > h1  {  color: blue;  }
`

About

Remove nesting from CSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0