Created
March 19, 2015 19:44
-
-
Save AdamChristie/c0d6a83606e6649d9385 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%input.toolset__slider--range{:type => 'range'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin range { | |
$prefix-list: '-webkit-','-moz-'; | |
@each $prefix in $prefix-list { | |
&::#{$prefix}slider-thumb { | |
border: solid 1px rgba(163,133,70,.4); | |
border-radius: 40px; | |
cursor: ew-resize; | |
height: 40px; | |
padding: 5px; | |
width: 40px; | |
-webkit-appearance: none; | |
appearance: none; | |
background-color: #fff; | |
} | |
} | |
} | |
.toolset__slider--range { | |
background-size: 10px; | |
border-radius: 14px; | |
background-color: #ccc; | |
height: 4px; | |
left: 0px; | |
margin: 18px 0; | |
outline: none; | |
padding: 0px; | |
position: relative; | |
width: 200px; | |
appearance: none; | |
-webkit-appearance: none; | |
@include range; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.toolset__slider--range { | |
background-size: 10px; | |
border-radius: 14px; | |
background-color: #ccc; | |
height: 4px; | |
left: 0px; | |
margin: 18px 0; | |
outline: none; | |
padding: 0px; | |
position: relative; | |
width: 200px; | |
appearance: none; | |
-webkit-appearance: none; | |
} | |
.toolset__slider--range::-webkit-slider-thumb { | |
border: solid 1px rgba(163, 133, 70, 0.4); | |
border-radius: 40px; | |
cursor: ew-resize; | |
height: 40px; | |
padding: 5px; | |
width: 40px; | |
-webkit-appearance: none; | |
appearance: none; | |
background-color: #fff; | |
} | |
.toolset__slider--range::-moz-slider-thumb { | |
border: solid 1px rgba(163, 133, 70, 0.4); | |
border-radius: 40px; | |
cursor: ew-resize; | |
height: 40px; | |
padding: 5px; | |
width: 40px; | |
-webkit-appearance: none; | |
appearance: none; | |
background-color: #fff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input class='toolset__slider--range' type='range'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment