Customizing Slider

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-slider-sizeNumber200px200px
Description
The default size of the Slider.
$kendo-slider-tick-sizeNumber2px2px
Description
The default size of the Slider tick.
$kendo-slider-alt-sizeNumber36px36px
Description
The default size of the Slider's track wrap.
$kendo-slider-font-familyList$kendo-font-familyRoboto, "Helvetica Neue", sans-serif
Description
The font family of the Slider.
$kendo-slider-font-sizeNumber$kendo-font-size-md14px
Description
The font size of the Slider.
$kendo-slider-line-heightNumber$kendo-line-height-md2
Description
The line height of the Slider.
$kendo-slider-button-offsetNumber22px22px
Description
The offset of the Slider Buttons.
$kendo-slider-button-sizeNumber36px36px
Description
The size of the Slider Buttons.
$kendo-slider-button-spacingNumber($kendo-slider-button-size + $kendo-slider-button-offset)58px
Description
The spacing of the Slider Buttons.
$kendo-slider-button-focus-shadowNullnullnull
Description
The shadow of the focused Slider Buttons.
$kendo-slider-track-thicknessNumber2px2px
Description
The thickness of the Slider track.
$kendo-slider-draghandle-sizeNumber14px14px
Description
The size of the Slider drag handle.
$kendo-slider-draghandle-border-widthNumber0px0px
Description
The border width of the Slider drag handle.
$kendo-slider-draghandle-active-scaleNumber11
Description
The transition scale of the active Slider drag handle.
$kendo-slider-draghandle-active-sizeNumber20px20px
Description
The size of the active Slider drag handle.
$kendo-slider-draghandle-bgColor$kendo-color-primary#3f51b5
Description
The background color of the Slider drag handle.
$kendo-slider-draghandle-textColor$kendo-color-primary-contrastwhite
Description
The text color of the Slider drag handle.
$kendo-slider-draghandle-borderColor$kendo-color-primary#3f51b5
Description
The border color of the Slider drag handle.
$kendo-slider-draghandle-gradientNullnullnull
Description
The gradient of the Slider drag handle.
$kendo-slider-draghandle-hover-bgNullnullnull
Description
The background color of the hovered Slider drag handle.
$kendo-slider-draghandle-hover-textNullnullnull
Description
The text color of the hovered Slider drag handle.
$kendo-slider-draghandle-hover-borderNullnullnull
Description
The border color of the hovered Slider drag handle.
$kendo-slider-draghandle-hover-gradientNullnullnull
Description
The gradient of the hovered Slider drag handle.
$kendo-slider-draghandle-pressed-bgNullnullnull
Description
The background color of the active Slider drag handle.
$kendo-slider-draghandle-pressed-textNullnullnull
Description
The text color of the active Slider drag handle.
$kendo-slider-draghandle-pressed-borderNullnullnull
Description
The border color of the active Slider drag handle.
$kendo-slider-draghandle-pressed-gradientNullnullnull
Description
The gradient of the active Slider drag handle.
$kendo-slider-draghandle-focus-shadowList0 0 0 11px if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-color-primary, .25 ))0 0 0 11px rgba(63, 81, 181, 0.25)
Description
The shadow of the focused Slider drag handle.
$kendo-slider-transition-speedNumber.3s0.3s
Description
The transition speed of the Slider.
$kendo-slider-transition-functionStringease-outease-out
Description
The transition function of the Slider.
$kendo-slider-draghandle-transition-speedNumber.4s0.4s
Description
The transition speed of the Slider drag handle.
$kendo-slider-draghandle-transition-functionStringcubic-bezier(.25, .8, .25, 1)cubic-bezier(0.25, 0.8, 0.25, 1)
Description
The transition function of the Slider drag handle.
$kendo-slider-track-bgColorif($kendo-enable-color-system, k-color( primary-subtle ), k-try-tint( $kendo-color-primary, 8 ))#bac0e4
Description
The background color of the Slider track.
$kendo-slider-selection-bgColor$kendo-color-primary#3f51b5
Description
The background color of the Slider's track selection.
$kendo-slider-disabled-opacityNumber.650.65

In this article

Not finding the help you need?