ibutton.css 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* begin i-button layout define */
  2. .i-button {
  3. cursor: default;
  4. outline: none;
  5. display: inline-block;
  6. *zoom: 1; *display: inline; /* IE6/7 fake inline-block */
  7. text-align: left;
  8. -moz-user-select: none;
  9. }
  10. .i-button-state {
  11. position: relative;
  12. }
  13. .i-button-disabled {
  14. cursor: default;
  15. }
  16. .i-button .i-button-left,
  17. .i-button .i-button-right {
  18. float: inherit;
  19. float: left;
  20. overflow: hidden;
  21. }
  22. .i-button .i-button-icon {
  23. font-size: 0;
  24. position: absolute;
  25. z-index: 1;
  26. }
  27. /* end i-button layout define */
  28. /*
  29. * CAUTION: IF EXSIT BELOW DEFINITIONS, BE KEEP IN ORDER
  30. * hover, focus, active, disabled
  31. *
  32. * "i-button-default" style class must be defined.
  33. * It is used for iButton className binding and dialog button binding by default.
  34. */
  35. .i-button-default {
  36. cursor: pointer;
  37. }
  38. .i-button-default .i-button-left,
  39. .i-button-default .i-button-right {
  40. height: 25px;
  41. background-image: url("ibutton.gif");
  42. }
  43. .i-button-default .i-button-left {
  44. padding-left: 20px;
  45. background-position: 0 0;
  46. }
  47. .i-button-default .i-button-right {
  48. padding-right: 20px;
  49. background-position: -180px 0;
  50. }
  51. .i-button-default .i-button-left-hover {
  52. background-position: -200px 0;
  53. }
  54. .i-button-default .i-button-right-hover {
  55. background-position: -380px 0;
  56. }
  57. .i-button-default .i-button-left-focus {
  58. background-position: -400px 0;
  59. }
  60. .i-button-default .i-button-right-focus {
  61. background-position: -580px 0;
  62. }
  63. .i-button-default .i-button-left-active {
  64. background-position: -600px 0;
  65. }
  66. .i-button-default .i-button-right-active {
  67. background-position: -780px 0;
  68. }
  69. .i-button-default .i-button-text {
  70. color: #000;
  71. font-size: 12px;
  72. line-height: 17px;
  73. padding-top: 5px;
  74. }
  75. .i-button-default .i-button-text-disabled {
  76. color: #ccc;
  77. }