From e7965bf4d97f4fdf98af9f260c2ebcf303414064 Mon Sep 17 00:00:00 2001 From: Liqihan Date: Tue, 19 Nov 2024 13:40:51 +0800 Subject: [PATCH] fix(Collapse): reorganize collapse panel scss code --- components/collapse/main.scss | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/components/collapse/main.scss b/components/collapse/main.scss index 4eb1e7ebdf..99f8b22bb6 100644 --- a/components/collapse/main.scss +++ b/components/collapse/main.scss @@ -20,17 +20,21 @@ border-top: $collapse-title-border-width solid $collapse-panel-border-color; } } + & &-panel { - #{$collapse-prefix}-panel-icon { - position: absolute; - color: $collapse-icon-color; - transition: transform $motion-duration-immediately $motion-linear; - left: $collapse-icon-margin-l; - margin-top: -2px; + #{$collapse-prefix}-panel-icon { + position: absolute; + color: $collapse-icon-color; + transition: transform $motion-duration-immediately $motion-linear; + left: $collapse-icon-margin-l; + margin-top: -2px; + + @include icon-size($collapse-icon-size, 0px, 0px); + } - @include icon-size($collapse-icon-size, 0px, 0px); } + &-panel-title { position: relative; line-height: $font-lineheight-2;