form-range.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @import "vars";
  2. @import "mixins";
  3. .range-wrapper {
  4. @include user-select(none);
  5. display: inline-block;
  6. position: relative;
  7. width: 100%;
  8. height: 26px;
  9. padding-top: 24px;
  10. }
  11. input[type='range'] {
  12. display: inline-block;
  13. -webkit-appearance: none !important;
  14. background-color: rgba(0,0,0,0.05);
  15. height: 2px;
  16. border-radius: $radius*10 !important;
  17. outline: 0;
  18. vertical-align: middle;
  19. width: 100%;
  20. }
  21. input[type='range']::-webkit-slider-thumb {
  22. background-color: $medium;
  23. border-radius: $radius;
  24. -webkit-appearance: none !important;
  25. height:44px;
  26. width:44px;
  27. border-radius: 100%;
  28. background-clip: content-box;
  29. border: 13px solid transparent;
  30. // &:after {
  31. // content: "100%";
  32. // display: block;
  33. // }
  34. &:active{
  35. background-color: $darker !important;
  36. }
  37. }
  38. .output-wrapper {
  39. position: absolute;
  40. top: 0px;
  41. left: 0px;
  42. right: 60px;
  43. width: auto;
  44. }
  45. output {
  46. font-size: 11px;
  47. line-height: 1;
  48. background-clip: padding-box;
  49. color: #999;
  50. font-family: Avenir;
  51. position: absolute;
  52. display: inline-block;
  53. top: 0;
  54. right: 0;
  55. pointer-events: none;
  56. vertical-align: middle;
  57. letter-spacing: 0.1em;
  58. }