square.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* iCheck plugin Square skin, black
  2. ----------------------------------- */
  3. .icheckbox_square,
  4. .iradio_square {
  5. display: inline-block;
  6. *display: inline;
  7. vertical-align: middle;
  8. margin: 0;
  9. padding: 0;
  10. width: 22px;
  11. height: 22px;
  12. background: url(square.png) no-repeat;
  13. border: none;
  14. cursor: pointer;
  15. }
  16. .icheckbox_square {
  17. background-position: 0 0;
  18. }
  19. .icheckbox_square.hover {
  20. background-position: -24px 0;
  21. }
  22. .icheckbox_square.checked {
  23. background-position: -48px 0;
  24. }
  25. .icheckbox_square.disabled {
  26. background-position: -72px 0;
  27. cursor: default;
  28. }
  29. .icheckbox_square.checked.disabled {
  30. background-position: -96px 0;
  31. }
  32. .iradio_square {
  33. background-position: -120px 0;
  34. }
  35. .iradio_square.hover {
  36. background-position: -144px 0;
  37. }
  38. .iradio_square.checked {
  39. background-position: -168px 0;
  40. }
  41. .iradio_square.disabled {
  42. background-position: -192px 0;
  43. cursor: default;
  44. }
  45. .iradio_square.checked.disabled {
  46. background-position: -216px 0;
  47. }
  48. /* HiDPI support */
  49. @media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  50. .icheckbox_square,
  51. .iradio_square {
  52. background-image: url(square@2x.png);
  53. -webkit-background-size: 240px 24px;
  54. background-size: 240px 24px;
  55. }
  56. }