/* 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(42,44,48,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 { -webkit-box-sizing: border-box; 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(42,44,48,1); border-color: rgba(42,44,48,1); } .swoggle.swoggle-on.swoggle-blue { background: rgba(91,146,250,1); border-color: rgba(91,146,250,1); } .swoggle.swoggle-on.swoggle-green { background: rgba(27,192,109,1); border-color: rgba(27,192,109,1); } .swoggle.swoggle-on.swoggle-orange { background: rgba(255,154,46,1); border-color: rgba(255,154,46,1); } .swoggle.swoggle-on.swoggle-purple { background: rgba(81,68,95,1); border-color: rgba(81,68,95,1); } .swoggle.swoggle-on.swoggle-red { background: rgba(225,80,80,1); border-color: rgba(225,80,80,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(253,245,98,1); border-color: rgba(253,245,98,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); }