Skip to content

Instantly share code, notes, and snippets.

@monochromer
Last active August 29, 2015 14:20
Show Gist options
  • Save monochromer/35171896e10b2f81a562 to your computer and use it in GitHub Desktop.
Save monochromer/35171896e10b2f81a562 to your computer and use it in GitHub Desktop.
Шаблон для jQuery UI Slider
/**
* Слайдер jQuery UI
*/
.ui-slider {
position: relative;
text-align: left;
}
/**
* Заполняемая полоса
*/
.ui-slider-range {
position: absolute;
z-index: 1;
top: 0;
height: 100%;
}
.ui-slider-range-min {
left: 0;
}
.ui-slider-range-max {
right: 0;
}
/**
* Drag-элемент
*/
.ui-slider-handle {
position: absolute;
top: 0;
margin-left: -(width/2);
z-index: 2;
width: width;
height: height;
cursor: default;
-ms-touch-action: none;
touch-action: none;
}
.ui-slider-handle.ui-state-hover {}
.ui-slider-handle.ui-state-focus {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment