Dva: [请教]cssmodules的global和less的&语法混用的时候要怎么写?

Created on 21 Jan 2017  ·  3Comments  ·  Source: dvajs/dva

<div class="sider ant-layout-sider-collapsed"></div>

sider为local, ant-layout-sider-collapsed为global, 引用同级元素但是混合的这时候要如何写? 下面的写法貌似都不行

.sider {
    :global &.ant-layout-sider-collapsed {
        .anticon {
            font-size: 16px;
        }
    }
}
.sider {
    &:global(.ant-layout-sider-collapsed) {
        .anticon {
            font-size: 16px;
        }
    }
}

Most helpful comment

All 3 comments

不建议把 GitHub 当技术论坛来用。

非常感谢~

Was this page helpful?
0 / 5 - 0 ratings