.sidr { background: #333; color: #9a9da2; display: block; position: fixed; top: 0; height: 100%; z-index: 999999; width: 320px; overflow-x: hidden; overflow-y: auto; } .sidr .sidr-inner { padding: 0 0 15px; } .sidr.right { left: auto; right: -320px; } .sidr.left { left: -320px; right: auto; } .sidr { padding-left: 15px; padding-right: 15px; } .sidr .widget-title { color: #fff; } .site-header-first #widgets-nav { background: #1892ed; } .switch input { position: absolute; opacity: 0; } /** * 1. Adjust this to size */ .switch { cursor: pointer; display: inline-block; font-size: 20px; height: 1em; width: 2em; margin: auto; background: #797979; border-radius: 1em; } .sidr-open .switch { background: #8BC34A; } .switch div { height: 1em; width: 1em; border-radius: 1em; background: #FFF; border: 1px solid #797979; -webkit-transition: all 300ms; -moz-transition: all 300ms; transition: all 300ms; } .sidr-open .switch input + div { border-color: #8bc34a; -webkit-transform: translate3d(100%, 0, 0); -moz-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } @media only screen and (min-width: 992px) { body.sidr-open:before { content: ""; left: 0; top: 0; z-index: 102; width: 100%; height: 100%; position: fixed; cursor: pointer; -webkit-transition: visibility 0s, opacity 0.4s linear; transition: visibility 0s, opacity 0.4s linear; visibility: visible; opacity: 1; background-color: rgba(51, 51, 51, 0.94); } }