button.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*
  2. * Ext JS Library 2.0.2
  3. * Copyright(c) 2006-2008, Ext JS, LLC.
  4. * licensing@extjs.com
  5. *
  6. * http://extjs.com/license
  7. */
  8. .x-btn{
  9. font:normal 11px tahoma, verdana, helvetica;
  10. cursor:pointer;
  11. white-space: nowrap;
  12. }
  13. .x-btn button{
  14. border:0 none;
  15. background:transparent;
  16. font:normal 11px tahoma,verdana,helvetica;
  17. padding-left:3px;
  18. padding-right:3px;
  19. cursor:pointer;
  20. margin:0;
  21. overflow:visible;
  22. width:auto;
  23. -moz-outline:0 none;
  24. outline:0 none;
  25. }
  26. * html .ext-ie .x-btn button {
  27. width:1px;
  28. }
  29. .ext-gecko .x-btn button {
  30. padding-left:0;
  31. padding-right:0;
  32. }
  33. .ext-ie .x-btn button {
  34. padding-top:2px;
  35. }
  36. /*
  37. Predefined css class for buttons with only icon. Add this class (x-btn-icon) and a class with a background-image
  38. to your button for a button with just an icon.
  39. e.g.
  40. .my-class .x-btn-text { background-image: url(foo.gif); }
  41. */
  42. .x-btn-icon .x-btn-center .x-btn-text{
  43. background-position: center;
  44. background-repeat: no-repeat;
  45. height: 16px;
  46. width: 16px;
  47. cursor:pointer;
  48. white-space: nowrap;
  49. padding:0;
  50. }
  51. .x-btn-icon .x-btn-center{
  52. padding:1px;
  53. }
  54. .x-btn em {
  55. font-style:normal;
  56. font-weight:normal;
  57. }
  58. /*
  59. Button class for icon and text. Add this class (x-btn-text-icon) and a class with a background-image
  60. to your button for both text and icon.
  61. */
  62. .x-btn-text-icon .x-btn-center .x-btn-text{
  63. background-position: 0 2px;
  64. background-repeat: no-repeat;
  65. padding-left:18px;
  66. padding-top:3px;
  67. padding-bottom:2px;
  68. padding-right:0;
  69. }
  70. .x-btn-left, .x-btn-right{
  71. font-size:1px;
  72. line-height:1px;
  73. }
  74. .x-btn-left{
  75. width:3px;
  76. height:21px;
  77. background:url(../images/default/button/btn-sprite.gif) no-repeat 0 0;
  78. }
  79. .x-btn-right{
  80. width:3px;
  81. height:21px;
  82. background:url(../images/default/button/btn-sprite.gif) no-repeat 0 -21px;
  83. }
  84. .x-btn-left i, .x-btn-right i{
  85. display:block;
  86. width:3px;
  87. overflow:hidden;
  88. font-size:1px;
  89. line-height:1px;
  90. }
  91. .x-btn-center{
  92. background:url(../images/default/button/btn-sprite.gif) repeat-x 0 -42px;
  93. vertical-align: middle;
  94. text-align:center;
  95. padding:0 5px;
  96. cursor:pointer;
  97. white-space:nowrap;
  98. }
  99. .x-btn-over .x-btn-left{
  100. background-position:0 -63px;
  101. }
  102. .x-btn-over .x-btn-right{
  103. background-position:0 -84px;
  104. }
  105. .x-btn-over .x-btn-center{
  106. background-position:0 -105px;
  107. }
  108. .x-btn-click .x-btn-center, .x-btn-menu-active .x-btn-center{
  109. background-position:0 -126px;
  110. }
  111. .x-btn-disabled *{
  112. color:gray !important;
  113. cursor:default !important;
  114. }
  115. .x-btn-menu-text-wrap .x-btn-center {
  116. padding:0 3px;
  117. }
  118. .ext-gecko .x-btn-menu-text-wrap .x-btn-center {
  119. padding:0 1px;
  120. }
  121. .x-btn-menu-arrow-wrap .x-btn-center {
  122. padding:0;
  123. }
  124. .x-btn-menu-arrow-wrap .x-btn-center button {
  125. width:12px !important;
  126. height:21px;
  127. padding:0 !important;
  128. display:block;
  129. background:transparent url(../images/default/button/btn-arrow.gif) no-repeat left 3px;
  130. }
  131. .x-btn-with-menu .x-btn-center {
  132. padding-right:2px !important;
  133. }
  134. .x-btn-with-menu .x-btn-center em {
  135. display:block;
  136. background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat right 0;
  137. padding-right:10px;
  138. }
  139. .x-btn-text-icon .x-btn-with-menu .x-btn-center em {
  140. display:block;
  141. background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat right 3px;
  142. padding-right:10px;
  143. }
  144. /* Toggle button styles */
  145. .x-btn-pressed .x-btn-left{
  146. background: url(../images/default/button/btn-sprite.gif) no-repeat 0 -63px;
  147. }
  148. .x-btn-pressed .x-btn-right{
  149. background: url(../images/default/button/btn-sprite.gif) no-repeat 0 -84px;
  150. }
  151. .x-btn-pressed .x-btn-center{
  152. background: url(../images/default/button/btn-sprite.gif) repeat-x 0 -126px;
  153. }