Toolbar.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. /**
  2. * @class Ext.toolbar.Toolbar
  3. */
  4. /**
  5. * @var {number}
  6. * The default font-size of Toolbar text
  7. */
  8. $toolbar-font-size: dynamic($font-size);
  9. /**
  10. * @var {color}
  11. * The background-color of the Toolbar
  12. */
  13. $toolbar-background-color: dynamic($base-color);
  14. /**
  15. * @var {string/list}
  16. * The background-gradient of the Toolbar. Can be either the name of a predefined gradient
  17. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  18. */
  19. $toolbar-background-gradient: dynamic('none');
  20. /**
  21. * @var {number}
  22. * The horizontal spacing of Toolbar items
  23. */
  24. $toolbar-horizontal-spacing: dynamic(2px);
  25. /**
  26. * @var {number}
  27. * The vertical spacing of Toolbar items
  28. */
  29. $toolbar-vertical-spacing: dynamic(2px);
  30. /**
  31. * @var {number}
  32. * The horizontal spacing of {@link Ext.panel.Panel#fbar footer} Toolbar items
  33. */
  34. $toolbar-footer-horizontal-spacing: dynamic(6px);
  35. /**
  36. * @var {number}
  37. * The vertical spacing of {@link Ext.panel.Panel#fbar footer} Toolbar items
  38. */
  39. $toolbar-footer-vertical-spacing: dynamic(4px);
  40. /**
  41. * @var {color}
  42. * The background-color of {@link Ext.panel.Panel#fbar footer} Toolbars
  43. */
  44. $toolbar-footer-background-color: dynamic(transparent);
  45. /**
  46. * @var {number}
  47. * The border-width of {@link Ext.panel.Panel#fbar footer} Toolbars
  48. */
  49. $toolbar-footer-border-width: dynamic(0);
  50. /**
  51. * @var {color}
  52. * The border-color of Toolbars
  53. */
  54. $toolbar-border-color: dynamic($base-color);
  55. /**
  56. * @var {number}
  57. * The border-width of Toolbars
  58. */
  59. $toolbar-border-width: dynamic(1px);
  60. /**
  61. * @var {string}
  62. * The border-style of Toolbars
  63. */
  64. $toolbar-border-style: dynamic(solid);
  65. /**
  66. * @var {number}
  67. * The width of Toolbar {@link Ext.toolbar.Spacer Spacers}
  68. */
  69. $toolbar-spacer-width: dynamic(2px);
  70. /**
  71. * @var {color}
  72. * The main border-color of Toolbar {@link Ext.toolbar.Separator Separators}
  73. */
  74. $toolbar-separator-color: dynamic(adjust-color($base-color, $hue: -1deg, $saturation: 100%, $lightness: -4.3%));
  75. /**
  76. * @var {color}
  77. * The highlight border-color of Toolbar {@link Ext.toolbar.Separator Separators}
  78. */
  79. $toolbar-separator-highlight-color: dynamic(#fff);
  80. /**
  81. * @var {number/list}
  82. * The margin of {@link Ext.toolbar.Separator Separators} on a horizontally oriented Toolbar
  83. */
  84. $toolbar-separator-horizontal-margin: dynamic(0 $toolbar-horizontal-spacing 0 0);
  85. /**
  86. * @var {number}
  87. * The height of {@link Ext.toolbar.Separator Separators} on a horizontally oriented Toolbar
  88. */
  89. $toolbar-separator-horizontal-height: dynamic(14px);
  90. /**
  91. * @var {string}
  92. * The border-style of {@link Ext.toolbar.Separator Separators} on a horizontally oriented Toolbar
  93. */
  94. $toolbar-separator-horizontal-border-style: dynamic(solid);
  95. /**
  96. * @var {number}
  97. * The border-width of {@link Ext.toolbar.Separator Separators} on a horizontally oriented Toolbar
  98. */
  99. $toolbar-separator-horizontal-border-width: dynamic(0 1px);
  100. /**
  101. * @var {number/list}
  102. * The margin of {@link Ext.toolbar.Separator Separators} on a vertically oriented Toolbar
  103. */
  104. $toolbar-separator-vertical-margin: dynamic(0 5px $toolbar-vertical-spacing);
  105. /**
  106. * @var {string}
  107. * The border-style of {@link Ext.toolbar.Separator Separators} on a vertically oriented Toolbar
  108. */
  109. $toolbar-separator-vertical-border-style: dynamic(solid none);
  110. /**
  111. * @var {number}
  112. * The border-width of {@link Ext.toolbar.Separator Separators} on a vertically oriented Toolbar
  113. */
  114. $toolbar-separator-vertical-border-width: dynamic(1px 0);
  115. /**
  116. * @var {string}
  117. * The default font-family of Toolbar text
  118. */
  119. $toolbar-text-font-family: dynamic($font-family);
  120. /**
  121. * @var {number}
  122. * The default font-size of Toolbar text
  123. */
  124. $toolbar-text-font-size: dynamic($toolbar-font-size);
  125. /**
  126. * @var {number}
  127. * The default font-size of Toolbar text
  128. */
  129. $toolbar-text-font-weight: dynamic($font-weight);
  130. /**
  131. * @var {color}
  132. * The text-color of Toolbar text
  133. */
  134. $toolbar-text-color: dynamic(mix(desaturate(lighten($base-color, 37), 5), #000, 30));
  135. /**
  136. * @var {number}
  137. * The line-height of Toolbar text
  138. */
  139. $toolbar-text-line-height: dynamic(16px);
  140. /**
  141. * @var {number/list}
  142. * The padding of Toolbar text
  143. */
  144. $toolbar-text-padding: dynamic(0 4px);
  145. /**
  146. * @var {number}
  147. * The width of Toolbar scrollers
  148. */
  149. $toolbar-scroller-width: dynamic(14px);
  150. /**
  151. * @var {number}
  152. * The height of Toolbar scrollers
  153. */
  154. $toolbar-scroller-height: dynamic(22px);
  155. /**
  156. * @var {number}
  157. * The width of scrollers on vertically aligned toolbars
  158. */
  159. $toolbar-scroller-vertical-width: dynamic($toolbar-scroller-height);
  160. /**
  161. * @var {number}
  162. * The height of scrollers on vertically aligned toolbars
  163. */
  164. $toolbar-scroller-vertical-height: dynamic($toolbar-scroller-width);
  165. /**
  166. * @var {color}
  167. * The border-color of Toolbar scroller buttons
  168. */
  169. $toolbar-scroller-border-color: dynamic(#8db2e3);
  170. /**
  171. * @var {number}
  172. * The border-width of Toolbar scroller buttons
  173. */
  174. $toolbar-scroller-border-width: dynamic(0 0 1px);
  175. /**
  176. * @var {color}
  177. * The border-color of scroller buttons on vertically aligned toolbars
  178. */
  179. $toolbar-scroller-vertical-border-color: dynamic($toolbar-scroller-border-color);
  180. /**
  181. * @var {number}
  182. * The border-width of scroller buttons on vertically aligned toolbars
  183. */
  184. $toolbar-scroller-vertical-border-width: dynamic(0);
  185. /**
  186. * @var {number/list}
  187. * The margin of "top" Toolbar scroller buttons
  188. */
  189. $toolbar-scroller-top-margin: dynamic(4px 0);
  190. /**
  191. * @var {number/list}
  192. * The margin of "right" Toolbar scroller buttons
  193. */
  194. $toolbar-scroller-right-margin: dynamic(0 4px);
  195. /**
  196. * @var {number/list}
  197. * The margin of "bottom" Toolbar scroller buttons
  198. */
  199. $toolbar-scroller-bottom-margin: dynamic(4px 0);
  200. /**
  201. * @var {number/list}
  202. * The margin of "left" Toolbar scroller buttons
  203. */
  204. $toolbar-scroller-left-margin: dynamic(0 4px);
  205. /**
  206. * @var {string}
  207. * The cursor of Toolbar scroller buttons
  208. */
  209. $toolbar-scroller-cursor: dynamic(pointer);
  210. /**
  211. * @var {string}
  212. * The cursor of disabled Toolbar scroller buttons
  213. */
  214. $toolbar-scroller-cursor-disabled: dynamic(default);
  215. /**
  216. * @var {number}
  217. * The opacity of Toolbar scroller buttons. Only applicable when
  218. * {@link #$toolbar-classic-scrollers} is `false`.
  219. */
  220. $toolbar-scroller-opacity: dynamic(0.6);
  221. /**
  222. * @var {number}
  223. * The opacity of hovered Toolbar scroller buttons. Only applicable when
  224. * {@link #$toolbar-classic-scrollers} is `false`.
  225. */
  226. $toolbar-scroller-opacity-over: dynamic(0.8);
  227. /**
  228. * @var {number}
  229. * The opacity of pressed Toolbar scroller buttons. Only applicable when
  230. * {@link #$toolbar-classic-scrollers} is `false`.
  231. */
  232. $toolbar-scroller-opacity-pressed: dynamic(1);
  233. /**
  234. * @var {number}
  235. * The opacity of disabled Toolbar scroller buttons.
  236. */
  237. $toolbar-scroller-opacity-disabled: dynamic(0.25);
  238. /**
  239. * @var {color}
  240. * The color to use for toolbar scroller icons when {@link Global_CSS#$enable-font-icons} is `true`.
  241. */
  242. $toolbar-scroller-glyph-color: dynamic($neutral-color);
  243. /**
  244. * @var {number}
  245. * The font size for toolbar scroller icons when {@link Global_CSS#$enable-font-icons} is `true`.
  246. */
  247. $toolbar-scroller-glyph-font-size: dynamic(16px);
  248. /**
  249. * @var {string/list}
  250. * Glyph for the "top" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  251. */
  252. $toolbar-scroller-top-glyph: dynamic($fa-var-chevron-up $toolbar-scroller-glyph-font-size $font-icon-font-family);
  253. /**
  254. * @var {string/list}
  255. * Glyph for the "right" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  256. */
  257. $toolbar-scroller-right-glyph: dynamic($fa-var-chevron-right $toolbar-scroller-glyph-font-size $font-icon-font-family);
  258. /**
  259. * @var {string/list}
  260. * Glyph for the "bottom" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  261. */
  262. $toolbar-scroller-bottom-glyph: dynamic($fa-var-chevron-down $toolbar-scroller-glyph-font-size $font-icon-font-family);
  263. /**
  264. * @var {string/list}
  265. * Glyph for the "left" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  266. */
  267. $toolbar-scroller-left-glyph: dynamic($fa-var-chevron-left $toolbar-scroller-glyph-font-size $font-icon-font-family);
  268. /**
  269. * @var {boolean}
  270. * `true` to use classic-style scroller buttons. When `true` scroller buttons are given their
  271. * hover state by changing their background-position, When `false` scroller buttons are
  272. * given their hover state by applying opacity.
  273. */
  274. $toolbar-classic-scrollers: dynamic(false);
  275. /**
  276. * @var {string}
  277. * The sprite to use for {@link Ext.panel.Tool Tools} on a Toolbar
  278. */
  279. $toolbar-tool-background-image: dynamic('none');
  280. /**
  281. * @var {color}
  282. * The color to use for the Toolbar's tool icons when {@link Global_CSS#$enable-font-icons} is `true`.
  283. */
  284. $toolbar-tool-glyph-color: dynamic($neutral-color);
  285. /**
  286. * @var {color}
  287. * The color to use for the {@link #overflowHandler menu overflow} "more" icon when
  288. * {@link Global_CSS#$enable-font-icons} is `true`.
  289. */
  290. $toolbar-menu-overflow-glyph-color: dynamic($button-toolbar-glyph-color);
  291. /**
  292. * @var {string/list}
  293. * Glyph for the {@link #overflowHandler menu overflow} "more" icon when
  294. * {@link Global_CSS#$enable-font-icons} is `true`.
  295. */
  296. $toolbar-menu-overflow-glyph: dynamic($fa-var-bars $button-small-glyph-font-size $font-icon-font-family);
  297. /**
  298. * @var {boolean}
  299. * True to include the "default" toolbar UI
  300. */
  301. $include-toolbar-default-ui: dynamic($include-default-uis);
  302. /**
  303. * @var {boolean}
  304. * True to include the "footer" toolbar UI
  305. */
  306. $include-toolbar-footer-ui: dynamic($include-default-uis);
  307. /**
  308. * Creates a visual theme for a Toolbar.
  309. * @param {String} $ui
  310. * The name of the UI being created. Can not included spaces or special punctuation
  311. * (used in CSS class names).
  312. *
  313. * @param {color} [$background-color=$toolbar-background-color]
  314. * The background color of the toolbar
  315. *
  316. * @param {string/list} [$background-gradient=$toolbar-background-gradient]
  317. * The background gradient of the toolbar
  318. *
  319. * @param {string/list} [$vertical-spacing=$toolbar-vertical-spacing]
  320. * The vertical spacing of the toolbar's items
  321. *
  322. * @param {string/list} [$horizontal-spacing=$toolbar-horizontal-spacing]
  323. * The horizontal spacing of the toolbar's items
  324. *
  325. * @param {color} [$border-color=$toolbar-border-color]
  326. * The border color of the toolbar
  327. *
  328. * @param {number} [$border-width=$toolbar-border-width]
  329. * The border-width of the toolbar
  330. *
  331. * @param {number} [$border-style=$toolbar-border-style]
  332. * The border-style of the toolbar
  333. *
  334. * @param {number} [$spacer-width=$toolbar-spacer-width]
  335. * The width of the toolbar's {@link Ext.toolbar.Spacer Spacers}
  336. *
  337. * @param {color} [$separator-color=$toolbar-separator-color]
  338. * The main border-color of the toolbar's {@link Ext.toolbar.Separator Separators}
  339. *
  340. * @param {color} [$separator-highlight-color=$toolbar-separator-highlight-color]
  341. * The highlight border-color of the toolbar's {@link Ext.toolbar.Separator Separators}
  342. *
  343. * @param {number/list} [$separator-horizontal-margin=$toolbar-separator-horizontal-margin]
  344. * The margin of {@link Ext.toolbar.Separator Separators} when the toolbar is horizontally aligned
  345. *
  346. * @param {number} [$separator-horizontal-height=$toolbar-separator-horizontal-height]
  347. * The height of {@link Ext.toolbar.Separator Separators} when the toolbar is vertically aligned
  348. *
  349. * @param {string} [$separator-horizontal-border-style=$toolbar-separator-horizontal-border-style]
  350. * The border-style of {@link Ext.toolbar.Separator Separators} when the toolbar is horizontally aligned
  351. *
  352. * @param {number} [$separator-horizontal-border-width=$toolbar-separator-horizontal-border-width]
  353. * The border-width of {@link Ext.toolbar.Separator Separators} when the toolbar is horizontally aligned
  354. *
  355. * @param {number/list} [$separator-vertical-margin=$toolbar-separator-vertical-margin]
  356. * The margin of {@link Ext.toolbar.Separator Separators} when the toolbar is vertically aligned
  357. *
  358. * @param {string} [$separator-vertical-border-style=$toolbar-separator-vertical-border-style]
  359. * The border-style of {@link Ext.toolbar.Separator Separators} when the toolbar is vertically aligned
  360. *
  361. * @param {number} [$separator-vertical-border-width=$toolbar-separator-vertical-border-width]
  362. * The border-width of {@link Ext.toolbar.Separator Separators} when the toolbar is vertically aligned
  363. *
  364. * @param {string} [$text-font-family=$toolbar-text-font-family]
  365. * The default font-family of the toolbar's text items
  366. *
  367. * @param {number} [$text-font-size=$toolbar-text-font-size]
  368. * The default font-size of the toolbar's text items
  369. *
  370. * @param {number} [$text-font-weight=$toolbar-text-font-weight]
  371. * The default font-weight of the toolbar's text items
  372. *
  373. * @param {color} [$text-color=$toolbar-text-color]
  374. * The color of the toolbar's text items
  375. *
  376. * @param {number} [$text-line-height=$toolbar-text-line-height]
  377. * The line-height of the toolbar's text items
  378. *
  379. * @param {number/list} [$text-padding=$toolbar-text-padding]
  380. * The padding of the toolbar's text items
  381. *
  382. * @param {number} [$scroller-width=$toolbar-scroller-width]
  383. * The width of the scroller buttons
  384. *
  385. * @param {number} [$scroller-height=$toolbar-scroller-height]
  386. * The height of the scroller buttons
  387. *
  388. * @param {number} [$scroller-vertical-width=$toolbar-scroller-vertical-width]
  389. * The width of scrollers on vertically aligned toolbars
  390. *
  391. * @param {number} [$scroller-vertical-height=$toolbar-scroller-vertical-height]
  392. * The height of scrollers on vertically aligned toolbars
  393. *
  394. * @param {color} [$scroller-border-color=$toolbar-scroller-border-color]
  395. * The border-color of the scroller buttons
  396. *
  397. * @param {color} [$scroller-border-width=$toolbar-scroller-border-width]
  398. * The border-width of the scroller buttons
  399. *
  400. * @param {color} [$scroller-vertical-border-color=$toolbar-scroller-vertical-border-color]
  401. * The border-color of scroller buttons on vertically aligned toolbars
  402. *
  403. * @param {color} [$scroller-vertical-border-width=$toolbar-scroller-vertical-border-width]
  404. * The border-width of scroller buttons on vertically aligned toolbars
  405. *
  406. * @param {number/list} [$scroller-top-margin=$toolbar-scroller-top-margin]
  407. * The margin of "top" scroller buttons
  408. *
  409. * @param {number/list} [$scroller-right-margin=$toolbar-scroller-right-margin]
  410. * The margin of "right" scroller buttons
  411. *
  412. * @param {number/list} [$scroller-bottom-margin=$toolbar-scroller-bottom-margin]
  413. * The margin of "bottom" scroller buttons
  414. *
  415. * @param {number/list} [$scroller-left-margin=$toolbar-scroller-left-margin]
  416. * The margin of "left" scroller buttons
  417. *
  418. * @param {string} [$scroller-cursor=$toolbar-scroller-cursor]
  419. * The cursor of Toolbar scrollers
  420. *
  421. * @param {string} [$scroller-cursor-disabled=$toolbar-scroller-cursor-disabled]
  422. * The cursor of disabled Toolbar scrollers
  423. *
  424. * @param {number} [$scroller-opacity=$toolbar-scroller-opacity]
  425. * The opacity of Toolbar scroller buttons. Only applicable when
  426. * `$classic-scrollers` is `false`.
  427. *
  428. * @param {number} [$scroller-opacity-over=$toolbar-scroller-opacity-over]
  429. * The opacity of hovered Toolbar scroller buttons. Only applicable when
  430. * `$classic-scrollers` is `false`.
  431. *
  432. * @param {number} [$scroller-opacity-pressed=$toolbar-scroller-opacity-pressed]
  433. * The opacity of pressed Toolbar scroller buttons. Only applicable when
  434. * `$classic-scrollers` is `false`.
  435. *
  436. * @param {number} [$scroller-opacity-disabled=$toolbar-scroller-opacity-disabled]
  437. * The opacity of disabled Toolbar scroller buttons.
  438. *
  439. * @param {color} [$scroller-glyph-color=$toolbar-scroller-glyph-color]
  440. * The color to use for toolbar scroller icons when {@link Global_CSS#$enable-font-icons} is `true`.
  441. *
  442. * @param {string/list} [$scroller-top-glyph=$toolbar-scroller-top-glyph]
  443. * Glyph for the "top" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  444. *
  445. * @param {string/list} [$scroller-right-glyph=$toolbar-scroller-right-glyph]
  446. * Glyph for the "right" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  447. *
  448. * @param {string/list} [$scroller-bottom-glyph=$toolbar-scroller-bottom-glyph]
  449. * Glyph for the "bottom" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  450. *
  451. * @param {string/list} [$scroller-left-glyph=$toolbar-scroller-left-glyph]
  452. * Glyph for the "left" scroller icon when {@link Global_CSS#$enable-font-icons} is `true`.
  453. *
  454. * @param {string} [$tool-background-image=$toolbar-tool-background-image]
  455. * The sprite to use for {@link Ext.panel.Tool Tools} on a Toolbar
  456. *
  457. * @param {color} [$tool-glyph-color=$toolbar-tool-glyph-color]
  458. * The color to use for the Toolbar's tool icons when {@link Global_CSS#$enable-font-icons} is `true`.
  459. *
  460. * @param {color} [$menu-overflow-glyph-color=$toolbar-menu-overflow-glyph-color]
  461. * The color to use for the {@link #overflowHandler menu overflow} "more" icon when
  462. * {@link Global_CSS#$enable-font-icons} is `true`.
  463. *
  464. * @param {string/list} [$menu-overflow-glyph=$toolbar-menu-overflow-glyph]
  465. * Glyph for the {@link #overflowHandler menu overflow} "more" icon when
  466. * {@link Global_CSS#$enable-font-icons} is `true`.
  467. *
  468. * @param {boolean} [$classic-scrollers=$toolbar-classic-scrollers]
  469. * `true` to use classic-style scroller buttons. When `true` scroller buttons are given
  470. * their hover state by changing their background-position, When `false` scroller buttons
  471. * are given their hover state by applying opacity.
  472. *
  473. * @member Ext.toolbar.Toolbar
  474. */
  475. @mixin extjs-toolbar-ui(
  476. $ui,
  477. $background-color: $toolbar-background-color,
  478. $background-gradient: $toolbar-background-gradient,
  479. $vertical-spacing: $toolbar-vertical-spacing,
  480. $horizontal-spacing: $toolbar-horizontal-spacing,
  481. $border-color: $toolbar-border-color,
  482. $border-width: $toolbar-border-width,
  483. $border-style: $toolbar-border-style,
  484. $spacer-width: $toolbar-spacer-width,
  485. $separator-color: $toolbar-separator-color,
  486. $separator-highlight-color: $toolbar-separator-highlight-color,
  487. $separator-horizontal-margin: $toolbar-separator-horizontal-margin,
  488. $separator-horizontal-height: $toolbar-separator-horizontal-height,
  489. $separator-horizontal-border-style: $toolbar-separator-horizontal-border-style,
  490. $separator-horizontal-border-width: $toolbar-separator-horizontal-border-width,
  491. $separator-vertical-margin: $toolbar-separator-vertical-margin,
  492. $separator-vertical-border-style: $toolbar-separator-vertical-border-style,
  493. $separator-vertical-border-width: $toolbar-separator-vertical-border-width,
  494. $text-font-family: $toolbar-text-font-family,
  495. $text-font-size: $toolbar-text-font-size,
  496. $text-font-weight: $toolbar-text-font-weight,
  497. $text-color: $toolbar-text-color,
  498. $text-line-height: $toolbar-text-line-height,
  499. $text-padding: $toolbar-text-padding,
  500. $scroller-width: $toolbar-scroller-width,
  501. $scroller-height: $toolbar-scroller-height,
  502. $scroller-vertical-width: $toolbar-scroller-vertical-width,
  503. $scroller-vertical-height: $toolbar-scroller-vertical-height,
  504. $scroller-border-color: $toolbar-scroller-border-color,
  505. $scroller-border-width: $toolbar-scroller-border-width,
  506. $scroller-vertical-border-color: $toolbar-scroller-vertical-border-color,
  507. $scroller-vertical-border-width: $toolbar-scroller-vertical-border-width,
  508. $scroller-top-margin: $toolbar-scroller-top-margin,
  509. $scroller-right-margin: $toolbar-scroller-right-margin,
  510. $scroller-bottom-margin: $toolbar-scroller-bottom-margin,
  511. $scroller-left-margin: $toolbar-scroller-left-margin,
  512. $scroller-cursor: $toolbar-scroller-cursor,
  513. $scroller-cursor-disabled: $toolbar-scroller-cursor-disabled,
  514. $scroller-opacity: $toolbar-scroller-opacity,
  515. $scroller-opacity-over: $toolbar-scroller-opacity-over,
  516. $scroller-opacity-pressed: $toolbar-scroller-opacity-pressed,
  517. $scroller-opacity-disabled: $toolbar-scroller-opacity-disabled,
  518. $scroller-glyph-color: $toolbar-scroller-glyph-color,
  519. $scroller-top-glyph: $toolbar-scroller-top-glyph,
  520. $scroller-right-glyph: $toolbar-scroller-right-glyph,
  521. $scroller-bottom-glyph: $toolbar-scroller-bottom-glyph,
  522. $scroller-left-glyph: $toolbar-scroller-left-glyph,
  523. $tool-background-image: $toolbar-tool-background-image,
  524. $tool-glyph-color: $toolbar-tool-glyph-color,
  525. $menu-overflow-glyph-color: $toolbar-menu-overflow-glyph-color,
  526. $menu-overflow-glyph: $toolbar-menu-overflow-glyph,
  527. $classic-scrollers: $toolbar-classic-scrollers
  528. ) {
  529. $ui-padding: $vertical-spacing 0 $vertical-spacing $horizontal-spacing;
  530. .#{$prefix}toolbar-#{$ui} {
  531. padding: $ui-padding;
  532. @if $include-rtl {
  533. &.#{$prefix}rtl {
  534. padding: $vertical-spacing $horizontal-spacing $vertical-spacing 0;
  535. }
  536. }
  537. border-style: $border-style;
  538. border-color: $border-color;
  539. border-width: $border-width;
  540. @include background-gradient($background-color, $background-gradient);
  541. @if $include-ext-panel-tool {
  542. .#{$prefix}tool-img {
  543. @if $enable-font-icons {
  544. color: $tool-glyph-color;
  545. } @else if not is-null($tool-background-image) {
  546. background-image: theme-background-image($tool-background-image);
  547. }
  548. @if is-null($background-gradient) {
  549. // EXTJSIV-8846: partially transparent png images do not display correctly
  550. // in winXP/IE8m when the image element has a transparent background.
  551. // to fix this, we give the element the same background-color as the toolbar.
  552. background-color: $background-color;
  553. }
  554. }
  555. }
  556. .#{$prefix}toolbar-item {
  557. margin: 0 $horizontal-spacing 0 0;
  558. @if $include-rtl {
  559. &.#{$prefix}rtl {
  560. margin: 0 0 0 $horizontal-spacing;
  561. }
  562. }
  563. }
  564. .#{$prefix}toolbar-separator-horizontal {
  565. margin: $separator-horizontal-margin;
  566. height: $separator-horizontal-height;
  567. border-style: $separator-horizontal-border-style;
  568. border-width: $separator-horizontal-border-width;
  569. border-left-color: $separator-color;
  570. border-right-color: $separator-highlight-color;
  571. }
  572. .#{$prefix}box-menu-after {
  573. margin: 0 $horizontal-spacing;
  574. }
  575. }
  576. .#{$prefix}toolbar-#{$ui}-vertical {
  577. padding: $vertical-spacing $horizontal-spacing 0;
  578. @if $include-rtl {
  579. &.#{$prefix}rtl {
  580. padding: $vertical-spacing $horizontal-spacing 0;
  581. }
  582. }
  583. .#{$prefix}toolbar-item {
  584. margin: 0 0 $vertical-spacing 0;
  585. @if $include-rtl {
  586. &.#{$prefix}rtl {
  587. margin: 0 0 $vertical-spacing 0;
  588. }
  589. }
  590. }
  591. .#{$prefix}toolbar-separator-vertical {
  592. margin: $separator-vertical-margin;
  593. border-style: $separator-vertical-border-style;
  594. border-width: $separator-vertical-border-width;
  595. border-top-color: $separator-color;
  596. border-bottom-color: $separator-highlight-color;
  597. }
  598. .#{$prefix}box-menu-after {
  599. margin: $vertical-spacing 0;
  600. }
  601. }
  602. @if $include-slicer-gradient and not is-null($background-gradient) {
  603. .#{$prefix}nlg {
  604. .#{$prefix}toolbar-#{$ui} {
  605. background-image: slicer-background-image(toolbar-#{$ui}, 'toolbar/toolbar-#{$ui}-bg') !important;
  606. background-repeat: repeat-x;
  607. }
  608. }
  609. $stretch: slicer-background-stretch(toolbar-#{$ui}, bottom);
  610. }
  611. .#{$prefix}toolbar-text-#{$ui} {
  612. padding: $text-padding;
  613. color: $text-color;
  614. font: $text-font-weight #{$text-font-size}/#{$text-line-height} $text-font-family;
  615. }
  616. .#{$prefix}toolbar-spacer-#{$ui} {
  617. width: $spacer-width;
  618. }
  619. @if $include-ext-layout-container-boxoverflow-scroller {
  620. @include extjs-box-scroller-ui(
  621. $ui: $ui,
  622. $type: 'toolbar',
  623. $horizontal-width: $scroller-width,
  624. $horizontal-height: $scroller-height,
  625. $vertical-width: $scroller-vertical-width,
  626. $vertical-height: $scroller-vertical-height,
  627. $top-margin: $scroller-top-margin,
  628. $right-margin: $scroller-right-margin,
  629. $bottom-margin: $scroller-bottom-margin,
  630. $left-margin: $scroller-left-margin,
  631. $glyph-color: $scroller-glyph-color,
  632. $top-glyph: $scroller-top-glyph,
  633. $right-glyph: $scroller-right-glyph,
  634. $bottom-glyph: $scroller-bottom-glyph,
  635. $left-glyph: $scroller-left-glyph,
  636. $horizontal-border-color: $scroller-border-color,
  637. $horizontal-border-width: $scroller-border-width,
  638. $vertical-border-color: $scroller-vertical-border-color,
  639. $vertical-border-width: $scroller-vertical-border-width,
  640. $container-padding: $ui-padding,
  641. $cursor: $scroller-cursor,
  642. $cursor-disabled: $scroller-cursor-disabled,
  643. $align: middle,
  644. $opacity: $scroller-opacity,
  645. $opacity-over: $scroller-opacity-over,
  646. $opacity-pressed: $scroller-opacity-pressed,
  647. $opacity-disabled: $scroller-opacity-disabled,
  648. $classic: $classic-scrollers,
  649. $include-vertical: if($ui == 'footer', false, true)
  650. );
  651. }
  652. // EXTJSIV-8846: partially transparent png images do not display correctly
  653. // in winXP/IE8 when the image element has a transparent background.
  654. // to fix this, we give the element the same background-color as the toolbar.
  655. .#{$prefix}ie8 {
  656. .#{$prefix}box-scroller-toolbar-#{$ui} {
  657. background-color: $background-color;
  658. }
  659. }
  660. @if $include-ext-layout-container-boxoverflow-menu {
  661. .#{$prefix}toolbar-more-icon {
  662. @if $enable-font-icons and ($menu-overflow-glyph != null) {
  663. @include font-icon($menu-overflow-glyph);
  664. color: $menu-overflow-glyph-color;
  665. } @else {
  666. background-image: theme-background-image('toolbar/#{$ui}-more');
  667. @if $include-rtl {
  668. &.#{$prefix}rtl {
  669. background-image: theme-background-image('toolbar/#{$ui}-more-left');
  670. }
  671. }
  672. }
  673. }
  674. }
  675. @include x-slicer(toolbar-#{$ui});
  676. }