12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151 |
- @import url('normalize.css');
- @import url('demo.css');
- /* GLOBALS */
- *,
- *:after,
- *:before {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
- margin: 0;
- }
- .switch {
- margin: 5px 20px;
- position: relative;
- float:left;
- }
- .switch label {
- width: 100%;
- height: 100%;
- position: relative;
- display: block;
- }
- .switch input {
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- opacity: 0;
- z-index: 100;
- position: absolute;
- width: 100%;
- height: 100%;
- cursor: pointer;
- }
- /* DEMO 1 */
- .switch.demo1 {
- width: 100px;
- height: 100px;
- }
- .switch.demo1 label {
- border-radius: 50%;
- background: #eaeaea;
- /* box-shadow:
- 0 3px 5px rgba(0,0,0,0.25),
- inset 0 1px 0 rgba(255,255,255,0.3),
- inset 0 -5px 5px rgba(100,100,100,0.1),
- inset 0 5px 5px rgba(255,255,255,0.3);*/
- }
- .switch.demo1 label:after {
- content: "";
- position: absolute;
- top: -8%; right: -8%; bottom: -8%; left: -8%;
- z-index: -1;
- border-radius: inherit;
- background: #ddd;
- /*background: -moz-linear-gradient(#ccc, #fff);
- background: -ms-linear-gradient(#ccc, #fff);
- background: -o-linear-gradient(#ccc, #fff);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ccc), to(#fff));
- background: -webkit-linear-gradient(#ccc, #fff);
- background: linear-gradient(#ccc, #fff);
- box-shadow:
- inset 0 2px 1px rgba(0,0,0,0.15),
- 0 2px 5px rgba(200,200,200,0.1);*/
-
- }
- .switch.demo1 label:before {
- content: "";
- position: absolute;
- width: 20%;
- height: 20%;
- border-radius: inherit;
- left: 40%;
- top: 40%;
- background: #969696;
- background: radial-gradient(40% 35%, #ccc, #969696 60%);
- box-shadow:
- inset 0 2px 4px 1px rgba(0,0,0,0.3),
- 0 1px 0 rgba(255,255,255,1),
- inset 0 1px 0 white;
- }
- .switch.demo1 input:checked ~ label {
- background: #dedede;
- background: -moz-linear-gradient(#dedede, #fdfdfd);
- background: -ms-linear-gradient(#dedede, #fdfdfd);
- background: -o-linear-gradient(#dedede, #fdfdfd);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#dedede), to(#fdfdfd));
- background: -webkit-linear-gradient(#dedede, #fdfdfd);
- background: linear-gradient(#dedede, #fdfdfd);
- }
- .switch.demo1 input:checked ~ label:before {
- background: #25d025;
- background: radial-gradient(40% 35%, #5aef5a, #25d025 60%);
- box-shadow:
- inset 0 3px 5px 1px rgba(0,0,0,0.1),
- 0 1px 0 rgba(255,255,255,0.4),
- 0 0 10px 2px rgba(0, 210, 0, 0.5);
- }
- /* DEMO 1_s */
- .switch.demo1_s {
- width: 20px;
- height: 20px;
- }
- .switch.demo1_s label {
- border-radius: 50%;
- background: #fff;
- border:#ddd 1px solid;
- /* box-shadow:
- 0 3px 5px rgba(0,0,0,0.25),
- inset 0 1px 0 rgba(255,255,255,0.3),
- inset 0 -5px 5px rgba(100,100,100,0.1),
- inset 0 5px 5px rgba(255,255,255,0.3);*/
- }
- .switch.demo1_s label:after {
- content: "";
- position: absolute;
- top: -3%; right: -3%; bottom: -3%; left: -3%;
- z-index: -1;
- border-radius: inherit;
- background: #ddd;
- /* background: -moz-linear-gradient(#ccc, #fff);
- background: -ms-linear-gradient(#ccc, #fff);
- background: -o-linear-gradient(#ccc, #fff);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ccc), to(#fff));
- background: -webkit-linear-gradient(#ccc, #fff);
- background: linear-gradient(#ccc, #fff);
- box-shadow:
- inset 0 2px 1px rgba(0,0,0,0.15),
- 0 2px 5px rgba(200,200,200,0.1);*/
- }
- .switch.demo1_s label:before {
- content: "";
- position: absolute;
- width: 35%;
- height: 35%;
- border-radius: inherit;
- left: 32.5%;
- top: 32.5%;
- background: #969696;
- /* background: radial-gradient(40% 35%, #ccc, #969696 60%);
- box-shadow:
- inset 0 2px 4px 1px rgba(0,0,0,0.3),
- 0 1px 0 rgba(255,255,255,1),
- inset 0 1px 0 white;*/
- }
- .switch.demo1_s input:checked ~ label {
- background: #fffdfd;
- /* background: -moz-linear-gradient(#dedede, #fdfdfd);
- background: -ms-linear-gradient(#dedede, #fdfdfd);
- background: -o-linear-gradient(#dedede, #fdfdfd);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#dedede), to(#fdfdfd));
- background: -webkit-linear-gradient(#dedede, #fdfdfd);
- background: linear-gradient(#dedede, #fdfdfd);*/
- }
- .switch.demo1_s input:checked ~ label:before {
- background: #25d025;
- /* background: radial-gradient(40% 35%, #5aef5a, #25d025 60%);
- box-shadow:
- inset 0 3px 5px 1px rgba(0,0,0,0.1),
- 0 1px 0 rgba(255,255,255,0.4),
- 0 0 10px 2px rgba(0, 210, 0, 0.5);*/
- }
- /* DEMO 1_m */
- .switch.demo1_m {
- width: 15px;
- height: 15px;
- }
- .switch.demo1_m label {
- border-radius: 50%;
- background: #fff;
- /*box-shadow:
- 0 3px 5px rgba(0,0,0,0.25),
- inset 0 1px 0 rgba(255,255,255,0.3),
- inset 0 -5px 5px rgba(100,100,100,0.1),
- inset 0 5px 5px rgba(255,255,255,0.3);*/
- }
- .switch.demo1_m label:after {
- content: "";
- position: absolute;
- top: -8%; right: -8%; bottom: -8%; left: -8%;
- z-index: 1;
- border-radius: inherit;
- background: #fafafa;
- border:#ddd 1px solid;
- /* background: -moz-linear-gradient(#ccc, #fff);
- background: -ms-linear-gradient(#ccc, #fff);
- background: -o-linear-gradient(#ccc, #fff);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ccc), to(#fff));
- background: -webkit-linear-gradient(#ccc, #fff);
- background: linear-gradient(#ccc, #fff);
- box-shadow:
- inset 0 2px 1px rgba(0,0,0,0.15),
- 0 2px 5px rgba(200,200,200,0.1);*/
- }
- .switch.demo1_m label:before {
- content: "";
- position: absolute;
- width: 40%;
- height: 40%;
- border-radius: inherit;
- left: 30%;
- top: 30%;
- background: #1db9ff;
- z-index:20;
- /* background: radial-gradient(40% 35%, #ccc, #969696 60%);
- box-shadow:
- inset 0 2px 4px 1px rgba(0,0,0,0.3),
- 0 1px 0 rgba(255,255,255,1),
- inset 0 1px 0 white;*/
- }
- .switch.demo1_m input:checked ~ label {
- background: #dedede;
- background: -moz-linear-gradient(#dedede, #fdfdfd);
- background: -ms-linear-gradient(#dedede, #fdfdfd);
- background: -o-linear-gradient(#dedede, #fdfdfd);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#dedede), to(#fdfdfd));
- background: -webkit-linear-gradient(#dedede, #fdfdfd);
- background: linear-gradient(#dedede, #fdfdfd);
- }
- .switch.demo1_m input:checked ~ label:before {
- background: #25d025;
- background: radial-gradient(40% 35%, #5aef5a, #25d025 60%);
- box-shadow:
- inset 0 3px 5px 1px rgba(0,0,0,0.1),
- 0 1px 0 rgba(255,255,255,0.4),
- 0 0 10px 2px rgba(0, 210, 0, 0.5);
- }
- /* DEMO 2 */
- .switch.demo2 {
- width: 50px;
- height: 100px;
- }
- .switch.demo2 label {
- background: #cbc7bc;
- margin: 0 auto;
- border-radius: 5px;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- 0 2px 0 rgba(255,255,255,0.6),
- inset 0 10px 1px #e5e5e5,
- inset 0 11px 0 rgba(255,255,255,0.5),
- inset 0 -45px 3px #ddd;
- }
- .switch.demo2 label:after {
- content: "";
- position: absolute;
- top: -20px;
- left: -25px;
- bottom: -20px;
- right: -25px;
- background: #ccc;
- background: -moz-linear-gradient(#ddd, #bbb);
- background: -ms-linear-gradient(#ddd, #bbb);
- background: -o-linear-gradient(#ddd, #bbb);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ddd), to(#bbb));
- background: -webkit-linear-gradient(#ddd, #bbb);
- background: linear-gradient(#ddd, #bbb);
- z-index: -1;
- border-radius: 5px;
- border: 1px solid #bbb;
- box-shadow:
- 0 0 5px 1px rgba(0,0,0,0.15),
- 0 3px 3px rgba(0,0,0,0.3),
- inset 0 1px 0 rgba(255,255,255,0.5);
- }
- .switch.demo2 label:before {
- content: "";
- position: absolute;
- width: 8px;
- height: 8px;
- background: #666;
- top: -13px;
- left: 20px;
- border-radius: 50%;
- box-shadow:
- 0 120px 0 #666,
- 0 1px 0 white,
- 0 121px 0 white;
- }
- .switch.demo2 input:checked ~ label {
- background: #d2cbc3;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- inset 0 -10px 0 #aaa,
- 0 2px 0 rgba(255,255,255,0.1),
- inset 0 45px 3px #e0e0E0,
- 0 8px 6px rgba(0,0,0,0.18);
- }
- /* DEMO 2_s */
- .switch.demo2_s {
- width: 15px;
- height: 30px;
- }
- .switch.demo2_s label {
- background: #cbc7bc;
- margin: 0 auto;
- border-radius: 5px;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- 0 2px 0 rgba(255,255,255,0.6),
- inset 0 10px 1px #e5e5e5,
- inset 0 11px 0 rgba(255,255,255,0.5),
- inset 0 -45px 3px #ddd;
- }
- .switch.demo2_s label:after {
- content: "";
- position: absolute;
- top: -20px;
- left: -25px;
- bottom: -20px;
- right: -25px;
- background: #ccc;
- background: -moz-linear-gradient(#ddd, #bbb);
- background: -ms-linear-gradient(#ddd, #bbb);
- background: -o-linear-gradient(#ddd, #bbb);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ddd), to(#bbb));
- background: -webkit-linear-gradient(#ddd, #bbb);
- background: linear-gradient(#ddd, #bbb);
- z-index: -1;
- border-radius: 5px;
- border: 1px solid #bbb;
- box-shadow:
- 0 0 5px 1px rgba(0,0,0,0.15),
- 0 3px 3px rgba(0,0,0,0.3),
- inset 0 1px 0 rgba(255,255,255,0.5);
- }
- .switch.demo2_s label:before {
- content: "";
- position: absolute;
- width: 4px;
- height: 4px;
- background: #666;
- top: -10px;
- left: 5px;
- border-radius: 50%;
- box-shadow:
- 0 46px 0 #666,
- 0 1px 0 white,
- 0 47px 0 white;
- }
- .switch.demo2_s input:checked ~ label {
- background: #d2cbc3;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- inset 0 -10px 0 #aaa,
- 0 2px 0 rgba(255,255,255,0.1),
- inset 0 45px 3px #e0e0E0,
- 0 8px 6px rgba(0,0,0,0.18);
- }
- /* DEMO 2_m */
- .switch.demo2_m {
- width: 30px;
- height: 60px;
- }
- .switch.demo2_m label {
- background: #cbc7bc;
- margin: 0 auto;
- border-radius: 5px;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- 0 2px 0 rgba(255,255,255,0.6),
- inset 0 10px 1px #e5e5e5,
- inset 0 11px 0 rgba(255,255,255,0.5),
- inset 0 -45px 3px #ddd;
- }
- .switch.demo2_m label:after {
- content: "";
- position: absolute;
- top: -20px;
- left: -25px;
- bottom: -20px;
- right: -25px;
- background: #ccc;
- background: -moz-linear-gradient(#ddd, #bbb);
- background: -ms-linear-gradient(#ddd, #bbb);
- background: -o-linear-gradient(#ddd, #bbb);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#ddd), to(#bbb));
- background: -webkit-linear-gradient(#ddd, #bbb);
- background: linear-gradient(#ddd, #bbb);
- z-index: -1;
- border-radius: 5px;
- border: 1px solid #bbb;
- box-shadow:
- 0 0 5px 1px rgba(0,0,0,0.15),
- 0 3px 3px rgba(0,0,0,0.3),
- inset 0 1px 0 rgba(255,255,255,0.5);
- }
- .switch.demo2_m label:before {
- content: "";
- position: absolute;
- width: 6px;
- height: 6px;
- background: #666;
- top: -13px;
- left: 10px;
- border-radius: 50%;
- box-shadow:
- 0 80px 0 #666,
- 0 1px 0 white,
- 0 81px 0 white;
- }
- .switch.demo2_m input:checked ~ label {
- background: #d2cbc3;
- box-shadow:
- inset 0 1px 0 white,
- 0 0 0 1px #999,
- 0 0 5px 1px rgba(0,0,0,0.2),
- inset 0 -10px 0 #aaa,
- 0 2px 0 rgba(255,255,255,0.1),
- inset 0 45px 3px #e0e0E0,
- 0 8px 6px rgba(0,0,0,0.18);
- }
- /* DEMO 3 */
- .switch.demo3 {
- width: 180px;
- height: 50px;
- }
- .switch.demo3 label {
- display: block;
- width: 100%;
- height: 100%;
- background: #a5a39d;
- border-radius: 40px;
- box-shadow:
- inset 0 3px 8px 1px rgba(0,0,0,0.2),
- 0 1px 0 rgba(255,255,255,0.5);
- }
- .switch.demo3 label:after {
- content: "";
- position: absolute;
- z-index: -1;
- top: -8px; right: -8px; bottom: -8px; left: -8px;
- border-radius: inherit;
- background: #ababab;
- background: -moz-linear-gradient(#f2f2f2, #ababab);
- background: -ms-linear-gradient(#f2f2f2, #ababab);
- background: -o-linear-gradient(#f2f2f2, #ababab);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#ababab));
- background: -webkit-linear-gradient(#f2f2f2, #ababab);
- background: linear-gradient(#f2f2f2, #ababab);
- box-shadow: 0 0 10px rgba(0,0,0,0.3),
- 0 1px 1px rgba(0,0,0,0.25);
- }
- .switch.demo3 label:before {
- content: "";
- position: absolute;
- z-index: -1;
- top: -18px; right: -18px; bottom: -18px; left: -18px;
- border-radius: inherit;
- background: #eee;
- background: -moz-linear-gradient(#e5e7e6, #eee);
- background: -ms-linear-gradient(#e5e7e6, #eee);
- background: -o-linear-gradient(#e5e7e6, #eee);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e7e6), to(#eee));
- background: -webkit-linear-gradient(#e5e7e6, #eee);
- background: linear-gradient(#e5e7e6, #eee);
- box-shadow:
- 0 1px 0 rgba(255,255,255,0.5);
- -webkit-filter: blur(1px);
- -moz-filter: blur(1px);
- -ms-filter: blur(1px);
- -o-filter: blur(1px);
- filter: blur(1px);
- }
- .switch.demo3 label i {
- display: block;
- height: 100%;
- width: 60%;
- border-radius: inherit;
- background: silver;
- position: absolute;
- z-index: 2;
- right: 40%;
- top: 0;
- background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- box-shadow:
- inset 0 1px 0 white,
- 0 0 8px rgba(0,0,0,0.3),
- 0 5px 5px rgba(0,0,0,0.2);
- }
- .switch.demo3 label i:after {
- content: "";
- position: absolute;
- left: 15%;
- top: 25%;
- width: 70%;
- height: 50%;
- background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);
- border-radius: inherit;
- }
- .switch.demo3 label i:before {
- content: "off";
- text-transform: uppercase;
- font-style: normal;
- font-weight: bold;
- color: rgba(0,0,0,0.4);
- text-shadow: 0 1px 0 #bcb8ae, 0 -1px 0 #97958e;
- font-family: Helvetica, Arial, sans-serif;
- font-size: 24px;
- position: absolute;
- top: 50%;
- margin-top: -12px;
- right: -50%;
- }
- .switch.demo3 input:checked ~ label {
- background: #9abb82;
- }
- .switch.demo3 input:checked ~ label i {
- right: -1%;
- }
- .switch.demo3 input:checked ~ label i:before {
- content: "on";
- right: 115%;
- color: #82a06a;
- text-shadow:
- 0 1px 0 #afcb9b,
- 0 -1px 0 #6b8659;
- }
- /* DEMO 3_s */
- .switch.demo3_s {
- width: 65px;
- height: 16px;
- }
- .switch.demo3_s label {
- display: block;
- width: 100%;
- height: 100%;
- /*background: #a5a39d;*/
- border-radius: 40px;
- /* box-shadow:
- inset 0 3px 8px 1px rgba(0,0,0,0.2),
- 0 1px 0 rgba(255,255,255,0.5);*/
- }
- .switch.demo3_s label:after {
- content: "";
- position: absolute;
- z-index: -1;
- top: -1px; right: -1px; bottom: -1px; left: -1px;
- border-radius: inherit;
- background: #cac8c8;
- /* background: -moz-linear-gradient(#f2f2f2, #ababab);
- background: -ms-linear-gradient(#f2f2f2, #ababab);
- background: -o-linear-gradient(#f2f2f2, #ababab);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#ababab));
- background: -webkit-linear-gradient(#f2f2f2, #ababab);
- background: linear-gradient(#f2f2f2, #ababab);
- box-shadow: 0 0 10px rgba(0,0,0,0.3),
- 0 1px 1px rgba(0,0,0,0.25);*/
- }
- .switch.demo3_s label:before {
- content: "";
- position: absolute;
- z-index: -1;
- top: -1px; right: -1px; bottom: -1px; left: -1px;
- border-radius: inherit;
- /* background: #cac8c8;
- background: -moz-linear-gradient(#e5e7e6, #eee);
- background: -ms-linear-gradient(#e5e7e6, #eee);
- background: -o-linear-gradient(#e5e7e6, #eee);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e7e6), to(#eee));
- background: -webkit-linear-gradient(#e5e7e6, #eee);
- background: linear-gradient(#e5e7e6, #eee);
- box-shadow:
- 0 1px 0 rgba(255,255,255,0.5);*/
- -webkit-filter: blur(1px);
- -moz-filter: blur(1px);
- -ms-filter: blur(1px);
- -o-filter: blur(1px);
- filter: blur(1px);
- }
- .switch.demo3_s label i {
- display: block;
- height: 100%;
- width: 50%;
- border-radius: inherit;
- /*background: silver;*/
- position: absolute;
- z-index: 2;
- right: 50%;
- top: 0;
- background: #fff;
- /* background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- box-shadow:
- inset 0 1px 0 white,
- 0 0 8px rgba(0,0,0,0.3),
- 0 5px 5px rgba(0,0,0,0.2);*/
- }
- .switch.demo3_s label i:after {
- content: "";
- position: absolute;
- left: 15%;
- top: 25%;
- width: 70%;
- height: 50%;
- /* background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);*/
- border-radius: inherit;
- }
- .switch.demo3_s label i:before {
- content: "";
- text-transform: uppercase;
- font-style: normal;
- font-weight: bold;
- color: rgba(0,0,0,0.4);
- text-shadow: 0 1px 0 #bcb8ae, 0 -1px 0 #97958e;
- font-family: Helvetica, Arial, sans-serif;
- font-size: 12px;
- position: absolute;
- top: 50%;
- margin-top: -8px;
- right: -58%;
- }
- .switch.demo3_s input:checked ~ label {
- background: #3dad61;
- }
- .switch.demo3_s input:checked ~ label i {
- right: -1%;
- }
- .switch.demo3_s input:checked ~ label i:before {
- content: "";
- right: 110%;
- color: #82a06a;
- /*text-shadow:
- 0 1px 0 #afcb9b,
- 0 -1px 0 #6b8659;*/
- }
- /* DEMO 3_m */
- .switch.demo3_m {
- width: 110px;
- height: 30px;
- }
- .switch.demo3_m label {
- display: block;
- width: 100%;
- height: 100%;
- background: #a5a39d;
- border-radius: 40px;
- box-shadow:
- inset 0 3px 8px 1px rgba(0,0,0,0.2),
- 0 1px 0 rgba(255,255,255,0.5);
- }
- .switch.demo3_m label:after {
- content: "";
- position: absolute;
- z-index: -1;
- top: -8px; right: -8px; bottom: -8px; left: -8px;
- border-radius: inherit;
- background: #ababab;
- background: -moz-linear-gradient(#f2f2f2, #ababab);
- background: -ms-linear-gradient(#f2f2f2, #ababab);
- background: -o-linear-gradient(#f2f2f2, #ababab);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#ababab));
- background: -webkit-linear-gradient(#f2f2f2, #ababab);
- background: linear-gradient(#f2f2f2, #ababab);
- box-shadow: 0 0 10px rgba(0,0,0,0.3),
- 0 1px 1px rgba(0,0,0,0.25);
- }
- .switch.demo3_m label:before {
- content: "";
- position: absolute;
- z-index: -1;
- top: -18px; right: -18px; bottom: -18px; left: -18px;
- border-radius: inherit;
- background: #eee;
- background: -moz-linear-gradient(#e5e7e6, #eee);
- background: -ms-linear-gradient(#e5e7e6, #eee);
- background: -o-linear-gradient(#e5e7e6, #eee);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e7e6), to(#eee));
- background: -webkit-linear-gradient(#e5e7e6, #eee);
- background: linear-gradient(#e5e7e6, #eee);
- box-shadow:
- 0 1px 0 rgba(255,255,255,0.5);
- -webkit-filter: blur(1px);
- -moz-filter: blur(1px);
- -ms-filter: blur(1px);
- -o-filter: blur(1px);
- filter: blur(1px);
- }
- .switch.demo3_m label i {
- display: block;
- height: 100%;
- width: 60%;
- border-radius: inherit;
- background: silver;
- position: absolute;
- z-index: 2;
- right: 40%;
- top: 0;
- background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- box-shadow:
- inset 0 1px 0 white,
- 0 0 8px rgba(0,0,0,0.3),
- 0 5px 5px rgba(0,0,0,0.2);
- }
- .switch.demo3_m label i:after {
- content: "";
- position: absolute;
- left: 15%;
- top: 25%;
- width: 70%;
- height: 50%;
- background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);
- border-radius: inherit;
- }
- .switch.demo3_m label i:before {
- content: "off";
- text-transform: uppercase;
- font-style: normal;
- font-weight: bold;
- color: rgba(0,0,0,0.4);
- text-shadow: 0 1px 0 #bcb8ae, 0 -1px 0 #97958e;
- font-family: Helvetica, Arial, sans-serif;
- font-size: 18px;
- position: absolute;
- top: 50%;
- margin-top: -10px;
- right: -60%;
- }
- .switch.demo3_m input:checked ~ label {
- background: #9abb82;
- }
- .switch.demo3_m input:checked ~ label i {
- right: -1%;
- }
- .switch.demo3_m input:checked ~ label i:before {
- content: "on";
- right: 110%;
- color: #82a06a;
- text-shadow:
- 0 1px 0 #afcb9b,
- 0 -1px 0 #6b8659;
- }
- /* DEMO 4 */
- .switch.demo4 {
- width: 150px;
- height: 150px;
- }
- .switch.demo4 label {
- border-radius: 50%;
- background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- position: relative;
- color: #a5a39d;
- font-size: 100px;
- text-align: center;
- line-height: 150px;
- -webkit-transition: all 0.3s ease-out;
- -moz-transition: all 0.3s ease-out;
- -ms-transition: all 0.3s ease-out;
- -o-transition: all 0.3s ease-out;
- transition: all 0.3s ease-out;
- text-shadow: 0 2px 1px rgba(0,0,0,0.25);
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.3),
- 0 10px 10px 4px rgba(0,0,0,0.3);
- z-index: -1;
- }
- .switch.demo4 label:after {
- content: "";
- position: absolute;
- left: -20px;
- right: -20px;
- top: -20px;
- bottom: -20px;
- z-index: -2;
- border-radius: inherit;
- box-shadow:
- inset 0 1px 0 rgba(255,255,255,0.1),
- 0 1px 2px rgba(0,0,0,0.3),
- 0 0 10px rgba(0,0,0,0.15);
-
- }
- .switch.demo4 label:before {
- content: "";
- position: absolute;
- left: -10px;
- right: -10px;
- top: -10px;
- bottom: -10px;
- z-index: -1;
- border-radius: inherit;
- box-shadow: inset 0 10px 10px rgba(0,0,0,0.13);
- -webkit-filter:blur(1px);
- -moz-filter:blur(1px);
- -ms-filter:blur(1px);
- -o-filter:blur(1px);
- filter: blur(1px);
- }
- .switch.demo4 input:checked ~ label {
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.35),
- 0 3px 10px 4px rgba(0,0,0,0.2);
- color: #9abb82;
- }
- .switch.demo4 .icon-off:after {
- content: "";
- display: block;
- position: absolute;
- width: 70%;
- height: 70%;
- left: 50%;
- top: 50%;
- z-index: -1;
- margin: -35% 0 0 -35%;
- border-radius: 50%;
- background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);
- box-shadow:
- 0 -2px 5px rgba(255,255,255,0.05),
- 0 2px 5px rgba(255,255,255,0.1);
- }
- /* DEMO 4_s */
- .switch.demo4_s {
- width: 50px;
- height: 50px;
- }
- .switch.demo4_s label {
- border-radius: 50%;
- background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- position: relative;
- color: #a5a39d;
- font-size: 30px;
- text-align: center;
- line-height: 50px;
- -webkit-transition: all 0.3s ease-out;
- -moz-transition: all 0.3s ease-out;
- -ms-transition: all 0.3s ease-out;
- -o-transition: all 0.3s ease-out;
- transition: all 0.3s ease-out;
- text-shadow: 0 2px 1px rgba(0,0,0,0.25);
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.3),
- 0 10px 10px 4px rgba(0,0,0,0.3);
- z-index: -1;
- }
- .switch.demo4_s label:after {
- content: "";
- position: absolute;
- left: -20px;
- right: -20px;
- top: -20px;
- bottom: -20px;
- z-index: -2;
- border-radius: inherit;
- box-shadow:
- inset 0 1px 0 rgba(255,255,255,0.1),
- 0 1px 2px rgba(0,0,0,0.3),
- 0 0 10px rgba(0,0,0,0.15);
-
- }
- .switch.demo4_s label:before {
- content: "";
- position: absolute;
- left: -10px;
- right: -10px;
- top: -10px;
- bottom: -10px;
- z-index: -1;
- border-radius: inherit;
- box-shadow: inset 0 10px 10px rgba(0,0,0,0.13);
- -webkit-filter:blur(1px);
- -moz-filter:blur(1px);
- -ms-filter:blur(1px);
- -o-filter:blur(1px);
- filter: blur(1px);
- }
- .switch.demo4_s input:checked ~ label {
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.35),
- 0 3px 10px 4px rgba(0,0,0,0.2);
- color: #9abb82;
- }
- .switch.demo4_s .icon-off:after {
- content: "";
- display: block;
- position: absolute;
- width: 70%;
- height: 70%;
- left: 50%;
- top: 50%;
- z-index: -1;
- margin: -35% 0 0 -35%;
- border-radius: 50%;
- background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);
- box-shadow:
- 0 -2px 5px rgba(255,255,255,0.05),
- 0 2px 5px rgba(255,255,255,0.1);
- }
- /* DEMO 4_m */
- .switch.demo4_m {
- width: 100px;
- height: 100px;
- }
- .switch.demo4_m label {
- border-radius: 50%;
- background: #b2ac9e;
- background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
- background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
- background: -o-linear-gradient(#f7f2f6, #b2ac9e);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
- background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
- background: linear-gradient(#f7f2f6, #b2ac9e);
- position: relative;
- color: #a5a39d;
- font-size: 50px;
- text-align: center;
- line-height: 100px;
- -webkit-transition: all 0.3s ease-out;
- -moz-transition: all 0.3s ease-out;
- -ms-transition: all 0.3s ease-out;
- -o-transition: all 0.3s ease-out;
- transition: all 0.3s ease-out;
- text-shadow: 0 2px 1px rgba(0,0,0,0.25);
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.3),
- 0 10px 10px 4px rgba(0,0,0,0.3);
- z-index: -1;
- }
- .switch.demo4_m label:after {
- content: "";
- position: absolute;
- left: -20px;
- right: -20px;
- top: -20px;
- bottom: -20px;
- z-index: -2;
- border-radius: inherit;
- box-shadow:
- inset 0 1px 0 rgba(255,255,255,0.1),
- 0 1px 2px rgba(0,0,0,0.3),
- 0 0 10px rgba(0,0,0,0.15);
-
- }
- .switch.demo4_m label:before {
- content: "";
- position: absolute;
- left: -10px;
- right: -10px;
- top: -10px;
- bottom: -10px;
- z-index: -1;
- border-radius: inherit;
- box-shadow: inset 0 10px 10px rgba(0,0,0,0.13);
- -webkit-filter:blur(1px);
- -moz-filter:blur(1px);
- -ms-filter:blur(1px);
- -o-filter:blur(1px);
- filter: blur(1px);
- }
- .switch.demo4_m input:checked ~ label {
- box-shadow:
- inset 0 2px 3px rgba(255,255,255,0.13),
- 0 5px 8px rgba(0,0,0,0.35),
- 0 3px 10px 4px rgba(0,0,0,0.2);
- color: #9abb82;
- }
- .switch.demo4_m .icon-off:after {
- content: "";
- display: block;
- position: absolute;
- width: 70%;
- height: 70%;
- left: 50%;
- top: 50%;
- z-index: -1;
- margin: -35% 0 0 -35%;
- border-radius: 50%;
- background: #d2cbc3;
- background: -moz-linear-gradient(#cbc7bc, #d2cbc3);
- background: -ms-linear-gradient(#cbc7bc, #d2cbc3);
- background: -o-linear-gradient(#cbc7bc, #d2cbc3);
- background: -webkit-gradient(linear, 0 0, 0 100%, from(#cbc7bc), to(#d2cbc3));
- background: -webkit-linear-gradient(#cbc7bc, #d2cbc3);
- background: linear-gradient(#cbc7bc, #d2cbc3);
- box-shadow:
- 0 -2px 5px rgba(255,255,255,0.05),
- 0 2px 5px rgba(255,255,255,0.1);
- }
|