rangetouch
Version:
A super tiny library to make input type='range' sliders work better on touch devices
27 lines (24 loc) • 633 B
text/less
// ==========================================================================
// Helpers
// ==========================================================================
// Hide only visually, but have it available for screen readers: h5bp.com/v
// -----------------------------------------------
.sr-only {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
// Hidden attribute
[hidden] {
display: none ;
}
// Hide/show based on touch support
.no-touch .hidden-no-touch,
.touch .hidden-touch {
display: none;
}