style(drawer): fix drawer nesting style pollution (#36845)

Co-authored-by: eason.ym <eason.ym@alibaba-inc.com>
This commit is contained in:
yanm1ng 2022-08-02 14:54:13 +08:00 committed by GitHub
parent 01bd2f2964
commit 5b45a8fa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,28 +40,28 @@
}
// Placement
.@{drawer-prefix-cls}-left & {
.@{drawer-prefix-cls}-left > & {
top: 0;
bottom: 0;
left: 0;
box-shadow: @shadow-1-right;
}
.@{drawer-prefix-cls}-right & {
.@{drawer-prefix-cls}-right > & {
top: 0;
right: 0;
bottom: 0;
box-shadow: @shadow-1-left;
}
.@{drawer-prefix-cls}-top & {
.@{drawer-prefix-cls}-top > & {
top: 0;
right: 0;
left: 0;
box-shadow: @shadow-1-down;
}
.@{drawer-prefix-cls}-bottom & {
.@{drawer-prefix-cls}-bottom > & {
right: 0;
bottom: 0;
left: 0;