/* Table of Contents ================================================== # Swoggle */ /* # Swoggle ================================================== */ .swoggle input[type='radio'], .swoggle input[type='checkbox'] { left: 0; opacity: 0; filter: alpha(opacity=0); position: absolute !important; top: 0; z-index: -1; } .swoggle { background: rgba(245,248,250,1); border-radius: 500px; border: 1px solid rgba(245,248,250,1); color: rgba(35,41,55,1); cursor: pointer; display: inline-block; -webkit-font-smoothing: antialiased; font-weight: bold; font-size: 12px; line-height: 12px; margin-top: -2px; min-width: 64px; overflow: hidden; padding: 4px 0; position: relative; text-rendering: geometricPrecision; text-transform: uppercase; text-align: center; -webkit-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; -webkit-user-select: none; user-select: none; vertical-align: middle; } .swoggle span, .swoggle label { box-sizing: border-box; cursor: pointer; display: inline-block; height: 100%; position: relative; } .swoggle label { background: rgba(255,255,255,1); border-radius: 500px; margin-bottom: 0; margin-top: 0; padding-bottom: 4px; padding-top: 3px; text-align: center; vertical-align: middle; width: 20%; z-index: 100; } .swoggle span { padding-bottom: 0; padding-top: 0; text-align: center; vertical-align: middle; width: 40%; z-index: 1; } .swoggle > div { display: inline-block; position: relative; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); top: 0; width: 150%; } .swoggle.swoggle-on > div { margin-left: 0; } .swoggle.swoggle-off > div { margin-left: -50%; } .swoggle.swoggle-on.swoggle-black, .swoggle.swoggle-on.swoggle-blue, .swoggle.swoggle-on.swoggle-green, .swoggle.swoggle-on.swoggle-orange, .swoggle.swoggle-on.swoggle-purple, .swoggle.swoggle-on.swoggle-red, .swoggle.swoggle-on.swoggle-smoke, .swoggle.swoggle-on.swoggle-yellow { color: rgba(255,255,255,1); } .swoggle.swoggle-on.swoggle-black { background: rgba(35,41,55,1); border-color: rgba(35,41,55,1); } .swoggle.swoggle-on.swoggle-blue { background: rgba(0,102,255,1); border-color: rgba(0,102,255,1); } .swoggle.swoggle-on.swoggle-green { background: rgba(0,200,0,1); border-color: rgba(0,200,0,1); } .swoggle.swoggle-on.swoggle-orange { background: rgba(255,82,0,1); border-color: rgba(255,82,0,1); } .swoggle.swoggle-on.swoggle-purple { background: rgba(128,0,255,1); border-color: rgba(128,0,255,1); } .swoggle.swoggle-on.swoggle-red { background: rgba(240,35,17,1); border-color: rgba(240,35,17,1); } .swoggle.swoggle-on.swoggle-smoke { background: rgba(85,94,113,1); border-color: rgba(85,94,113,1); } .swoggle.swoggle-on.swoggle-yellow { background: rgba(255,245,0,1); border-color: rgba(255,245,0,1); } .swoggle.swoggle-animate > div { -webkit-transition: margin-left 0.5s; transition: margin-left 0.5s; } .swoggle.swoggle-disabled, .swoggle.swoggle-readonly { cursor: default !important; opacity: 0.5; filter: alpha(opacity=50); }