Jelajahi Sumber

Radio: refine style

ohhoney1 6 tahun lalu
induk
melakukan
09b384bf3a
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      packages/theme-chalk/src/radio.scss

+ 3 - 2
packages/theme-chalk/src/radio.scss

@@ -13,6 +13,7 @@
   white-space: nowrap;
   outline: none;
   font-size: $--font-size-base;
+  margin-right: 30px;
   @include utils-user-select(none);
 
   @include when(bordered) {
@@ -79,8 +80,8 @@
     }
   }
 
-  & + .el-radio {
-    margin-left: 30px;
+  &:last-child {
+    margin-right: 0;
   }
 
   @include e(input) {