tristate.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /* TriStateCheckBox
  2. *
  3. * Styling TriStateCheckBox mainly includes:
  4. *
  5. * 1. Containers
  6. * .dojoxTriStateCheckBox|.dojoxTriStateCheckBoxIcon - for border, padding, width|height and background image
  7. *
  8. * 2. Checked state
  9. * .dojoxTriStateCheckBoxChecked - for checked background-color|image
  10. * .dojoxTriStateCheckBoxMixed - for mixed background-color|image
  11. *
  12. * 3. Hover state
  13. * .dojoxTriStateCheckBoxHover|.dojoxTriStateCheckBoxCheckedHover|.dojoxTriStateCheckBoxMixedHover - for background image
  14. *
  15. * 4. Disabled state
  16. * .dojoxTriStateCheckBoxDisabled|.dojoxTriStateCheckBoxCheckedDisabled|.dojoxTriStateCheckBoxMixedDisabled - for background image
  17. */
  18. .tundra .dojoxTriStateCheckBox, .dojoxTriStateCheckBoxIcon {
  19. background-image: url('img/tristate.png');
  20. /* checkbox sprite image */
  21. background-repeat: no-repeat;
  22. width: 30px;
  23. height: 22px !important;
  24. margin: 0 2px 0 0;
  25. padding: 5px 5px 5px 5px;
  26. }
  27. .dj_ie6 .tundra .dojoxTriStateCheckBox, .dj_ie6 .dojoxTriStateCheckBoxIcon {
  28. background-image: url('img/tristate.png');
  29. /* checkbox sprite image */
  30. }
  31. .tundra .dojoxTriStateCheckBox{
  32. /* unchecked */
  33. background-position: -30px;
  34. }
  35. .tundra .dojoxTriStateCheckBoxChecked{
  36. /* checked */
  37. background-position: 0px;
  38. }
  39. .tundra .dojoxTriStateCheckBoxMixed {
  40. /* mixed */
  41. background-position: -90px;
  42. }
  43. .tundra .dojoxTriStateCheckBoxDisabled {
  44. /* disabled and unchecked */
  45. background-position: -30px;
  46. }
  47. .tundra .dojoxTriStateCheckBoxCheckedDisabled {
  48. /* disabled and checked */
  49. background-position: 0px;
  50. }
  51. .tundra .dojoxTriStateCheckBoxMixedDisabled {
  52. /* disabled and mixed */
  53. background-position: -90px;
  54. }
  55. .tundra .dojoxTriStateCheckBoxHover {
  56. /* hovering over and unchecked */
  57. background-position: -60px;
  58. }
  59. .tundra .dojoxTriStateCheckBoxCheckedHover {
  60. /* hovering over and checked */
  61. background-position: 0px;
  62. }
  63. .tundra .dojoxTriStateCheckBoxMixedHover {
  64. /* hovering over and mixed */
  65. background-position: -120px;
  66. }
  67. .dijit_a11y .dojoxTriStateCheckBoxHover .dojoxTriStateCheckBoxInner,
  68. .dijit_a11y .dojoxTriStateCheckBoxFocused .dojoxTriStateCheckBoxInner{
  69. /* focused or hovering over */
  70. border: dashed;
  71. }
  72. .dijit_a11y .dojoxTriStateCheckBoxHover .dojoxTriStateCheckBoxInner,
  73. .dijit_a11y .dojoxTriStateCheckBoxFocused .dojoxTriStateCheckBoxInner{
  74. /* focused or hovering over */
  75. border: solid;
  76. }
  77. .dijit_a11y .dojoxTriStateCheckBoxDisabled .dojoxTriStateCheckBoxInner{
  78. /* focused or hovering over */
  79. opacity: 0.5;
  80. }
  81. .dj_ie .dijit_a11y .dojoxTriStateCheckBoxDisabled .dojoxTriStateCheckBoxInner{
  82. /* disabled */
  83. }
  84. .dojoxTriStateCheckBoxInner{
  85. /* inner text */
  86. visibility: hidden;
  87. display: none;
  88. position: absolute;
  89. text-align: center;
  90. }
  91. .dijit_a11y .dojoxTriStateCheckBoxInner{
  92. /* inner text */
  93. visibility: visible;
  94. display: block;
  95. }
  96. .dojoxTriStateCheckBoxInput {
  97. /* place the actual input on top, but all-but-invisible */
  98. opacity: 0.01;
  99. padding: 0;
  100. margin: 0;
  101. border: 0;
  102. width: 30px;
  103. height: 22px;
  104. background-position:center center;
  105. background-repeat:no-repeat;
  106. }
  107. .dj_ie .dojoxTriStateCheckBoxInput {
  108. filter: alpha(opacity=0);
  109. }