Published
Edited
Feb 22, 2019
Importers
Insert cell
md`# Range Styles`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
test_template = html`Hello ${name}`
Insert cell
width = '50%'
Insert cell
range_style_00 = html`<style> input[type=range] {
-webkit-appearance: none;
width: ${width};
margin: 9.3px 0;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 8.4px;
cursor: pointer;
box-shadow: 1px 1px 1.5px #000000, 0px 0px 1px #0d0d0d;
background: #3071a9;
border-radius: 1.3px;
border: 3px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
box-shadow: 2.7px 2.7px 2.7px #171300, 0px 0px 2.7px #312800;
border: 1px solid #000000;
height: 27px;
width: 25px;
border-radius: 28px;
background: #57ffff;
cursor: pointer;
-webkit-appearance: none;
margin-top: -12.3px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #5a9ad0;
}
input[type=range]::-moz-range-track {
width: 100%;
height: 8.4px;
cursor: pointer;
box-shadow: 1px 1px 1.5px #000000, 0px 0px 1px #0d0d0d;
background: #3071a9;
border-radius: 1.3px;
border: 3px solid #010101;
}
input[type=range]::-moz-range-thumb {
box-shadow: 2.7px 2.7px 2.7px #171300, 0px 0px 2.7px #312800;
border: 1px solid #000000;
height: 27px;
width: 25px;
border-radius: 28px;
background: #57ffff;
cursor: pointer;
}
input[type=range]::-ms-track {
width: 100%;
height: 8.4px;
cursor: pointer;
background: transparent;
border-color: transparent;
color: transparent;
}
input[type=range]::-ms-fill-lower {
background: #1e4769;
border: 3px solid #010101;
border-radius: 2.6px;
box-shadow: 1px 1px 1.5px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
background: #3071a9;
border: 3px solid #010101;
border-radius: 2.6px;
box-shadow: 1px 1px 1.5px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
box-shadow: 2.7px 2.7px 2.7px #171300, 0px 0px 2.7px #312800;
border: 1px solid #000000;
height: 27px;
width: 25px;
border-radius: 28px;
background: #57ffff;
cursor: pointer;
height: 8.4px;
}
input[type=range]:focus::-ms-fill-lower {
background: #3071a9;
}
input[type=range]:focus::-ms-fill-upper {
background: #5a9ad0;
}</style>`

Insert cell
Insert cell
slider_bottom = html`<input type=range>`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more