element-plus/website/demo-styles/form.scss

74 lines
1.1 KiB
SCSS
Raw Normal View History

.demo-form {
2021-02-04 16:29:23 +08:00
.#{$namespace}-select .#{$namespace}-input {
width: 380px;
}
2021-02-04 16:29:23 +08:00
.#{$namespace}-form {
width: 460px;
}
.line {
text-align: center;
}
2021-02-04 16:29:23 +08:00
.#{$namespace}-checkbox-group {
width: 320px;
margin: 0;
padding: 0;
list-style: none;
&:after,
&:before {
content: ' ';
display: table;
}
&:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
2021-02-04 16:29:23 +08:00
.#{$namespace}-checkbox {
float: left;
width: 160px;
padding-right: 20px;
margin: 0;
padding: 0;
2021-02-04 16:29:23 +08:00
+ .#{$namespace}-checkbox {
margin-left: 0;
}
}
}
.demo-form-normal {
width: 460px;
}
.demo-form-inline {
width: auto;
2021-02-04 16:29:23 +08:00
.#{$namespace}-input {
width: 150px;
}
> * {
margin-right: 10px;
}
}
.demo-ruleForm {
width: 460px;
2021-02-04 16:29:23 +08:00
.#{$namespace}-select .#{$namespace}-input {
width: 360px;
}
}
.demo-dynamic {
2021-02-04 16:29:23 +08:00
.#{$namespace}-input {
margin-right: 10px;
width: 270px;
vertical-align: top;
}
}
.fr {
float: right;
}
}