logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

onoff.less (1227B)


  1. .onoff-checkbox {
  2. width:15%;
  3. }
  4. .onoffswitch {
  5. position: relative;
  6. width: 110px;
  7. -webkit-user-select:none;
  8. -moz-user-select:none;
  9. -ms-user-select: none;
  10. }
  11. .onoffswitch-checkbox {
  12. display: none;
  13. }
  14. .onoffswitch-label {
  15. display: block;
  16. overflow: hidden;
  17. cursor: pointer;
  18. border: 2px solid #FFFFFF !important;
  19. border-radius: 50px !important;
  20. }
  21. .onoffswitch-inner {
  22. display: block;
  23. transition: margin 0.3s ease-in 0s;
  24. }
  25. .onoffswitch-inner:before, .onoffswitch-inner:after {
  26. display: block;
  27. float: left;
  28. width: 50%;
  29. height: 30px;
  30. padding: 0;
  31. line-height: 40px;
  32. font-size: 20px;
  33. box-sizing: border-box;
  34. content: "";
  35. background-color: #EEEEEE;
  36. }
  37. .onoffswitch-switch {
  38. display: block;
  39. width: 37px;
  40. background-color: #00CC00;
  41. position: absolute;
  42. top: 0;
  43. bottom: 0;
  44. right: 0px;
  45. border: 2px solid #FFFFFF !important;
  46. border-radius: 50px !important;
  47. transition: all 0.3s ease-in 0s;
  48. }
  49. .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  50. margin-right: 0;
  51. }
  52. .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  53. right: 71px;
  54. background-color: #A1A1A1;
  55. }