/* 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: 1px solid rgba(225,232,237,1); border-radius: 500px; color: rgba(43,50,53,1); cursor: pointer; display: inline-block; font-size: 12px; -webkit-font-smoothing: antialiased; font-weight: bold; line-height: 12px; margin-top: -2px; min-width: 64px; overflow: hidden; padding: 4px 0; position: relative; text-align: center; text-rendering: geometricPrecision; text-transform: uppercase; -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-red { color: rgba(255,255,255,1); } .swoggle.swoggle-on.swoggle-black { background: rgba(56,67,81,1); border-color: rgba(6,17,31,1); } .swoggle.swoggle-on.swoggle-blue { background: rgba(15,135,226,1); border-color: rgba(0,120,211,1); } .swoggle.swoggle-on.swoggle-green { background: rgba(112,169,13,1); border-color: rgba(74,153,0,1); } .swoggle.swoggle-on.swoggle-red { background: rgba(218,79,46,1); border-color: rgba(188,49,16,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); }