mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [radio & checkbox] fix button wrap style (#22073)
* fix(components): [radio] fix el-radio-button css * fix(components): [radio] fix el-radio-button css * fix(components): [radio] fix el-radio-button css fix(components): [radio] fix el-radio-button css * fix(components): [checkbox] fix checkbox-button border fix(components): [checkbox] fix checkbox-button border * fix(components): [radio & checkbox] fix button wrap style * fix(components): [radio & checkbox] fix button wrap style Removed unnecessary blank line in radio-button.scss.
This commit is contained in:
@@ -24,8 +24,7 @@
|
||||
#{getCssVarName('button-bg-color')},
|
||||
map.get($button, 'bg-color')
|
||||
);
|
||||
border: getCssVar('border');
|
||||
border-left-color: transparent;
|
||||
outline: getCssVar('border');
|
||||
color: var(
|
||||
#{getCssVarName('button-text-color')},
|
||||
map.get($button, 'text-color')
|
||||
@@ -33,7 +32,6 @@
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
transition: getCssVar('transition-all');
|
||||
@@ -104,7 +102,6 @@
|
||||
|
||||
&:first-child {
|
||||
.#{$namespace}-checkbox-button__inner {
|
||||
border-left: getCssVar('border');
|
||||
border-top-left-radius: getCssVar('border-radius-base');
|
||||
border-bottom-left-radius: getCssVar('border-radius-base');
|
||||
box-shadow: none !important;
|
||||
|
||||
@@ -23,12 +23,11 @@
|
||||
#{getCssVarName('button-bg-color')},
|
||||
map.get($button, 'bg-color')
|
||||
);
|
||||
border: getCssVar('border');
|
||||
outline: getCssVar('border');
|
||||
font-weight: var(
|
||||
#{getCssVarName('button-font-weight')},
|
||||
map.get($button, 'font-weight')
|
||||
);
|
||||
border-left: 0;
|
||||
color: var(
|
||||
#{getCssVarName('button-text-color')},
|
||||
map.get($button, 'text-color')
|
||||
@@ -36,7 +35,6 @@
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
@@ -65,7 +63,6 @@
|
||||
|
||||
&:first-child {
|
||||
.#{$namespace}-radio-button__inner {
|
||||
border-left: getCssVar('border');
|
||||
border-radius: getCssVar('border-radius-base') 0 0
|
||||
getCssVar('border-radius-base');
|
||||
box-shadow: none !important;
|
||||
|
||||
Reference in New Issue
Block a user