WIP: Form components extensions and improvements #94707
@ -1774,8 +1774,36 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label>Slider</label>
|
<label>Slider</label>
|
||||||
<div>
|
<input class="slider-custom" id="slider-custom" min="1" max="100" type="range" value="50">
|
||||||
<input class="slider-custom" id="slider-custom" min="1" max="100" type="range" value="50">
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="mb-5">
|
||||||
|
<label>Slider with step markers (default)</label>
|
||||||
|
<input class="slider-custom" id="slider-custom" min="1" max="9" type="range" value="5">
|
||||||
|
<div class="slider-custom-steps">
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
<div class="slider-custom-steps-item"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<label>Slider with step markers (dots)</label>
|
||||||
|
<input class="slider-custom" id="slider-custom" min="1" max="9" type="range" value="5">
|
||||||
|
<div class="slider-custom-steps">
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
|
<div class="slider-custom-steps-item slider-custom-steps-item-dots"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -325,3 +325,19 @@ select
|
|||||||
height: var(--spacer)
|
height: var(--spacer)
|
||||||
-webkit-appearance: none
|
-webkit-appearance: none
|
||||||
width: var(--spacer)
|
width: var(--spacer)
|
||||||
|
|
||||||
|
.slider-custom-steps
|
||||||
|
display: flex
|
||||||
|
justify-content: space-between
|
||||||
|
padding-left: 1.6rem
|
||||||
|
padding-right: 1.2rem
|
||||||
|
|
||||||
|
.slider-custom-steps-item
|
||||||
|
background-color: var(--color-text-tertiary)
|
||||||
|
height: var(--spacer-1)
|
||||||
|
transform: translateX(-.1rem)
|
||||||
|
width: .2rem
|
||||||
|
|
||||||
|
.slider-custom-steps-item-dots
|
||||||
|
border-radius: 50%
|
||||||
|
width: var(--spacer-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user