button.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. .x-btn{
  16. cursor:pointer;
  17. white-space: nowrap;
  18. }
  19. .x-btn button{
  20. border:0 none;
  21. background-color:transparent;
  22. padding-left:3px;
  23. padding-right:3px;
  24. cursor:pointer;
  25. margin:0;
  26. overflow:visible;
  27. width:auto;
  28. -moz-outline:0 none;
  29. outline:0 none;
  30. }
  31. * html .ext-ie .x-btn button {
  32. width:1px;
  33. }
  34. .ext-gecko .x-btn button, .ext-webkit .x-btn button {
  35. padding-left:0;
  36. padding-right:0;
  37. }
  38. .ext-gecko .x-btn button::-moz-focus-inner {
  39. padding:0;
  40. }
  41. .ext-ie .x-btn button {
  42. padding-top:2px;
  43. }
  44. .x-btn td {
  45. padding:0 !important;
  46. }
  47. .x-btn-text {
  48. cursor:pointer;
  49. white-space: nowrap;
  50. padding:0;
  51. }
  52. /* icon placement and sizing styles */
  53. /* Only text */
  54. .x-btn-noicon .x-btn-small .x-btn-text{
  55. height: 16px;
  56. }
  57. .x-btn-noicon .x-btn-medium .x-btn-text{
  58. height: 24px;
  59. }
  60. .x-btn-noicon .x-btn-large .x-btn-text{
  61. height: 32px;
  62. }
  63. /* Only icons */
  64. .x-btn-icon .x-btn-text{
  65. background-position: center;
  66. background-repeat: no-repeat;
  67. }
  68. .x-btn-icon .x-btn-small .x-btn-text{
  69. height: 16px;
  70. width: 16px;
  71. }
  72. .x-btn-icon .x-btn-medium .x-btn-text{
  73. height: 24px;
  74. width: 24px;
  75. }
  76. .x-btn-icon .x-btn-large .x-btn-text{
  77. height: 32px;
  78. width: 32px;
  79. }
  80. /* Icons and text */
  81. /* left */
  82. .x-btn-text-icon .x-btn-icon-small-left .x-btn-text{
  83. background-position: 0 center;
  84. background-repeat: no-repeat;
  85. padding-left:18px;
  86. height:16px;
  87. }
  88. .x-btn-text-icon .x-btn-icon-medium-left .x-btn-text{
  89. background-position: 0 center;
  90. background-repeat: no-repeat;
  91. padding-left:26px;
  92. height:24px;
  93. }
  94. .x-btn-text-icon .x-btn-icon-large-left .x-btn-text{
  95. background-position: 0 center;
  96. background-repeat: no-repeat;
  97. padding-left:34px;
  98. height:32px;
  99. }
  100. /* top */
  101. .x-btn-text-icon .x-btn-icon-small-top .x-btn-text{
  102. background-position: center 0;
  103. background-repeat: no-repeat;
  104. padding-top:18px;
  105. }
  106. .x-btn-text-icon .x-btn-icon-medium-top .x-btn-text{
  107. background-position: center 0;
  108. background-repeat: no-repeat;
  109. padding-top:26px;
  110. }
  111. .x-btn-text-icon .x-btn-icon-large-top .x-btn-text{
  112. background-position: center 0;
  113. background-repeat: no-repeat;
  114. padding-top:34px;
  115. }
  116. /* right */
  117. .x-btn-text-icon .x-btn-icon-small-right .x-btn-text{
  118. background-position: right center;
  119. background-repeat: no-repeat;
  120. padding-right:18px;
  121. height:16px;
  122. }
  123. .x-btn-text-icon .x-btn-icon-medium-right .x-btn-text{
  124. background-position: right center;
  125. background-repeat: no-repeat;
  126. padding-right:26px;
  127. height:24px;
  128. }
  129. .x-btn-text-icon .x-btn-icon-large-right .x-btn-text{
  130. background-position: right center;
  131. background-repeat: no-repeat;
  132. padding-right:34px;
  133. height:32px;
  134. }
  135. /* bottom */
  136. .x-btn-text-icon .x-btn-icon-small-bottom .x-btn-text{
  137. background-position: center bottom;
  138. background-repeat: no-repeat;
  139. padding-bottom:18px;
  140. }
  141. .x-btn-text-icon .x-btn-icon-medium-bottom .x-btn-text{
  142. background-position: center bottom;
  143. background-repeat: no-repeat;
  144. padding-bottom:26px;
  145. }
  146. .x-btn-text-icon .x-btn-icon-large-bottom .x-btn-text{
  147. background-position: center bottom;
  148. background-repeat: no-repeat;
  149. padding-bottom:34px;
  150. }
  151. /* background positioning */
  152. .x-btn-tr i, .x-btn-tl i, .x-btn-mr i, .x-btn-ml i, .x-btn-br i, .x-btn-bl i{
  153. font-size:1px;
  154. line-height:1px;
  155. width:3px;
  156. display:block;
  157. overflow:hidden;
  158. }
  159. .x-btn-tr i, .x-btn-tl i, .x-btn-br i, .x-btn-bl i{
  160. height:3px;
  161. }
  162. .x-btn-tl{
  163. width:3px;
  164. height:3px;
  165. background:no-repeat 0 0;
  166. }
  167. .x-btn-tr{
  168. width:3px;
  169. height:3px;
  170. background:no-repeat -3px 0;
  171. }
  172. .x-btn-tc{
  173. height:3px;
  174. background:repeat-x 0 -6px;
  175. }
  176. .x-btn-ml{
  177. width:3px;
  178. background:no-repeat 0 -24px;
  179. }
  180. .x-btn-mr{
  181. width:3px;
  182. background:no-repeat -3px -24px;
  183. }
  184. .x-btn-mc{
  185. background:repeat-x 0 -1096px;
  186. vertical-align: middle;
  187. text-align:center;
  188. padding:0 5px;
  189. cursor:pointer;
  190. white-space:nowrap;
  191. }
  192. /* Fixes an issue with the button height */
  193. .ext-strict .ext-ie6 .x-btn-mc, .ext-strict .ext-ie7 .x-btn-mc {
  194. height: 100%;
  195. }
  196. .x-btn-bl{
  197. width:3px;
  198. height:3px;
  199. background:no-repeat 0 -3px;
  200. }
  201. .x-btn-br{
  202. width:3px;
  203. height:3px;
  204. background:no-repeat -3px -3px;
  205. }
  206. .x-btn-bc{
  207. height:3px;
  208. background:repeat-x 0 -15px;
  209. }
  210. .x-btn-over .x-btn-tl{
  211. background-position: -6px 0;
  212. }
  213. .x-btn-over .x-btn-tr{
  214. background-position: -9px 0;
  215. }
  216. .x-btn-over .x-btn-tc{
  217. background-position: 0 -9px;
  218. }
  219. .x-btn-over .x-btn-ml{
  220. background-position: -6px -24px;
  221. }
  222. .x-btn-over .x-btn-mr{
  223. background-position: -9px -24px;
  224. }
  225. .x-btn-over .x-btn-mc{
  226. background-position: 0 -2168px;
  227. }
  228. .x-btn-over .x-btn-bl{
  229. background-position: -6px -3px;
  230. }
  231. .x-btn-over .x-btn-br{
  232. background-position: -9px -3px;
  233. }
  234. .x-btn-over .x-btn-bc{
  235. background-position: 0 -18px;
  236. }
  237. .x-btn-click .x-btn-tl, .x-btn-menu-active .x-btn-tl, .x-btn-pressed .x-btn-tl{
  238. background-position: -12px 0;
  239. }
  240. .x-btn-click .x-btn-tr, .x-btn-menu-active .x-btn-tr, .x-btn-pressed .x-btn-tr{
  241. background-position: -15px 0;
  242. }
  243. .x-btn-click .x-btn-tc, .x-btn-menu-active .x-btn-tc, .x-btn-pressed .x-btn-tc{
  244. background-position: 0 -12px;
  245. }
  246. .x-btn-click .x-btn-ml, .x-btn-menu-active .x-btn-ml, .x-btn-pressed .x-btn-ml{
  247. background-position: -12px -24px;
  248. }
  249. .x-btn-click .x-btn-mr, .x-btn-menu-active .x-btn-mr, .x-btn-pressed .x-btn-mr{
  250. background-position: -15px -24px;
  251. }
  252. .x-btn-click .x-btn-mc, .x-btn-menu-active .x-btn-mc, .x-btn-pressed .x-btn-mc{
  253. background-position: 0 -3240px;
  254. }
  255. .x-btn-click .x-btn-bl, .x-btn-menu-active .x-btn-bl, .x-btn-pressed .x-btn-bl{
  256. background-position: -12px -3px;
  257. }
  258. .x-btn-click .x-btn-br, .x-btn-menu-active .x-btn-br, .x-btn-pressed .x-btn-br{
  259. background-position: -15px -3px;
  260. }
  261. .x-btn-click .x-btn-bc, .x-btn-menu-active .x-btn-bc, .x-btn-pressed .x-btn-bc{
  262. background-position: 0 -21px;
  263. }
  264. .x-btn-disabled *{
  265. cursor:default !important;
  266. }
  267. /* With a menu arrow */
  268. /* right */
  269. .x-btn-mc em.x-btn-arrow {
  270. display:block;
  271. background:transparent no-repeat right center;
  272. padding-right:10px;
  273. }
  274. .x-btn-mc em.x-btn-split {
  275. display:block;
  276. background:transparent no-repeat right center;
  277. padding-right:14px;
  278. }
  279. /* bottom */
  280. .x-btn-mc em.x-btn-arrow-bottom {
  281. display:block;
  282. background:transparent no-repeat center bottom;
  283. padding-bottom:14px;
  284. }
  285. .x-btn-mc em.x-btn-split-bottom {
  286. display:block;
  287. background:transparent no-repeat center bottom;
  288. padding-bottom:14px;
  289. }
  290. /* height adjustment class */
  291. .x-btn-as-arrow .x-btn-mc em {
  292. display:block;
  293. background-color:transparent;
  294. padding-bottom:14px;
  295. }
  296. /* groups */
  297. .x-btn-group {
  298. padding:1px;
  299. }
  300. .x-btn-group-header {
  301. padding:2px;
  302. text-align:center;
  303. }
  304. .x-btn-group-tc {
  305. background: transparent repeat-x 0 0;
  306. overflow:hidden;
  307. }
  308. .x-btn-group-tl {
  309. background: transparent no-repeat 0 0;
  310. padding-left:3px;
  311. zoom:1;
  312. }
  313. .x-btn-group-tr {
  314. background: transparent no-repeat right 0;
  315. zoom:1;
  316. padding-right:3px;
  317. }
  318. .x-btn-group-bc {
  319. background: transparent repeat-x 0 bottom;
  320. zoom:1;
  321. }
  322. .x-btn-group-bc .x-panel-footer {
  323. zoom:1;
  324. }
  325. .x-btn-group-bl {
  326. background: transparent no-repeat 0 bottom;
  327. padding-left:3px;
  328. zoom:1;
  329. }
  330. .x-btn-group-br {
  331. background: transparent no-repeat right bottom;
  332. padding-right:3px;
  333. zoom:1;
  334. }
  335. .x-btn-group-mc {
  336. border:0 none;
  337. padding:1px 0 0 0;
  338. margin:0;
  339. }
  340. .x-btn-group-mc .x-btn-group-body {
  341. background-color:transparent;
  342. border: 0 none;
  343. }
  344. .x-btn-group-ml {
  345. background: transparent repeat-y 0 0;
  346. padding-left:3px;
  347. zoom:1;
  348. }
  349. .x-btn-group-mr {
  350. background: transparent repeat-y right 0;
  351. padding-right:3px;
  352. zoom:1;
  353. }
  354. .x-btn-group-bc .x-btn-group-footer {
  355. padding-bottom:6px;
  356. }
  357. .x-panel-nofooter .x-btn-group-bc {
  358. height:3px;
  359. font-size:0;
  360. line-height:0;
  361. }
  362. .x-btn-group-bwrap {
  363. overflow:hidden;
  364. zoom:1;
  365. }
  366. .x-btn-group-body {
  367. overflow:hidden;
  368. zoom:1;
  369. }
  370. .x-btn-group-notitle .x-btn-group-tc {
  371. background: transparent repeat-x 0 0;
  372. overflow:hidden;
  373. height:2px;
  374. }