Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ufohjl opened this issue Jan 21, 2017 · 3 comments
Closed

Comments

@ufohjl
Copy link

ufohjl commented Jan 21, 2017

<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;
        }
    }
}
@afc163
Copy link
Contributor

afc163 commented Jan 21, 2017

camsong/blog#5

@afc163
Copy link
Contributor

afc163 commented Jan 21, 2017

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

@sorrycc sorrycc closed this as completed Jan 22, 2017
@ufohjl
Copy link
Author

ufohjl commented Feb 5, 2017

非常感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants