From 3d461af123ee33621c2f7a801ccaaa7ba58e8fc8 Mon Sep 17 00:00:00 2001 From: jimczj Date: Mon, 20 Aug 2018 21:38:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(switch):=20h5=20switch=20=E4=B8=8D=E9=9D=A0?= =?UTF-8?q?=E5=8F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/switch/index.scss | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/switch/index.scss b/src/components/switch/index.scss index ccecd8f38..7944c85d6 100644 --- a/src/components/switch/index.scss +++ b/src/components/switch/index.scss @@ -6,7 +6,7 @@ justify-content: center; align-items: center; background-color: $color-bg; - padding: 22px 22px 22px 0; + padding: $spacing-v-lg $spacing-h-xl $spacing-v-lg 0; @include border-thin-bottom; &__title { @@ -15,12 +15,18 @@ } &__container { + display: flex; + align-items: center; + flex-direction: row-reverse; position: relative; flex: 2; - text-align: right; background-color: $color-bg; } + &__switch { + display: inline-block; + } + &__mask { position: absolute; display: none;