javascript - Background color for ionic toggle and range -
i using ionic make mobile app. want add background toggle button , range. used toggle/range-background-dark. did not work
<ion-toggle toggle-class="toggle-balanced toggle-background-dark" ng-model="check"> 33 </ion-toggle> <div class="item range range-balanced range-background-dark"> <i class="icon ion-ios-sunny-outline"></i> <input type="range" name="volume" min="0" max="100" ng-model="rv"> <i class="icon ion-ios-sunny"></i> </div>
you can change toggle button , range background color using css
.toggle input:checked + .track { background-color: #8577b5; border-color: #8577b5; } .range.range - balanced input::-webkit - slider - thumb: before { background: #8577b5;} .range.range-light input::-webkit-slider-thumb:before { background: # ddd;} .range.range - stable input::-webkit - slider - thumb: before { background: #b2b2b2; } .range.range - positive input::-webkit - slider - thumb: before { background: #4a87ee; } .range.range-calm input::-webkit-slider-thumb:before { background: #43cee6; } .range.range - assertive input::-webkit - slider - thumb: before { background: #ef4e3a; } .range.range - energized input::-webkit - slider - thumb: before { background: #f0b840; } .range.range - royal input::-webkit - slider - thumb: before { background: #8a6de9; } .range.range-dark input::-webkit-slider-thumb:before { background: #444; }
Comments
Post a Comment