From 1c24a2b294197137055b89c7ed98db9689bed5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Tue, 20 Dec 2016 09:18:52 +0800 Subject: [PATCH] Switch: update style (#1803) --- packages/theme-default/src/switch.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/theme-default/src/switch.css b/packages/theme-default/src/switch.css index a14d4d88..d3927316 100644 --- a/packages/theme-default/src/switch.css +++ b/packages/theme-default/src/switch.css @@ -8,6 +8,8 @@ position: relative; font-size: var(--switch-font-size); line-height: var(--switch-height); + height: var(--switch-height); + vertical-align: middle; @when disabled { & .el-switch__core, & .el-switch__label { @@ -57,7 +59,6 @@ @e core { margin: 0; display: inline-block; - vertical-align: middle; position: relative; size: var(--switch-width) var(--switch-height); border: 1px solid var(--switch-off-color);