demo.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /* Color Swicher CSS */
  2. .switcher {
  3. width: 30px !important;
  4. height: 40px !important;
  5. display: inline-block;
  6. margin: 4px 8px;
  7. border-radius: 5px;
  8. border: 0px solid #000;
  9. }
  10. .swichermainleft {
  11. width: 100%;
  12. float: left;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. .rtl .swichermainleft {
  17. float: right;
  18. }
  19. /*-- color-1 --*/
  20. .color1{
  21. background: #8667ff !important;
  22. }
  23. /*-- color-2 --*/
  24. .color2{
  25. background: #824bab !important;
  26. }
  27. /*-- color-3 --*/
  28. .color3{
  29. background: #1b9783 !important;
  30. }
  31. /*-- color-4 --*/
  32. .color4{
  33. background:#4680ff !important;
  34. }
  35. /*-- color-5 --*/
  36. .color5{
  37. background: #e65145 !important;
  38. }
  39. /* ////////////////// switch-1 //////////////// */
  40. /* ////////////////// switch-1 //////////////// */
  41. .onoffswitch {
  42. position: relative;
  43. width: 30px;
  44. -webkit-user-select:none;
  45. -moz-user-select:none;
  46. -ms-user-select: none;
  47. }
  48. .onoffswitch-checkbox {
  49. display: none;
  50. }
  51. .onoffswitch-label {
  52. display: block;
  53. overflow: hidden;
  54. cursor: pointer;
  55. height: 15px;
  56. padding: 0;
  57. line-height: 16px;
  58. border: 1px solid #CCCCCC;
  59. border-radius: 15px;
  60. background-color: #FFFFFF;
  61. transition: background-color 0.3s ease-in;
  62. }
  63. .onoffswitch-label:before {
  64. content: "";
  65. height: 16px;
  66. display: block;
  67. width: 17px;
  68. margin: 0px;
  69. background: #FFFFFF;
  70. position: absolute; top: 0; bottom: 0;
  71. inset-inline-end: 13px;
  72. border: 1px solid #CCCCCC; border-radius: 15px;
  73. transition: all 0.3s ease-in 0s;
  74. }
  75. .onoffswitch-checkbox:checked + .onoffswitch-label {
  76. background-color: #0fa751;
  77. }
  78. .onoffswitch-checkbox:checked + .onoffswitch-label, .onoffswitch-checkbox:checked + .onoffswitch-label:before {
  79. border-color: #0fa751;
  80. }
  81. .onoffswitch-checkbox:checked + .onoffswitch-label:before {
  82. inset-inline-end: 0px;
  83. }
  84. /* ////////////////// switch-2 //////////////// */
  85. .onoffswitch2 {
  86. position: relative;
  87. width: 30px;
  88. -webkit-user-select:none;
  89. -moz-user-select:none;
  90. -ms-user-select: none;
  91. }
  92. .onoffswitch2-checkbox {
  93. display: none;
  94. }
  95. .onoffswitch2-label {
  96. display: block;
  97. overflow: hidden;
  98. cursor: pointer;
  99. height: 15px;
  100. padding: 0;
  101. line-height: 16px;
  102. border: 1px solid #CCCCCC;
  103. border-radius: 15px;
  104. background-color: #FFFFFF;
  105. transition: background-color 0.3s ease-in;
  106. }
  107. .onoffswitch2-label:before {
  108. content: "";
  109. height: 16px;
  110. display: block;
  111. width: 17px;
  112. margin: 0px;
  113. background: #FFFFFF;
  114. position: absolute; top: 0; bottom: 0;
  115. inset-inline-end: 13px;
  116. border: 1px solid #CCCCCC; border-radius: 15px;
  117. transition: all 0.3s ease-in 0s;
  118. }
  119. .onoffswitch2-checkbox:checked + .onoffswitch2-label:before {
  120. inset-inline-end: 0px;
  121. }
  122. /* ////////////////// switch-3 //////////////// */
  123. .onoffswitch3 {
  124. position: relative;
  125. width: 30px;
  126. -webkit-user-select:none;
  127. -moz-user-select:none;
  128. -ms-user-select: none;
  129. }
  130. .onoffswitch3-checkbox {
  131. display: none;
  132. }
  133. .onoffswitch3-label {
  134. display: block;
  135. overflow: hidden;
  136. cursor: pointer;
  137. height: 15px;
  138. padding: 0;
  139. line-height: 16px;
  140. border: 1px solid #CCCCCC;
  141. border-radius: 15px;
  142. background-color: #FFFFFF;
  143. transition: background-color 0.3s ease-in;
  144. }
  145. .onoffswitch3-label:before {
  146. content: "";
  147. height: 16px;
  148. display: block;
  149. width: 17px;
  150. margin: 0px;
  151. background: #FFFFFF;
  152. position: absolute; top: 0; bottom: 0;
  153. inset-inline-end: 13px;
  154. border: 1px solid #CCCCCC; border-radius: 15px;
  155. transition: all 0.3s ease-in 0s;
  156. }
  157. .onoffswitch3-checkbox:checked + .onoffswitch3-label {
  158. background-color: #0fa751;
  159. }
  160. .onoffswitch3-checkbox:checked + .onoffswitch-label3, .onoffswitch3-checkbox:checked + .onoffswitch3-label:before {
  161. border-color: #0fa751;
  162. }
  163. .onoffswitch3-checkbox:checked + .onoffswitch3-label:before {
  164. inset-inline-end: 0px;
  165. }
  166. .switch-toggle{
  167. padding:3px 0;
  168. font-size: 16px;
  169. }
  170. .full-width .container{
  171. max-width:inherit !important;
  172. width:95% !important;
  173. transition:all 0.5s ease;
  174. }
  175. .switch_section {
  176. width: 100%;
  177. height: auto;
  178. list-style: none;
  179. font-size: 1.1em;
  180. margin: 0 auto;
  181. padding: 0px 22px;
  182. }
  183. .dark-mode .demo_changer i{
  184. color:#000;
  185. }
  186. .demo_changer .switch_section p {
  187. margin: 0px;
  188. }