【文件属性】:
文件名称:jss-nested:jss的嵌套选择器插件
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-08 03:50:02
JavaScript
JSS插件,支持嵌套选择器
在规则中的选择器前放置& ,它将被父选择器替换并提取到。
用法示例
import jss from 'jss'
import nested from 'jss-nested'
jss . use ( nested )
const styleSheet = jss . createStyleSheet ( {
container : {
padding : '20px' ,
'&:hover' : {
background : 'blue'
} ,
'&.clear' : {
clear : 'both'
} ,
'& .button' : {
background : 'red'
} ,
'&.selected, &.active' : {
b
【文件预览】:
jss-nested-master
----.eslintrc(37B)
----.babelrc(35B)
----package.json(1KB)
----readme.md(1KB)
----test()
--------index.js(3KB)
--------index.html(453B)
----LICENSE(1KB)
----src()
--------index.js(423B)
----.npmignore(19B)
----.gitignore(53B)
----webpack.config.js(617B)
----history.md(287B)