Skip to content

Commit

Permalink
fix(Range): set height for bare-range like input
Browse files Browse the repository at this point in the history
  • Loading branch information
guanpu authored and tao1991123 committed Feb 28, 2019
1 parent 32d66f9 commit b7a6242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/range/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
@import "scss/variable";

.#{$css-prefix} {
&medium &range {
height: $form-element-medium-height;
}
&range {
@include box-sizing;
@include range-bounding();
Expand Down
5 changes: 5 additions & 0 deletions src/range/scss/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
position: relative;
}

.#{$css-prefix}range-inner:only-child {
margin-top: auto;
margin-bottom: auto;
}

.#{$css-prefix}range-track {
position: absolute;
width: 100%;
Expand Down

0 comments on commit b7a6242

Please sign in to comment.