Skip to content

Commit

Permalink
Fix slider thumb position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Sep 14, 2017
1 parent bceac56 commit d7152e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulma-slider",
"version": "0.0.1",
"version": "0.0.2",
"description": "Display classic slider more sexy, in different colors, sizes, and states ",
"main": "slider.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion slider.sass
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ $slider-output-radius: $radius !default
&::-webkit-slider-thumb
height: $thumb-size
width: $thumb-size
margin-top: -( $thumb-size / 2 )
margin-top: -( $thumb-size / 4 )
&::-moz-range-thumb
height: $thumb-size
width: $thumb-size
&::-ms-thumb
height: $thumb-size
width: $thumb-size

&[orient="vertical"]
&::-webkit-slider-thumb
margin-top: auto
margin-left: -( $thumb-size / 4 )

input[type=range]
&.slider
-webkit-appearance: none
Expand Down

0 comments on commit d7152e8

Please sign in to comment.