_button.scss2.html 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-button-Button-css_mixin-extjs-button'>/**
  19. </span> * Creates the base structure of an Ext.Button
  20. * @member Ext.button.Button
  21. */
  22. @mixin extjs-button {
  23. .#{$prefix}btn {
  24. display: inline-block;
  25. zoom: 1;
  26. *display: inline;
  27. position: relative;
  28. cursor: pointer;
  29. cursor: hand;
  30. white-space: nowrap;
  31. vertical-align: middle;
  32. * {
  33. cursor: pointer;
  34. cursor: hand;
  35. }
  36. background-repeat: no-repeat;
  37. em {
  38. background-repeat: no-repeat;
  39. // Styles for an anchor button.
  40. a {
  41. text-decoration: none;
  42. display: block;
  43. color: inherit;
  44. // 100% rather than auto for consistency with the button element
  45. width: 100%;
  46. // This is needed for IE7 in strict mode to ensure that the icon element has the correct opacity on a
  47. // disabled link button. It seems only to be needed for buttons that are narrower than their icon
  48. // element
  49. zoom: 1;
  50. }
  51. }
  52. button {
  53. // 100% rather than auto so that IE7 renders file upload and date picker buttons correctly
  54. width: 100%;
  55. display: block;
  56. margin: 0;
  57. padding: 0;
  58. border: 0;
  59. background: none;
  60. outline: 0 none;
  61. overflow: hidden;
  62. vertical-align: bottom;
  63. -webkit-appearance: none;
  64. &amp;::-moz-focus-inner {
  65. border: 0;
  66. padding: 0;
  67. }
  68. }
  69. .#{$prefix}btn-inner {
  70. display: block;
  71. white-space: nowrap;
  72. background-color: transparent;
  73. background-repeat: no-repeat;
  74. background-position: left center;
  75. overflow: hidden;
  76. }
  77. .#{$prefix}btn-left .#{$prefix}btn-inner {
  78. text-align: left;
  79. }
  80. .#{$prefix}btn-center .#{$prefix}btn-inner {
  81. text-align: center;
  82. }
  83. .#{$prefix}btn-right .#{$prefix}btn-inner {
  84. text-align: right;
  85. }
  86. }
  87. .#{$prefix}btn-disabled span {
  88. @include opacity(.5);
  89. .#{$prefix}ie6 &amp;,
  90. .#{$prefix}ie7 &amp; {
  91. filter:none;
  92. }
  93. }
  94. //remove the opacity rule of IE8
  95. .#{$prefix}ie7 .#{$prefix}btn-disabled,
  96. .#{$prefix}ie8 .#{$prefix}btn-disabled {
  97. filter:none;
  98. }
  99. .#{$prefix}ie6 .#{$prefix}btn-disabled,
  100. .#{$prefix}ie7 .#{$prefix}btn-disabled,
  101. .#{$prefix}ie8 .#{$prefix}btn-disabled {
  102. .#{$prefix}btn-icon {
  103. @include opacity(.6);
  104. }
  105. }
  106. @if $include-ie {
  107. /* IE9 shows scrollbars in a button unless this is set */
  108. .#{$prefix}ie9 .#{$prefix}btn button {
  109. overflow: visible!important;
  110. }
  111. * html .#{$prefix}ie {
  112. .#{$prefix}btn button {
  113. width: 1px;
  114. }
  115. }
  116. .#{$prefix}ie .#{$prefix}btn button {
  117. overflow-x: visible; /*prevents extra horiz space in IE*/
  118. vertical-align: baseline; /*IE doesn't like bottom*/
  119. }
  120. .#{$prefix}strict .#{$prefix}ie6,
  121. .#{$prefix}strict .#{$prefix}ie7 {
  122. .#{$prefix}btn .#{$prefix}frame-mc {
  123. height: 100%;
  124. }
  125. }
  126. }
  127. @if not $supports-border-radius or $compile-all {
  128. /* Keep the selector simple &quot;.x-btn .x-frame-mc&quot; is enough to target the center frame of the button table */
  129. .#{$prefix}btn {
  130. .#{$prefix}frame-mc {
  131. vertical-align: middle;
  132. white-space: nowrap;
  133. cursor: pointer;
  134. }
  135. }
  136. /* Only center when all there is is text. Otherwise solo icons get centered. */
  137. .#{$prefix}btn-noicon {
  138. .#{$prefix}frame-mc {
  139. text-align: center;
  140. }
  141. }
  142. }
  143. .#{$prefix}btn-icon-text-left .#{$prefix}btn-icon {
  144. background-position: left center;
  145. }
  146. .#{$prefix}btn-icon-text-right .#{$prefix}btn-icon {
  147. background-position: right center;
  148. }
  149. .#{$prefix}btn-icon-text-top .#{$prefix}btn-icon {
  150. background-position: center top;
  151. }
  152. .#{$prefix}btn-icon-text-bottom .#{$prefix}btn-icon {
  153. background-position: center bottom;
  154. }
  155. .#{$prefix}btn {
  156. button, a {
  157. position: relative;
  158. .#{$prefix}btn-icon {
  159. position: absolute;
  160. background-repeat: no-repeat;
  161. }
  162. }
  163. }
  164. .#{$prefix}btn-arrow-right {
  165. background: transparent no-repeat right center;
  166. padding-right: $button-arrow-size;
  167. .#{$prefix}btn-inner {
  168. padding-right: 0 !important;
  169. }
  170. }
  171. .#{$prefix}toolbar .#{$prefix}btn-arrow-right {
  172. padding-right: $button-toolbar-arrow-size;
  173. }
  174. .#{$prefix}btn-arrow-bottom {
  175. background: transparent no-repeat center bottom;
  176. padding-bottom: $button-arrow-size;
  177. }
  178. .#{$prefix}btn-arrow {
  179. background-image: theme-background-image($theme-name, 'button/arrow.gif');
  180. display: block;
  181. }
  182. //split buttons
  183. .#{$prefix}btn-split-right,
  184. .#{$prefix}btn-over .#{$prefix}btn-split-right {
  185. background: transparent no-repeat right center;
  186. background-image: theme-background-image($theme-name, 'button/s-arrow.gif');
  187. padding-right: $button-split-size !important;
  188. }
  189. .#{$prefix}btn-split-bottom,
  190. .#{$prefix}btn-over .#{$prefix}btn-split-bottom {
  191. background: transparent no-repeat center bottom;
  192. background-image: theme-background-image($theme-name, 'button/s-arrow-b.gif');
  193. padding-bottom: $button-split-size;
  194. }
  195. .#{$prefix}toolbar .#{$prefix}btn-split-right {
  196. background-image: theme-background-image($theme-name, 'button/s-arrow-noline.gif');
  197. padding-right: $button-toolbar-split-size !important;
  198. }
  199. .#{$prefix}toolbar .#{$prefix}btn-split-bottom {
  200. background-image: theme-background-image($theme-name, 'button/s-arrow-b-noline.gif');
  201. }
  202. .#{$prefix}btn-split {
  203. display: block;
  204. }
  205. .#{$prefix}item-disabled,
  206. .#{$prefix}item-disabled * {
  207. cursor: default;
  208. }
  209. .#{$prefix}cycle-fixed-width .#{$prefix}btn-inner {
  210. text-align: inherit;
  211. }
  212. .#{$prefix}btn-over .#{$prefix}btn-split-right { background-image: theme-background-image($theme-name, 'button/s-arrow-o.gif'); }
  213. .#{$prefix}btn-over .#{$prefix}btn-split-bottom { background-image: theme-background-image($theme-name, 'button/s-arrow-bo.gif'); }
  214. @include extjs-button-ui(
  215. /* UI + Scale */
  216. 'default-small',
  217. $button-small-border-radius,
  218. $button-small-border-width,
  219. $button-default-border-color,
  220. $button-default-border-color-over,
  221. $button-default-border-color-focus,
  222. $button-default-border-color-pressed,
  223. $button-default-border-color-disabled,
  224. $button-small-padding,
  225. $button-small-text-padding,
  226. $button-default-background-color,
  227. $button-default-background-color-over,
  228. $button-default-background-color-focus,
  229. $button-default-background-color-pressed,
  230. $button-default-background-color-disabled,
  231. $button-default-background-gradient,
  232. $button-default-background-gradient-over,
  233. $button-default-background-gradient-focus,
  234. $button-default-background-gradient-pressed,
  235. $button-default-background-gradient-disabled,
  236. $button-default-color,
  237. $button-default-color-over,
  238. $button-default-color-focus,
  239. $button-default-color-pressed,
  240. $button-default-color-disabled,
  241. $button-small-font-size,
  242. $button-small-font-size-over,
  243. $button-small-font-size-focus,
  244. $button-small-font-size-pressed,
  245. $button-small-font-size-disabled,
  246. $button-small-font-weight,
  247. $button-small-font-weight-over,
  248. $button-small-font-weight-focus,
  249. $button-small-font-weight-pressed,
  250. $button-small-font-weight-disabled,
  251. $button-small-font-family,
  252. $button-small-font-family-over,
  253. $button-small-font-family-focus,
  254. $button-small-font-family-pressed,
  255. $button-small-font-family-disabled,
  256. $button-small-icon-size
  257. );
  258. @include extjs-button-ui(
  259. 'default-medium',
  260. $button-medium-border-radius,
  261. $button-medium-border-width,
  262. $button-default-border-color,
  263. $button-default-border-color-over,
  264. $button-default-border-color-focus,
  265. $button-default-border-color-pressed,
  266. $button-default-border-color-disabled,
  267. $button-medium-padding,
  268. $button-medium-text-padding,
  269. $button-default-background-color,
  270. $button-default-background-color-over,
  271. $button-default-background-color-focus,
  272. $button-default-background-color-pressed,
  273. $button-default-background-color-disabled,
  274. $button-default-background-gradient,
  275. $button-default-background-gradient-over,
  276. $button-default-background-gradient-focus,
  277. $button-default-background-gradient-pressed,
  278. $button-default-background-gradient-disabled,
  279. $button-default-color,
  280. $button-default-color-over,
  281. $button-default-color-focus,
  282. $button-default-color-pressed,
  283. $button-default-color-disabled,
  284. $button-medium-font-size,
  285. $button-medium-font-size-over,
  286. $button-medium-font-size-focus,
  287. $button-medium-font-size-pressed,
  288. $button-medium-font-size-disabled,
  289. $button-medium-font-weight,
  290. $button-medium-font-weight-over,
  291. $button-medium-font-weight-focus,
  292. $button-medium-font-weight-pressed,
  293. $button-medium-font-weight-disabled,
  294. $button-medium-font-family,
  295. $button-medium-font-family-over,
  296. $button-medium-font-family-focus,
  297. $button-medium-font-family-pressed,
  298. $button-medium-font-family-disabled,
  299. $button-medium-icon-size
  300. );
  301. @include extjs-button-ui(
  302. 'default-large',
  303. $button-large-border-radius,
  304. $button-large-border-width,
  305. $button-default-border-color,
  306. $button-default-border-color-over,
  307. $button-default-border-color-focus,
  308. $button-default-border-color-pressed,
  309. $button-default-border-color-disabled,
  310. $button-large-padding,
  311. $button-large-text-padding,
  312. $button-default-background-color,
  313. $button-default-background-color-over,
  314. $button-default-background-color-focus,
  315. $button-default-background-color-pressed,
  316. $button-default-background-color-disabled,
  317. $button-default-background-gradient,
  318. $button-default-background-gradient-over,
  319. $button-default-background-gradient-focus,
  320. $button-default-background-gradient-pressed,
  321. $button-default-background-gradient-disabled,
  322. $button-default-color,
  323. $button-default-color-over,
  324. $button-default-color-focus,
  325. $button-default-color-pressed,
  326. $button-default-color-disabled,
  327. $button-large-font-size,
  328. $button-large-font-size-over,
  329. $button-large-font-size-focus,
  330. $button-large-font-size-pressed,
  331. $button-large-font-size-disabled,
  332. $button-large-font-weight,
  333. $button-large-font-weight-over,
  334. $button-large-font-weight-focus,
  335. $button-large-font-weight-pressed,
  336. $button-large-font-weight-disabled,
  337. $button-large-font-family,
  338. $button-large-font-family-over,
  339. $button-large-font-family-focus,
  340. $button-large-font-family-pressed,
  341. $button-large-font-family-disabled,
  342. $button-large-icon-size
  343. );
  344. @include extjs-button-ui(
  345. 'default-toolbar-small',
  346. $button-small-border-radius,
  347. $button-small-border-width,
  348. $button-toolbar-border-color,
  349. $button-toolbar-border-color-over,
  350. $button-toolbar-border-color-focus,
  351. $button-toolbar-border-color-pressed,
  352. $button-toolbar-border-color-disabled,
  353. $button-small-padding,
  354. $button-small-text-padding,
  355. $button-toolbar-background-color,
  356. $button-toolbar-background-color-over,
  357. $button-toolbar-background-color-focus,
  358. $button-toolbar-background-color-pressed,
  359. $button-toolbar-background-color-disabled,
  360. $button-toolbar-background-gradient,
  361. $button-toolbar-background-gradient-over,
  362. $button-toolbar-background-gradient-focus,
  363. $button-toolbar-background-gradient-pressed,
  364. $button-toolbar-background-gradient-disabled,
  365. $button-toolbar-color,
  366. $button-toolbar-color-over,
  367. $button-toolbar-color-focus,
  368. $button-toolbar-color-pressed,
  369. $button-toolbar-color-disabled,
  370. $button-small-font-size,
  371. $button-small-font-size-over,
  372. $button-small-font-size-focus,
  373. $button-small-font-size-pressed,
  374. $button-small-font-size-disabled,
  375. $button-small-font-weight,
  376. $button-small-font-weight-over,
  377. $button-small-font-weight-focus,
  378. $button-small-font-weight-pressed,
  379. $button-small-font-weight-disabled,
  380. $button-small-font-family,
  381. $button-small-font-family-over,
  382. $button-small-font-family-focus,
  383. $button-small-font-family-pressed,
  384. $button-small-font-family-disabled,
  385. $button-small-icon-size
  386. );
  387. @include extjs-button-ui(
  388. 'default-toolbar-medium',
  389. $button-medium-border-radius,
  390. $button-medium-border-width,
  391. $button-toolbar-border-color,
  392. $button-toolbar-border-color-over,
  393. $button-toolbar-border-color-focus,
  394. $button-toolbar-border-color-pressed,
  395. $button-toolbar-border-color-disabled,
  396. $button-medium-padding,
  397. $button-medium-text-padding,
  398. $button-toolbar-background-color,
  399. $button-toolbar-background-color-over,
  400. $button-toolbar-background-color-focus,
  401. $button-toolbar-background-color-pressed,
  402. $button-toolbar-background-color-disabled,
  403. $button-toolbar-background-gradient,
  404. $button-toolbar-background-gradient-over,
  405. $button-toolbar-background-gradient-focus,
  406. $button-toolbar-background-gradient-pressed,
  407. $button-toolbar-background-gradient-disabled,
  408. $button-toolbar-color,
  409. $button-toolbar-color-over,
  410. $button-toolbar-color-focus,
  411. $button-toolbar-color-pressed,
  412. $button-toolbar-color-disabled,
  413. $button-medium-font-size,
  414. $button-medium-font-size-over,
  415. $button-medium-font-size-focus,
  416. $button-medium-font-size-pressed,
  417. $button-medium-font-size-disabled,
  418. $button-medium-font-weight,
  419. $button-medium-font-weight-over,
  420. $button-medium-font-weight-focus,
  421. $button-medium-font-weight-pressed,
  422. $button-medium-font-weight-disabled,
  423. $button-medium-font-family,
  424. $button-medium-font-family-over,
  425. $button-medium-font-family-focus,
  426. $button-medium-font-family-pressed,
  427. $button-medium-font-family-disabled,
  428. $button-medium-icon-size
  429. );
  430. @include extjs-button-ui(
  431. 'default-toolbar-large',
  432. $button-large-border-radius,
  433. $button-large-border-width,
  434. $button-toolbar-border-color,
  435. $button-toolbar-border-color-over,
  436. $button-toolbar-border-color-focus,
  437. $button-toolbar-border-color-pressed,
  438. $button-toolbar-border-color-disabled,
  439. $button-large-padding,
  440. $button-large-text-padding,
  441. $button-toolbar-background-color,
  442. $button-toolbar-background-color-over,
  443. $button-toolbar-background-color-focus,
  444. $button-toolbar-background-color-pressed,
  445. $button-toolbar-background-color-disabled,
  446. $button-toolbar-background-gradient,
  447. $button-toolbar-background-gradient-over,
  448. $button-toolbar-background-gradient-focus,
  449. $button-toolbar-background-gradient-pressed,
  450. $button-toolbar-background-gradient-disabled,
  451. $button-toolbar-color,
  452. $button-toolbar-color-over,
  453. $button-toolbar-color-focus,
  454. $button-toolbar-color-pressed,
  455. $button-toolbar-color-disabled,
  456. $button-large-font-size,
  457. $button-large-font-size-over,
  458. $button-large-font-size-focus,
  459. $button-large-font-size-pressed,
  460. $button-large-font-size-disabled,
  461. $button-large-font-weight,
  462. $button-large-font-weight-over,
  463. $button-large-font-weight-focus,
  464. $button-large-font-weight-pressed,
  465. $button-large-font-weight-disabled,
  466. $button-large-font-family,
  467. $button-large-font-family-over,
  468. $button-large-font-family-focus,
  469. $button-large-font-family-pressed,
  470. $button-large-font-family-disabled,
  471. $button-large-icon-size
  472. );
  473. .#{$prefix}btn-default-toolbar-small-disabled,
  474. .#{$prefix}btn-default-toolbar-medium-disabled,
  475. .#{$prefix}btn-default-toolbar-large-disabled {
  476. border-color: transparent;
  477. background-image: none;
  478. background: transparent;
  479. }
  480. }
  481. <span id='Ext-button-Button-css_mixin-extjs-button-ui'>/**
  482. </span> * Creates a visual theme of an Ext.Button
  483. * @member Ext.button.Button
  484. */
  485. @mixin extjs-button-ui(
  486. $ui,
  487. $border-radius: 0px,
  488. $border-width: 0px,
  489. $border-color: null,
  490. $border-color-over: null,
  491. $border-color-focus: null,
  492. $border-color-pressed: null,
  493. $border-color-disabled: null,
  494. $padding: null,
  495. $text-padding: null,
  496. $background-color: null,
  497. $background-color-over: null,
  498. $background-color-focus: null,
  499. $background-color-pressed: null,
  500. $background-color-disabled: null,
  501. $background-gradient: null,
  502. $background-gradient-over: null,
  503. $background-gradient-focus: null,
  504. $background-gradient-pressed: null,
  505. $background-gradient-disabled: null,
  506. $color: null,
  507. $color-over: null,
  508. $color-focus: null,
  509. $color-pressed: null,
  510. $color-disabled: null,
  511. $font-size: null,
  512. $font-size-over: null,
  513. $font-size-focus: null,
  514. $font-size-pressed: null,
  515. $font-size-disabled: null,
  516. $font-weight: null,
  517. $font-weight-over: null,
  518. $font-weight-focus: null,
  519. $font-weight-pressed: null,
  520. $font-weight-disabled: null,
  521. $font-family: null,
  522. $font-family-over: null,
  523. $font-family-focus: null,
  524. $font-family-pressed: null,
  525. $font-family-disabled: null,
  526. $icon-size: null
  527. ) {
  528. .#{$prefix}btn-#{$ui} {
  529. border-color: $border-color;
  530. }
  531. @include x-frame('btn', $ui, $border-radius, $border-width, $padding, $background-color, $background-gradient, true);
  532. .#{$prefix}btn-#{$ui} .#{$prefix}btn-inner {
  533. font-size: $font-size;
  534. font-weight: $font-weight;
  535. font-family: $font-family;
  536. color: $color;
  537. background-repeat: no-repeat;
  538. padding: 0 $text-padding;
  539. }
  540. .#{$prefix}btn-#{$ui}-icon,
  541. .#{$prefix}btn-#{$ui}-noicon {
  542. button,
  543. a,
  544. .#{$prefix}btn-inner {
  545. height: $icon-size;
  546. line-height: $icon-size;
  547. }
  548. }
  549. //icons
  550. .#{$prefix}btn-#{$ui}-icon {
  551. button,
  552. a {
  553. padding: 0;
  554. }
  555. .#{$prefix}btn-inner {
  556. /* even though there is no text we set a width and padding as buttons shrink-wrap around this element */
  557. width: $icon-size;
  558. padding: 0;
  559. }
  560. .#{$prefix}btn-icon {
  561. width: $icon-size;
  562. height: $icon-size;
  563. top: 0;
  564. left: 0;
  565. bottom: 0;
  566. right: 0;
  567. }
  568. }
  569. .#{$prefix}btn-#{$ui}-icon-text-left {
  570. button,
  571. a {
  572. height: $icon-size;
  573. }
  574. .#{$prefix}btn-inner {
  575. height: $icon-size;
  576. line-height: $icon-size;
  577. padding-left: $icon-size + 4px;
  578. }
  579. .#{$prefix}btn-icon {
  580. width: $icon-size;
  581. height: auto;
  582. top: 0;
  583. left: 0;
  584. bottom: 0;
  585. right: auto;
  586. .#{$prefix}ie6 &amp;,
  587. .#{$prefix}quirks &amp; {
  588. height: $icon-size;
  589. }
  590. }
  591. }
  592. .#{$prefix}btn-#{$ui}-icon-text-right {
  593. button,
  594. a {
  595. height: $icon-size;
  596. }
  597. .#{$prefix}btn-inner {
  598. height: $icon-size;
  599. line-height: $icon-size;
  600. padding-right: $icon-size + 4px !important;
  601. }
  602. .#{$prefix}btn-icon {
  603. width: $icon-size;
  604. height: auto;
  605. top: 0;
  606. left: auto;
  607. bottom: 0;
  608. right: 0;
  609. .#{$prefix}ie6 &amp;,
  610. .#{$prefix}quirks &amp; {
  611. height: $icon-size;
  612. }
  613. }
  614. }
  615. .#{$prefix}btn-#{$ui}-icon-text-top {
  616. .#{$prefix}btn-inner {
  617. padding-top: $icon-size + 4px;
  618. }
  619. .#{$prefix}btn-icon {
  620. width: auto;
  621. height: $icon-size;
  622. top: 0;
  623. left: 0;
  624. bottom: auto;
  625. right: 0;
  626. .#{$prefix}ie6 &amp;,
  627. .#{$prefix}quirks .#{$prefix}ie &amp; {
  628. width: $icon-size;
  629. }
  630. }
  631. }
  632. .#{$prefix}btn-#{$ui}-icon-text-bottom {
  633. .#{$prefix}btn-inner {
  634. padding-bottom: $icon-size + 4px;
  635. }
  636. .#{$prefix}btn-icon {
  637. width: auto;
  638. height: $icon-size;
  639. top: auto;
  640. left: 0;
  641. bottom: 0;
  642. right: 0;
  643. .#{$prefix}ie6 &amp;,
  644. .#{$prefix}quirks .#{$prefix}ie &amp; {
  645. width: $icon-size;
  646. }
  647. }
  648. }
  649. .#{$prefix}btn-#{$ui}-over {
  650. @if $border-color-over != $border-color {
  651. border-color: $border-color-over;
  652. }
  653. @if $background-color-over != null {
  654. @include background-gradient($background-color-over, $background-gradient-over);
  655. }
  656. .#{$prefix}btn-inner {
  657. @if $color-over != $color {
  658. color: $color-over;
  659. }
  660. @if $font-weight-over != $font-weight {
  661. font-weight: $font-weight-over;
  662. }
  663. @if $font-size-over != $font-size {
  664. font-size: $font-size-over;
  665. }
  666. @if $font-family-over != $font-family {
  667. font-family: $font-family-over;
  668. }
  669. }
  670. }
  671. .#{$prefix}btn-#{$ui}-focus {
  672. @if $border-color-focus != $border-color {
  673. border-color: $border-color-focus;
  674. }
  675. @if $background-color-focus != null {
  676. @include background-gradient($background-color-focus, $background-gradient-focus);
  677. }
  678. .#{$prefix}btn-inner {
  679. @if $color-focus != $color {
  680. color: $color-focus;
  681. }
  682. @if $font-weight-focus != $font-weight {
  683. font-weight: $font-weight-focus;
  684. }
  685. @if $font-size-focus != $font-size {
  686. font-size: $font-size-focus;
  687. }
  688. @if $font-family-focus != $font-family {
  689. font-family: $font-family-focus;
  690. }
  691. }
  692. }
  693. .#{$prefix}btn-#{$ui}-menu-active,
  694. .#{$prefix}btn-#{$ui}-pressed {
  695. @if $border-color-pressed != $border-color {
  696. border-color: $border-color-pressed;
  697. }
  698. @if $background-color-pressed != null {
  699. @include background-gradient($background-color-pressed, $background-gradient-pressed);
  700. }
  701. .#{$prefix}btn-inner {
  702. @if $color-pressed != $color {
  703. color: $color-pressed;
  704. }
  705. @if $font-weight-pressed != $font-weight {
  706. font-weight: $font-weight-pressed;
  707. }
  708. @if $font-size-pressed != $font-size {
  709. font-size: $font-size-pressed;
  710. }
  711. @if $font-family-pressed != $font-family {
  712. font-family: $font-family-pressed;
  713. }
  714. }
  715. }
  716. .#{$prefix}btn-#{$ui}-disabled {
  717. @if $border-color-disabled != $border-color {
  718. border-color: $border-color-disabled;
  719. }
  720. @if $background-color-disabled != null {
  721. @include background-gradient($background-color-disabled, $background-gradient-disabled);
  722. }
  723. .#{$prefix}btn-inner {
  724. @if $color-disabled != $color {
  725. color: $color !important;
  726. }
  727. @if $font-weight-disabled != $font-weight {
  728. font-weight: $font-weight-disabled;
  729. }
  730. @if $font-size-disabled != $font-size {
  731. font-size: $font-size-disabled;
  732. }
  733. @if $font-family-disabled != $font-family {
  734. font-family: $font-family-disabled;
  735. }
  736. }
  737. }
  738. .#{$prefix}ie .#{$prefix}btn-#{$ui}-disabled {
  739. .#{$prefix}btn-inner {
  740. @if $color-disabled != $color {
  741. color: darken($color-disabled, 20) !important;
  742. }
  743. }
  744. }
  745. .#{$prefix}ie6 .#{$prefix}btn-#{$ui}-disabled {
  746. .#{$prefix}btn-inner {
  747. @if $color-disabled != $color {
  748. color: $color-disabled !important;
  749. }
  750. }
  751. }
  752. @if not $supports-border-radius or $compile-all {
  753. .#{$prefix}nbr {
  754. .#{$prefix}btn-#{$ui}-over {
  755. .#{$prefix}frame-tl,
  756. .#{$prefix}frame-bl,
  757. .#{$prefix}frame-tr,
  758. .#{$prefix}frame-br,
  759. .#{$prefix}frame-tc,
  760. .#{$prefix}frame-bc {
  761. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-corners.gif');
  762. }
  763. .#{$prefix}frame-ml,
  764. .#{$prefix}frame-mr {
  765. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-sides.gif');
  766. }
  767. .#{$prefix}frame-mc {
  768. background-color: $background-color-over;
  769. @if $background-gradient-over != null {
  770. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
  771. }
  772. }
  773. }
  774. .#{$prefix}btn-#{$ui}-focus {
  775. .#{$prefix}frame-tl,
  776. .#{$prefix}frame-bl,
  777. .#{$prefix}frame-tr,
  778. .#{$prefix}frame-br,
  779. .#{$prefix}frame-tc,
  780. .#{$prefix}frame-bc {
  781. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-corners.gif');
  782. }
  783. .#{$prefix}frame-ml,
  784. .#{$prefix}frame-mr {
  785. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-sides.gif');
  786. }
  787. .#{$prefix}frame-mc {
  788. background-color: $background-color-focus;
  789. @if $background-gradient-focus != null {
  790. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
  791. }
  792. }
  793. }
  794. .#{$prefix}btn-#{$ui}-menu-active,
  795. .#{$prefix}btn-#{$ui}-pressed {
  796. .#{$prefix}frame-tl,
  797. .#{$prefix}frame-bl,
  798. .#{$prefix}frame-tr,
  799. .#{$prefix}frame-br,
  800. .#{$prefix}frame-tc,
  801. .#{$prefix}frame-bc {
  802. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-corners.gif');
  803. }
  804. .#{$prefix}frame-ml,
  805. .#{$prefix}frame-mr {
  806. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-sides.gif');
  807. }
  808. .#{$prefix}frame-mc {
  809. background-color: $background-color-pressed;
  810. @if $background-gradient-pressed != null {
  811. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
  812. }
  813. }
  814. }
  815. .#{$prefix}btn-#{$ui}-disabled {
  816. .#{$prefix}frame-tl,
  817. .#{$prefix}frame-bl,
  818. .#{$prefix}frame-tr,
  819. .#{$prefix}frame-br,
  820. .#{$prefix}frame-tc,
  821. .#{$prefix}frame-bc {
  822. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-corners.gif');
  823. }
  824. .#{$prefix}frame-ml,
  825. .#{$prefix}frame-mr {
  826. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-sides.gif');
  827. }
  828. .#{$prefix}frame-mc {
  829. background-color: $background-color-disabled;
  830. @if $background-gradient-disabled != null {
  831. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
  832. }
  833. }
  834. }
  835. }
  836. }
  837. @if not $supports-gradients or $compile-all {
  838. @if $background-gradient != null {
  839. .#{$prefix}nlg {
  840. .#{$prefix}btn-#{$ui} {
  841. background-repeat: repeat-x;
  842. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-bg.gif');
  843. }
  844. }
  845. }
  846. @if $background-gradient-over != null {
  847. .#{$prefix}nlg {
  848. .#{$prefix}btn-#{$ui}-over {
  849. background-repeat: repeat-x;
  850. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
  851. }
  852. }
  853. }
  854. @if $background-gradient-focus != null {
  855. .#{$prefix}nlg {
  856. .#{$prefix}btn-#{$ui}-focus {
  857. background-repeat: repeat-x;
  858. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
  859. }
  860. }
  861. }
  862. @if $background-gradient-pressed != null {
  863. .#{$prefix}nlg {
  864. .#{$prefix}btn-#{$ui}-menu-active,
  865. .#{$prefix}btn-#{$ui}-pressed {
  866. background-repeat: repeat-x;
  867. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
  868. }
  869. }
  870. }
  871. @if $background-gradient-disabled != null {
  872. .#{$prefix}nlg {
  873. .#{$prefix}btn-#{$ui}-disabled {
  874. background-repeat: repeat-x;
  875. background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
  876. }
  877. }
  878. }
  879. }
  880. };
  881. </pre>
  882. </body>
  883. </html>