iPhoneCheckboxes.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .iPhoneCheckContainer {
  2. position: relative;
  3. height: 17px;
  4. cursor: pointer;
  5. overflow: hidden; display:inline-block; padding:0; }
  6. .iPhoneCheckContainer input {
  7. position: absolute;
  8. top: 5px;
  9. left: 30px;
  10. opacity: 0;
  11. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  12. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); }
  13. .iPhoneCheckContainer label {
  14. white-space: nowrap;
  15. font-size: 8px;
  16. line-height: 0px;
  17. font-weight: bold;
  18. text-transform: uppercase;
  19. cursor: pointer;
  20. display: block;
  21. height: 17px;
  22. position: absolute;
  23. width: auto;
  24. top: 0;
  25. padding-top: 0px;
  26. overflow: hidden; }
  27. .iPhoneCheckContainer, .iPhoneCheckContainer label {
  28. user-select: none;
  29. -moz-user-select: none;
  30. -khtml-user-select: none; }
  31. .iPhoneCheckDisabled {
  32. opacity: 0.5;
  33. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
  34. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); }
  35. label.iPhoneCheckLabelOn {
  36. color: white;
  37. background: url('on.png') no-repeat;
  38. text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
  39. padding-top: 0px; width:32px;}
  40. label.iPhoneCheckLabelOn span {
  41. padding-left: 8px; position:relative; top:-1px;}
  42. label.iPhoneCheckLabelOff {
  43. color: #8b8b8b;
  44. background: url('off.png') no-repeat right 0;
  45. text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.6);
  46. text-align: right;
  47. right: 6px; width:32px; }
  48. label.iPhoneCheckLabelOff span {
  49. padding-right: 8px; position:relative; top:-1px;}
  50. .iPhoneCheckHandle {
  51. display: block;
  52. height: 17px;
  53. cursor: pointer;
  54. position: absolute;
  55. top: 2px;
  56. left: 0;
  57. width: 13px;
  58. background: url('slider.png') no-repeat;
  59. }