Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add range-field #995

Merged
merged 1 commit into from
Feb 23, 2017
Merged

Add range-field #995

merged 1 commit into from
Feb 23, 2017

Conversation

OleVik
Copy link
Contributor

@OleVik OleVik commented Feb 22, 2017

Uses input with type 'range' to create a HTML5 slider-element. Current implementation is with inline styles, due to the lack of (apparent) implementations with PureCSS. See W3C Wiki for specification, Zurb's Foundation for common implementation, Can I Use for browser-support.

It can be used in a pure state without much style or any script, but the inline oninput-script is added for the value callbacks as the slider is fairly limited in use without knowing the number selected. Could be better-looking adding in parts of a CSS framework. A touch-friendly, responsive polyfill with extended browser-support - especially handy for min, max, and step values - is available.

Use case example:

image

And simple implementation in a blueprint.

Uses input with type 'range' to create a HTML5 slider-element.
@flaviocopes flaviocopes merged commit d02d110 into getgrav:develop Feb 23, 2017
@OleVik OleVik mentioned this pull request Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants