Skip to content

Commit

Permalink
fix(next): fix range and transfer styles in FormItem
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 13, 2021
1 parent 32746f7 commit cd9c215
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions packages/next/src/form-item/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
}

.#{$form-item-cls}-label-align-left {
> .#{$form-item-cls}-label {
>.#{$form-item-cls}-label {
justify-content: flex-start;
}
}

.#{$form-item-cls}-label-align-right {
> .#{$form-item-cls}-label {
>.#{$form-item-cls}-label {
justify-content: flex-end;
}
}
Expand Down Expand Up @@ -150,6 +150,7 @@
.#{$css-prefix}input-control {
margin-right: 0;
padding-right: 0;

.#{$css-prefix}icon {
display: none;
}
Expand All @@ -162,6 +163,15 @@
}
}
}

.#{$css-prefix}range {
height: 100%;
padding-left: 2px;
}
.#{$css-prefix}transfer{
display: flex;
align-items: center;
}
}

.#{$form-item-cls}-addon-before {
Expand Down Expand Up @@ -234,7 +244,7 @@
min-height: $form-element-small-height;
}

.#{$form-item-cls}-label > label {
.#{$form-item-cls}-label>label {
height: $form-element-small-height;
}
}
Expand Down Expand Up @@ -283,7 +293,7 @@
min-height: $form-element-large-height;
}

.#{$form-item-cls}-label > label {
.#{$form-item-cls}-label>label {
height: $form-element-large-height;
}
}
Expand Down Expand Up @@ -340,10 +350,10 @@
}

.#{$form-item-cls}-fullness {
> .#{$form-item-cls}-control {
> .#{$form-item-cls}-control-content {
> .#{$form-item-cls}-control-content-component {
> *:first-child:not(.#{$css-prefix}switch) {
>.#{$form-item-cls}-control {
>.#{$form-item-cls}-control-content {
>.#{$form-item-cls}-control-content-component {
>*:first-child:not(.#{$css-prefix}switch) {
width: 100%;
}
}
Expand Down Expand Up @@ -398,4 +408,4 @@

.#{$form-item-cls}-success-help {
color: $form-success-color;
}
}

0 comments on commit cd9c215

Please sign in to comment.