File size: 3,007 Bytes
c038271 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
.toggle-switch {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
margin: 10px;
}
.toggle-switch .toggle-input {
display: none;
}
.toggle-switch .toggle-label {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 24px;
background-color: #ccc;
border-radius: 34px;
cursor: pointer;
transition: background-color 0.3s;
}
.toggle-switch .toggle-label::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
top: 2px;
left: 2px;
background-color: #fff;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
transition: transform 0.3s;
}
.toggle-switch .toggle-input:checked + .toggle-label {
background-color: #2196F3;
}
.toggle-switch .toggle-input:checked + .toggle-label::before {
transform: translateX(16px);
}
.toggle-switch.light .toggle-label {
background-color: #BEBEBE;
}
.toggle-switch.light .toggle-input:checked + .toggle-label {
background-color: #9B9B9B;
}
.toggle-switch.light .toggle-input:checked + .toggle-label::before {
transform: translateX(6px);
}
.toggle-switch.dark .toggle-label {
background-color: #4B4B4B;
}
.toggle-switch.dark .toggle-input:checked + .toggle-label {
background-color: #717171;
}
.toggle-switch.dark .toggle-input:checked + .toggle-label::before {
transform: translateX(16px);
}
/* CHECKBOX FEATURE */
.feat-radio-container {
display: flex;
justify-content: center;
align-items: center;
}
.feat-radio-container > h4 {
margin-top: 6px;
}
.toggle-switch-feat {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
margin: 10px;
}
.toggle-switch-feat .toggle-input-feat {
display: none;
}
.toggle-switch-feat .toggle-label-feat {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 24px;
background-color: #bbb;
border-radius: 34px;
cursor: pointer;
transition: background-color 0.3s;
}
.toggle-switch-feat .toggle-label-feat::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
top: 2px;
left: 2px;
background-color: #fff;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
transition: transform 0.3s;
}
.toggle-switch-feat .toggle-input-feat:checked + .toggle-label-feat {
background-color: #bbb;
}
.toggle-switch-feat .toggle-input-feat:checked + .toggle-label-feat::before {
transform: translateX(16px);
}
.toggle-switch-feat.light .toggle-label-feat {
background-color: #BEBEBE;
}
.toggle-switch-feat.light .toggle-input-feat:checked + .toggle-label-feat {
background-color: #9B9B9B;
}
.toggle-switch-feat.light .toggle-input-feat:checked + .toggle-label-feat::before {
transform: translateX(6px);
}
.toggle-switch-feat.dark .toggle-label-feat {
background-color: #4B4B4B;
}
.toggle-switch-feat.dark .toggle-input:checked + .toggle-label-feat {
background-color: #717171;
}
.toggle-switch-feat.dark .toggle-input-feat:checked + .toggle-label-feat::before {
transform: translateX(16px);
}
|