switchbutton.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .switchbutton {
  2. text-decoration: none;
  3. display: inline-block;
  4. overflow: hidden;
  5. vertical-align: middle;
  6. margin: 0;
  7. padding: 0;
  8. cursor: pointer;
  9. background: #555;
  10. border: 1px solid #555;
  11. -moz-border-radius: 5px 5px 5px 5px;
  12. -webkit-border-radius: 5px 5px 5px 5px;
  13. border-radius: 5px 5px 5px 5px;
  14. }
  15. .switchbutton-inner {
  16. display: inline-block;
  17. overflow: hidden;
  18. position: relative;
  19. top: -1px;
  20. left: -1px;
  21. }
  22. .switchbutton-on, .switchbutton-off, .switchbutton-handle {
  23. display: inline-block;
  24. text-align: center;
  25. height: 100%;
  26. float: left;
  27. font-size: 12px;
  28. -moz-border-radius: 5px 5px 5px 5px;
  29. -webkit-border-radius: 5px 5px 5px 5px;
  30. border-radius: 5px 5px 5px 5px;
  31. }
  32. .switchbutton-on {
  33. background: #0052A3;
  34. color: #fff;
  35. }
  36. .switchbutton-off {
  37. background-color: #666;
  38. color: #fff;
  39. }
  40. .switchbutton-on, .switchbutton-reversed .switchbutton-off {
  41. -moz-border-radius: 5px 0 0 5px;
  42. -webkit-border-radius: 5px 0 0 5px;
  43. border-radius: 5px 0 0 5px;
  44. }
  45. .switchbutton-off, .switchbutton-reversed .switchbutton-on {
  46. -moz-border-radius: 0 5px 5px 0;
  47. -webkit-border-radius: 0 5px 5px 0;
  48. border-radius: 0 5px 5px 0;
  49. }
  50. .switchbutton-handle {
  51. position: absolute;
  52. top: 0;
  53. left: 50%;
  54. background-color: #666;
  55. color: #fff;
  56. border: 1px solid #555;
  57. -moz-box-shadow: 0 0 3px 0 #555;
  58. -webkit-box-shadow: 0 0 3px 0 #555;
  59. box-shadow: 0 0 3px 0 #555;
  60. }
  61. .switchbutton-value {
  62. position: absolute;
  63. top: 0;
  64. left: -5000px;
  65. }
  66. .switchbutton-disabled {
  67. opacity: 0.5;
  68. filter: alpha(opacity = 50);
  69. }
  70. .switchbutton-disabled, .switchbutton-readonly {
  71. cursor: default;
  72. }