/** * Styles for switcher button * Use the below code to show switcher in your application * * **/ .amadeus-hos-res-cn-switcher { position: relative; display: inline-block; width: 40px; height: 20px; input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; -webkit-transition: 0.4s; transition: 0.4s; border-radius: 10px; border: 1px solid $disabled-button-bg-color; &:before { border-radius: 50%; position: absolute; content: ""; height: 16px; width: 16px; left: 1px; top: 0; margin: auto; bottom: 0px; background-color: $disabled-button-bg-color; -webkit-transition: 0.4s; transition: 0.4s; } } input:checked + .slider { background: $iconography-color; border-color: $iconography-color; &:before { -webkit-transform: translateX(20px); -ms-transform: translateX(20px); transform: translateX(20px); background: $rooms-rates-bg; } } }