JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6235
  • Score
    100M100P100Q133090F
  • License MIT

Sass component for customizing the input range using the native properties of each browser.

Package Exports

  • input-range-scss

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (input-range-scss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Styling Cross-Browser Compatible Range Inputs with Sass / SCSS

Sass component for customizing the input range using the native properties of each browser. Based on article Styling Cross-Browser Compatible Range Inputs with CSS form CSS Tricks blog.

Features

  • Variables for easy customization
  • Uses the native properties of each browser
  • Preserves accessibility
  • Cross-browser compatible

Example

Input range native and custom on browsers

Changelog

  • 1.3.0: Better default style and example page
  • 1.2.0: Improvement in SCSS lint (thanks, Dustin McCaffree)
  • 1.1.1: Fix track height in IE and thumb margin in Edge (thanks, danclaydonpm and jenstornell)
  • 1.1.0: Make all variables as '!default'. (thanks, n0nick)
  • 1.0.1: SCSS-Lint fix. (thanks, CookPete)

See Also

Input range browser support