Initial commit
[2ch-be.git] / dev-test / css / onoff.css
blob39d08aa18f6f4e603cc7737407f82f6c36f2e02a
1 .onSwitchRest {
2 position: relative; width: 90px;
3 -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
5 .onCheck {
6 display: none;
8 .onLabel {
9 display: block; overflow: hidden; cursor: pointer;
10 border: 2px solid #999999; border-radius: 20px;
12 .onInner {
13 display: block; width: 200%; margin-left: -100%;
14 -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
15 -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
17 .onInner:before, .onInner:after {
18 display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
19 font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
20 -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
22 .onInner:before {
23 content: "ON";
24 padding-left: 10px;
25 background-color: #FFFFFF; color: #222D30;
27 .onInner:after {
28 content: "OFF";
29 padding-right: 10px;
30 background-color: #FFFFFF; color: #DEDEDE;
31 text-align: right;
33 .onSwitch {
34 display: block; width: 18px; margin: 6px;
35 background: #A1A1A1;
36 border: 2px solid #999999; border-radius: 20px;
37 position: absolute; top: 0; bottom: 0; right: 56px;
38 -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
39 -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s;
41 .onCheck:checked + .onLabel .onInner {
42 margin-left: 0;
44 .onCheck:checked + .onLabel .onSwitch {
45 right: 0px;
46 background-color: #27A1CA;
49 .onoffswitch {
50 position: relative; width: 64px;
51 -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
53 .onoffswitch-checkbox {
54 display: none;
56 .onoffswitch-label {
57 overflow: hidden; cursor: pointer;
58 border: 2px solid #999999; border-radius: 20px;
60 .onoffswitch-inner {
61 display: block; width: 200%; margin-left: -100%;
62 -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
63 -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
65 .onoffswitch-inner:before, .onoffswitch-inner:after {
66 display: block; float: left; width: 50%; height: 23px; padding: 0; line-height: 23px;
67 font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
68 -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
70 .onoffswitch-inner:before {
71 content: "ON";
72 padding-left: 6px;
73 background-color: #EEEEEE; color: #383838;
75 .onoffswitch-inner:after {
76 content: "OFF";
77 padding-right: 6px;
78 background-color: #EEEEEE; color: #999999;
79 text-align: right;
81 .onoffswitch-switch {
82 display: block; width: 14px; margin: 4.5px;
83 background: #A1A1A1;
84 border: 2px solid #999999; border-radius: 20px;
85 position: absolute; right: 37px; height: 15px;
86 -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
87 -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s;
89 .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
90 margin-left: 0;
92 .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
93 right: 0px;
94 background-color: #63C5E6;