Tab.scss 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519
  1. /**
  2. * @class Ext.tab.Tab
  3. */
  4. /**
  5. * @var {color}
  6. * Tab background-color
  7. */
  8. $tab-background-color: dynamic(mix(#fff, $base-highlight-color, 10%));
  9. /**
  10. * @var {color}
  11. * Tab background-color when hovered
  12. */
  13. $tab-hovered-background-color: dynamic(mix(#fff, $base-highlight-color, 20%));
  14. /**
  15. * @var {color}
  16. * Tab background-color when pressed
  17. */
  18. $tab-pressed-background-color: dynamic($tab-hovered-background-color);
  19. /**
  20. * @var {color}
  21. * Tab background-color when active
  22. */
  23. $tab-active-background-color: dynamic($base-light-color);
  24. /**
  25. * @var {color}
  26. * Tab background-color when focused
  27. */
  28. $tab-focused-background-color: dynamic(null);
  29. /**
  30. * @var {color}
  31. * Tab background-color when active and focused
  32. */
  33. $tab-active-focused-background-color: dynamic(null);
  34. /**
  35. * @var {color}
  36. * Tab background-color when disabled
  37. */
  38. $tab-disabled-background-color: dynamic(null);
  39. /**
  40. * @var {list}
  41. * Tab box-shadow
  42. */
  43. $tab-box-shadow: dynamic(null);
  44. /**
  45. * @var {list}
  46. * Tab box-shadow when hovered
  47. */
  48. $tab-hovered-box-shadow: dynamic(null);
  49. /**
  50. * @var {list}
  51. * Tab box-shadow when pressed
  52. */
  53. $tab-pressed-box-shadow: dynamic(null);
  54. /**
  55. * @var {list}
  56. * Tab box-shadow when active
  57. */
  58. $tab-active-box-shadow: dynamic(null);
  59. /**
  60. * @var {list}
  61. * Tab box-shadow when focused
  62. */
  63. $tab-focused-box-shadow: dynamic(null);
  64. /**
  65. * @var {list}
  66. * Tab box-shadow when active and focused
  67. */
  68. $tab-active-focused-box-shadow: dynamic(null);
  69. /**
  70. * @var {list}
  71. * Tab box-shadow when disabled
  72. */
  73. $tab-disabled-box-shadow: dynamic(null);
  74. /**
  75. * @var {string/list}
  76. * Tab background-gradient. Can be either the name of a gradient defined by
  77. * {@link Global_CSS#background-gradient} or a list of color stops.
  78. */
  79. $tab-background-gradient: dynamic(none);
  80. /**
  81. * @var {string/list}
  82. * Tab background-gradient when hovered. Can be either the name of a gradient
  83. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  84. */
  85. $tab-hovered-background-gradient: dynamic(none);
  86. /**
  87. * @var {string/list}
  88. * Tab background-gradient when pressed. Can be either the name of a gradient
  89. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  90. */
  91. $tab-pressed-background-gradient: dynamic(none);
  92. /**
  93. * @var {string/list}
  94. * Tab background-gradient when active. Can be either the name of a gradient
  95. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  96. */
  97. $tab-active-background-gradient: dynamic(none);
  98. /**
  99. * @var {string/list}
  100. * Tab background-gradient when focused. Can be either the name of a gradient
  101. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  102. */
  103. $tab-focused-background-gradient: dynamic(none);
  104. /**
  105. * @var {string/list}
  106. * Tab background-gradient when active and focused. Can be either the name of a gradient
  107. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  108. */
  109. $tab-active-focused-background-gradient: dynamic(none);
  110. /**
  111. * @var {string/list}
  112. * Tab background-gradient when disabled. Can be either the name of a gradient
  113. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  114. */
  115. $tab-disabled-background-gradient: dynamic(none);
  116. /**
  117. * @var {color}
  118. * Tab text color
  119. */
  120. $tab-color: dynamic($light-color);
  121. /**
  122. * @var {color}
  123. * Tab text color when hovered
  124. */
  125. $tab-hovered-color: dynamic($tab-color);
  126. /**
  127. * @var {color}
  128. * Tab text color when pressed
  129. */
  130. $tab-pressed-color: dynamic($tab-color);
  131. /**
  132. * @var {color}
  133. * Tab text color when active
  134. */
  135. $tab-active-color: dynamic($base-color);
  136. /**
  137. * @var {color}
  138. * Tab text color when focused
  139. */
  140. $tab-focused-color: dynamic($tab-color);
  141. /**
  142. * @var {color}
  143. * Tab text color when active and focused
  144. */
  145. $tab-active-focused-color: dynamic($tab-active-color);
  146. /**
  147. * @var {color}
  148. * Tab color when disabled
  149. */
  150. $tab-disabled-color: dynamic($tab-color);
  151. /**
  152. * @var {color/list}
  153. * Tab border-color
  154. */
  155. $tab-border-color: dynamic(null);
  156. /**
  157. * @var {color/list}
  158. * Tab border-color when hovered
  159. */
  160. $tab-hovered-border-color: dynamic(null);
  161. /**
  162. * @var {color/list}
  163. * Tab border-color when pressed
  164. */
  165. $tab-pressed-border-color: dynamic(null);
  166. /**
  167. * @var {color/list}
  168. * Tab border-color when active
  169. */
  170. $tab-active-border-color: dynamic(null);
  171. /**
  172. * @var {color/list}
  173. * Tab border-color when focused
  174. */
  175. $tab-focused-border-color: dynamic(null);
  176. /**
  177. * @var {color/list}
  178. * Tab border-color when active and focused
  179. */
  180. $tab-active-focused-border-color: dynamic(null);
  181. /**
  182. * @var {color/list}
  183. * Tab border-color when disabled
  184. */
  185. $tab-disabled-border-color: dynamic(null);
  186. /**
  187. * @var {color}
  188. * Tab focus outline color
  189. */
  190. $tab-focused-outline-color: dynamic(mix($tab-background-color, $tab-color, 20%));
  191. /**
  192. * @var {color}
  193. * Tab focus outline color when active
  194. */
  195. $tab-active-focused-outline-color: dynamic(mix($tab-active-background-color, $tab-active-color, 20%));
  196. /**
  197. * @var {string}
  198. * Tab focus outline style
  199. */
  200. $tab-focused-outline-style: dynamic(solid);
  201. /**
  202. * @var {number}
  203. * Tab focus outline width
  204. */
  205. $tab-focused-outline-width: dynamic(1px);
  206. /**
  207. * @var {number}
  208. * Tab focus outline offset
  209. */
  210. $tab-focused-outline-offset: dynamic(-2px);
  211. /**
  212. * @var {number/list}
  213. * Tab border-width
  214. */
  215. $tab-border-width: dynamic(0);
  216. /**
  217. * @var {string/list}
  218. * Tab border-style
  219. */
  220. $tab-border-style: dynamic(null);
  221. /**
  222. * @var {number}
  223. * Tab border-radius
  224. */
  225. $tab-border-radius: dynamic(3px 3px 0 0);
  226. /**
  227. * @var {number}
  228. * Tab border-radius in the {@link Global_CSS#$enable-big big} sizing scheme
  229. */
  230. $tab-border-radius-big: dynamic($tab-border-radius);
  231. /**
  232. * @var {string/number}
  233. * Tab font-weight
  234. */
  235. $tab-font-weight: dynamic($font-weight-bold);
  236. /**
  237. * @var {number}
  238. * Tab font-size
  239. */
  240. $tab-font-size: dynamic($font-size);
  241. /**
  242. * @var {number}
  243. * Tab font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  244. */
  245. $tab-font-size-big: dynamic($font-size-big);
  246. /**
  247. * @var {number}
  248. * Tab font-size when {@link #iconAlign} is `'top'` or `'bottom'`
  249. */
  250. $tab-stacked-font-size: dynamic(null);
  251. /**
  252. * @var {number}
  253. * Tab font-size in the {@link Global_CSS#$enable-big big} sizing scheme when {@link #iconAlign} is `'top'` or `'bottom'`
  254. */
  255. $tab-stacked-font-size-big: dynamic(null);
  256. /**
  257. * @var {number}
  258. * Tab line-height
  259. */
  260. $tab-line-height: dynamic(16px);
  261. /**
  262. * @var {number}
  263. * Tab line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  264. */
  265. $tab-line-height-big: dynamic(20px);
  266. /**
  267. * @var {string}
  268. * Tab font-family
  269. */
  270. $tab-font-family: dynamic($font-family);
  271. /**
  272. * @var {string}
  273. * Tab text-transform
  274. */
  275. $tab-text-transform: dynamic(null);
  276. /**
  277. * @var {string}
  278. * Tab text-transform in the {@link Global_CSS#$enable-big big} sizing scheme
  279. */
  280. $tab-text-transform-big: dynamic(null);
  281. /**
  282. * @var {number/list}
  283. * Tab padding
  284. */
  285. $tab-padding: dynamic(8px 12px 7px);
  286. /**
  287. * @var {number/list}
  288. * Tab padding in the {@link Global_CSS#$enable-big big} sizing scheme
  289. */
  290. $tab-padding-big: dynamic(10px 10px 9px);
  291. /**
  292. * @var {number/list}
  293. * Tab padding when an icon is present without text
  294. */
  295. $tab-icon-only-padding: dynamic($tab-padding);
  296. /**
  297. * @var {number/list}
  298. * Tab padding when an icon is present without text in the {@link Global_CSS#$enable-big big} sizing scheme
  299. */
  300. $tab-icon-only-padding-big: dynamic($tab-padding-big);
  301. /**
  302. * @var {color}
  303. * Tab icon color.
  304. */
  305. $tab-icon-color: dynamic($tab-color);
  306. /**
  307. * @var {color}
  308. * Tab icon color when hovered.
  309. */
  310. $tab-hovered-icon-color: dynamic($tab-hovered-color);
  311. /**
  312. * @var {color}
  313. * Tab icon color when pressed.
  314. */
  315. $tab-pressed-icon-color: dynamic($tab-pressed-color);
  316. /**
  317. * @var {color}
  318. * Tab icon color when active
  319. */
  320. $tab-active-icon-color: dynamic($tab-active-color);
  321. /**
  322. * @var {color}
  323. * Tab icon color when focused
  324. */
  325. $tab-focused-icon-color: dynamic($tab-focused-color);
  326. /**
  327. * @var {color}
  328. * Tab icon color when active and focused
  329. */
  330. $tab-active-focused-icon-color: dynamic($tab-active-icon-color);
  331. /**
  332. * @var {color}
  333. * Tab icon color when disabled
  334. */
  335. $tab-disabled-icon-color: dynamic($tab-disabled-color);
  336. /**
  337. * @var {number}
  338. * Tab icon size
  339. */
  340. $tab-icon-size: dynamic($tab-line-height);
  341. /**
  342. * @var {number}
  343. * Tab icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  344. */
  345. $tab-icon-size-big: dynamic($tab-line-height-big);
  346. /**
  347. * @var {number}
  348. * Tab icon font-size
  349. */
  350. $tab-icon-font-size: dynamic(null);
  351. /**
  352. * @var {number}
  353. * Tab icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  354. */
  355. $tab-icon-font-size-big: dynamic(null);
  356. /**
  357. * @var {number}
  358. * The space between the tab icon and text when the icon is horizontally aligned
  359. */
  360. $tab-icon-horizontal-spacing: dynamic(5px);
  361. /**
  362. * @var {number}
  363. * The space between the tab icon and text when the icon is horizontally aligned
  364. * in the {@link Global_CSS#$enable-big big} sizing scheme
  365. */
  366. $tab-icon-horizontal-spacing-big: dynamic(8px);
  367. /**
  368. * @var {number}
  369. * The space between the tab icon and text when the icon is vertically aligned
  370. */
  371. $tab-icon-vertical-spacing: dynamic(2px);
  372. /**
  373. * @var {number}
  374. * The space between the tab icon and text when the icon is vertically aligned
  375. * in the {@link Global_CSS#$enable-big big} sizing scheme
  376. */
  377. $tab-icon-vertical-spacing-big: dynamic(3px);
  378. /**
  379. * @var {number}
  380. * Tab opacity when disabled
  381. */
  382. $tab-disabled-opacity: dynamic(.5);
  383. /**
  384. * @var {string}
  385. * Tab arrow icon
  386. */
  387. $tab-arrow-icon: dynamic(null);
  388. /**
  389. * @var {color}
  390. * Tab arrow icon color
  391. */
  392. $tab-arrow-icon-color: dynamic($tab-color);
  393. /**
  394. * @var {color}
  395. * Tab arrow icon color when hovered
  396. */
  397. $tab-hovered-arrow-icon-color: dynamic($tab-hovered-icon-color);
  398. /**
  399. * @var {color}
  400. * Tab arrow icon color when pressed
  401. */
  402. $tab-pressed-arrow-icon-color: dynamic($tab-pressed-icon-color);
  403. /**
  404. * @var {color}
  405. * Tab arrow icon color when active
  406. */
  407. $tab-active-arrow-icon-color: dynamic($tab-active-icon-color);
  408. /**
  409. * @var {color}
  410. * Tab arrow icon color when focused
  411. */
  412. $tab-focused-arrow-icon-color: dynamic($tab-focused-icon-color);
  413. /**
  414. * @var {color}
  415. * Tab arrow icon color when active and focused
  416. */
  417. $tab-active-focused-arrow-icon-color: dynamic($tab-active-arrow-icon-color);
  418. /**
  419. * @var {color}
  420. * Tab arrow icon color when disabled
  421. */
  422. $tab-disabled-arrow-icon-color: dynamic($tab-disabled-icon-color);
  423. /**
  424. * @var {number}
  425. * Tab arrow icon size
  426. */
  427. $tab-arrow-icon-size: dynamic($tab-line-height);
  428. /**
  429. * @var {number}
  430. * Tab arrow icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  431. */
  432. $tab-arrow-icon-size-big: dynamic($tab-line-height-big);
  433. /**
  434. * @var {number}
  435. * Tab arrow icon font-size
  436. */
  437. $tab-arrow-icon-font-size: dynamic(null);
  438. /**
  439. * @var {number}
  440. * Tab arrow icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  441. */
  442. $tab-arrow-icon-font-size-big: dynamic(null);
  443. /**
  444. * @var {number}
  445. * The space between the tab arrow and text when {@link #arrowAlign} is `'right'`
  446. */
  447. $tab-arrow-horizontal-spacing: dynamic(5px);
  448. /**
  449. * @var {number}
  450. * The space between the tab arrow and text when {@link #arrowAlign} is `'right'`
  451. * in the {@link Global_CSS#$enable-big big} sizing scheme
  452. */
  453. $tab-arrow-horizontal-spacing-big: dynamic(8px);
  454. /**
  455. * @var {number}
  456. * The space between the tab arrow and text when {@link #arrowAlign} is `'bottom'`
  457. */
  458. $tab-arrow-vertical-spacing: dynamic(null);
  459. /**
  460. * @var {number}
  461. * The space between the tab arrow and text when {@link #arrowAlign} is `'bottom'`
  462. * in the {@link Global_CSS#$enable-big big} sizing scheme
  463. */
  464. $tab-arrow-vertical-spacing-big: dynamic(null);
  465. /**
  466. * @var {color}
  467. * The background-color of the tab's {@link #badgeText badge}
  468. */
  469. $tab-badge-background-color: dynamic(darken($alert-color, 10%));
  470. /**
  471. * @var {string/list}
  472. * The background-gradient of the tab's {@link #badgeText badge} Can be either the name
  473. * of a gradient defined by {@link Global_CSS#background-gradient} or a list of color stops.
  474. */
  475. $tab-badge-background-gradient: dynamic($base-background-gradient);
  476. /**
  477. * @var {color}
  478. * The text color of the tab's {@link #badgeText badge}
  479. */
  480. $tab-badge-color: dynamic(color-by-background($tab-badge-background-color));
  481. /**
  482. * @var {color}
  483. * The border-color of the tab's {@link #badgeText badge}
  484. */
  485. $tab-badge-border-color: dynamic(darken($tab-badge-background-color, 10%));
  486. /**
  487. * @var {number/list}
  488. * The border-radius of the tab's {@link #badgeText badge}
  489. */
  490. $tab-badge-border-radius: dynamic(3px);
  491. /**
  492. * @var {number}
  493. * The min-width of the tab's {@link #badgeText badge}
  494. */
  495. $tab-badge-min-width: dynamic($button-badge-min-width);
  496. /**
  497. * @var {number}
  498. * The max-width of the tab's {@link #badgeText badge}
  499. */
  500. $tab-badge-max-width: dynamic(95%);
  501. /**
  502. * @var {string/number}
  503. * The font-weight of the tab's {@link #badgeText badge}
  504. */
  505. $tab-badge-font-weight: dynamic(null);
  506. /**
  507. * @var {number}
  508. * The font-size of the tab's {@link #badgeText badge}
  509. */
  510. $tab-badge-font-size: dynamic($button-badge-font-size);
  511. /**
  512. * @var {number}
  513. * The font-size of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  514. */
  515. $tab-badge-font-size-big: dynamic($button-badge-font-size-big);
  516. /**
  517. * @var {string}
  518. * The font-family of the tab's {@link #badgeText badge}
  519. */
  520. $tab-badge-font-family: dynamic($tab-font-family);
  521. /**
  522. * @var {number}
  523. * The line-height of the tab's {@link #badgeText badge}
  524. */
  525. $tab-badge-line-height: dynamic($button-badge-line-height);
  526. /**
  527. * @var {number}
  528. * The line-height of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  529. */
  530. $tab-badge-line-height-big: dynamic($button-badge-line-height-big);
  531. /**
  532. * @var {number}
  533. * Offset of the {@link #badgeText badge} from the top of the tab
  534. */
  535. $tab-badge-top: dynamic(0);
  536. /**
  537. * @var {number}
  538. * Offset of the {@link #badgeText badge} from the right of the tab
  539. */
  540. $tab-badge-right: dynamic(0);
  541. /**
  542. * @var {number}
  543. * Offset of the {@link #badgeText badge} from the bottom of the tab
  544. */
  545. $tab-badge-bottom: dynamic(null);
  546. /**
  547. * @var {number}
  548. * Offset of the {@link #badgeText badge} from the left of the tab
  549. */
  550. $tab-badge-left: dynamic(null);
  551. /**
  552. * @var {number}
  553. * The padding of the tab's {@link #badgeText badge}
  554. */
  555. $tab-badge-padding: dynamic(1px 4px);
  556. /**
  557. * @var {number}
  558. * The padding of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  559. */
  560. $tab-badge-padding-big: dynamic($tab-badge-padding);
  561. /**
  562. * @var {color}
  563. * The background-color of the tab's "active indicator"
  564. */
  565. $tab-active-indicator-background-color: dynamic(null);
  566. /**
  567. * @var {number}
  568. * The height of the tab's "active indicator"
  569. */
  570. $tab-active-indicator-height: dynamic(null);
  571. /**
  572. * @var {string}
  573. * Tab close icon
  574. */
  575. $tab-close-icon: dynamic($fa-var-close);
  576. /**
  577. * @var {color}
  578. * Tab close icon color
  579. */
  580. $tab-close-icon-color: dynamic(null);
  581. /**
  582. * @var {color}
  583. * Tab close icon color when the close icon is hovered
  584. */
  585. $tab-close-icon-hovered-color: dynamic(null);
  586. /**
  587. * @var {color}
  588. * Tab close icon color when the close icon is pressed
  589. */
  590. $tab-close-icon-pressed-color: dynamic(null);
  591. /**
  592. * @var {color}
  593. * Tab close icon color when the tab is active
  594. */
  595. $tab-active-close-icon-color: dynamic(null);
  596. /**
  597. * @var {color}
  598. * Tab close icon color when the tab is active and the close icon is hovered
  599. */
  600. $tab-active-close-icon-hovered-color: dynamic(null);
  601. /**
  602. * @var {color}
  603. * Tab close icon color when the tab is active and the close icon is pressed
  604. */
  605. $tab-active-close-icon-pressed-color: dynamic(null);
  606. /**
  607. * @var {color}
  608. * Tab close icon background-color
  609. */
  610. $tab-close-icon-background-color: dynamic(null);
  611. /**
  612. * @var {color}
  613. * Tab close icon background-color when the close icon is hovered
  614. */
  615. $tab-close-icon-hovered-background-color: dynamic(rgba(0, 0, 0, 0.1));
  616. /**
  617. * @var {color}
  618. * Tab close icon background-color when the close icon is pressed
  619. */
  620. $tab-close-icon-pressed-background-color: dynamic(rgba(0, 0, 0, 0.2));
  621. /**
  622. * @var {color}
  623. * Tab close icon background-color when the tab is active
  624. */
  625. $tab-active-close-icon-background-color: dynamic(null);
  626. /**
  627. * @var {color}
  628. * Tab close icon background-color when the tab is active and the close icon is hovered
  629. */
  630. $tab-active-close-icon-hovered-background-color: dynamic(null);
  631. /**
  632. * @var {color}
  633. * Tab close icon background-color when the tab is active and the close icon is pressed
  634. */
  635. $tab-active-close-icon-pressed-background-color: dynamic(null);
  636. /**
  637. * @var {number/list}
  638. * Tab close icon border-radius
  639. */
  640. $tab-close-icon-border-radius: dynamic(3px);
  641. /**
  642. * @var {number/list}
  643. * Tab close icon border-radius in the {@link Global_CSS#$enable-big big} sizing scheme
  644. */
  645. $tab-close-icon-border-radius-big: dynamic(null);
  646. /**
  647. * @var {number}
  648. * Tab close icon size
  649. */
  650. $tab-close-icon-size: dynamic(12px);
  651. /**
  652. * @var {number}
  653. * Tab close icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  654. */
  655. $tab-close-icon-size-big: dynamic(18px);
  656. /**
  657. * @var {number}
  658. * Tab close icon font-size
  659. */
  660. $tab-close-icon-font-size: dynamic(null);
  661. /**
  662. * @var {number}
  663. * Tab close icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  664. */
  665. $tab-close-icon-font-size-big: dynamic(null);
  666. /**
  667. * @var {number/list}
  668. * Tab close icon margin.
  669. * Used to position the close icon relative to the top right corner of the tab.
  670. */
  671. $tab-close-icon-margin: dynamic(3px);
  672. /**
  673. * @var {number/list}
  674. * Tab close icon margin in the {@link Global_CSS#$enable-big big} sizing scheme.
  675. * Used to position the close icon relative to the top right corner of the tab.
  676. */
  677. $tab-close-icon-margin-big: dynamic(null);
  678. /**
  679. * @var {number}
  680. * Additional spacing to add to the side of the tab that contains the close icon when closable
  681. */
  682. $tab-close-icon-spacing: dynamic(10px);
  683. /**
  684. * @var {number}
  685. * Additional spacing to add to the side of the tab that contains the close icon when closable
  686. * in the {@link Global_CSS#$enable-big big} sizing scheme
  687. */
  688. $tab-close-icon-spacing-big: dynamic(20px);
  689. /**
  690. * Creates a visual theme for a Tab.
  691. *
  692. * @param {string} $ui
  693. * The name of the UI being created. Can not included spaces or special punctuation
  694. * (used in CSS class names).
  695. *
  696. * @param {String} [$xtype=tab] (protected) The {@link Ext.Class#xtype} to use
  697. * in CSS selectors. For use by UI mixins of derived classes.
  698. *
  699. * @param {color} $background-color
  700. * Tab background-color
  701. *
  702. * @param {color} $hovered-background-color
  703. * Tab background-color when hovered
  704. *
  705. * @param {color} $pressed-background-color
  706. * Tab background-color when pressed
  707. *
  708. * @param {color} $active-background-color
  709. * Tab background-color when active
  710. *
  711. * @param {color} $focused-background-color
  712. * Tab background-color when focused
  713. *
  714. * @param {color} $active-focused-background-color
  715. * Tab background-color when active and focused
  716. *
  717. * @param {color} $disabled-background-color
  718. * Tab background-color when disabled
  719. *
  720. * @param {list} $box-shadow
  721. * Tab box-shadow
  722. *
  723. * @param {list} $hovered-box-shadow
  724. * Tab box-shadow when hovered
  725. *
  726. * @param {list} $pressed-box-shadow
  727. * Tab box-shadow when pressed
  728. *
  729. * @param {list} $active-box-shadow
  730. * Tab box-shadow when active
  731. *
  732. * @param {list} $focused-box-shadow
  733. * Tab box-shadow when focused
  734. *
  735. * @param {list} $active-focused-box-shadow
  736. * Tab box-shadow when active and focused
  737. *
  738. * @param {list} $disabled-box-shadow
  739. * Tab box-shadow when disabled
  740. *
  741. * @param {string/list} $background-gradient
  742. * Tab background-gradient. Can be either the name of a gradient defined by
  743. * {@link Global_CSS#background-gradient} or a list of color stops.
  744. *
  745. * @param {string/list} $hovered-background-gradient
  746. * Tab background-gradient when hovered. Can be either the name of a gradient
  747. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  748. *
  749. * @param {string/list} $pressed-background-gradient
  750. * Tab background-gradient when pressed. Can be either the name of a gradient
  751. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  752. *
  753. * @param {string/list} $active-background-gradient
  754. * Tab background-gradient when active. Can be either the name of a gradient
  755. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  756. *
  757. * @param {string/list} $focused-background-gradient
  758. * Tab background-gradient when focused. Can be either the name of a gradient
  759. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  760. *
  761. * @param {string/list} $active-focused-background-gradient
  762. * Tab background-gradient when active and focused. Can be either the name of a gradient
  763. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  764. *
  765. * @param {string/list} $disabled-background-gradient
  766. * Tab background-gradient when disabled. Can be either the name of a gradient
  767. * defined by {@link Global_CSS#background-gradient} or a list of color stops.
  768. *
  769. * @param {color} $color
  770. * Tab text color
  771. *
  772. * @param {color} $hovered-color
  773. * Tab text color when hovered
  774. *
  775. * @param {color} $pressed-color
  776. * Tab text color when pressed
  777. *
  778. * @param {color} $active-color
  779. * Tab text color when active
  780. *
  781. * @param {color} $focused-color
  782. * Tab text color when focused
  783. *
  784. * @param {color} $active-focused-color
  785. * Tab text color when active and focused
  786. *
  787. * @param {color} $disabled-color
  788. * Tab color when disabled
  789. *
  790. * @param {color/list} $border-color
  791. * Tab border-color
  792. *
  793. * @param {color/list} $hovered-border-color
  794. * Tab border-color when hovered
  795. *
  796. * @param {color/list} $pressed-border-color
  797. * Tab border-color when pressed
  798. *
  799. * @param {color/list} $active-border-color
  800. * Tab border-color when active
  801. *
  802. * @param {color/list} $focused-border-color
  803. * Tab border-color when focused
  804. *
  805. * @param {color/list} $active-focused-border-color
  806. * Tab border-color when active and focused
  807. *
  808. * @param {color/list} $disabled-border-color
  809. * Tab border-color when disabled
  810. *
  811. * @param {color} $focused-outline-color
  812. * Tab focus outline color
  813. *
  814. * @param {color} $active-focused-outline-color
  815. * Tab focus outline color when active
  816. *
  817. * @param {string} $focused-outline-style
  818. * Tab focus outline style
  819. *
  820. * @param {number} $focused-outline-width
  821. * Tab focus outline width
  822. *
  823. * @param {number} $focused-outline-offset
  824. * Tab focus outline offset
  825. *
  826. * @param {number/list} $border-width
  827. * Tab border-width
  828. *
  829. * @param {string/list} $border-style
  830. * Tab border-style
  831. *
  832. * @param {number} $border-radius
  833. * Tab border-radius
  834. *
  835. * @param {number} $border-radius-big
  836. * Tab border-radius in the {@link Global_CSS#$enable-big big} sizing scheme
  837. *
  838. * @param {string/number} $font-weight
  839. * Tab font-weight
  840. *
  841. * @param {number} $font-size
  842. * Tab font-size
  843. *
  844. * @param {number} $font-size-big
  845. * Tab font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  846. *
  847. * @param {number} $stacked-font-size
  848. * Tab font-size when {@link #iconAlign} is `'top'` or `'bottom'`
  849. *
  850. * @param {number} $stacked-font-size-big
  851. * Tab font-size in the {@link Global_CSS#$enable-big big} sizing scheme when {@link #iconAlign} is `'top'` or `'bottom'`
  852. *
  853. * @param {number} $line-height
  854. * Tab line-height
  855. *
  856. * @param {number} $line-height-big
  857. * Tab line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  858. *
  859. * @param {string} $font-family
  860. * Tab font-family
  861. *
  862. * @param {string} $text-transform
  863. * Tab text-transform
  864. *
  865. * @param {string} $text-transform-big
  866. * Tab text-transform in the {@link Global_CSS#$enable-big big} sizing scheme
  867. *
  868. * @param {number/list} $padding
  869. * Tab padding
  870. *
  871. * @param {number/list} $padding-big
  872. * Tab padding in the {@link Global_CSS#$enable-big big} sizing scheme
  873. *
  874. * @param {number/list} $icon-only-padding
  875. * Tab padding when an icon is present without text
  876. *
  877. * @param {number/list} $icon-only-padding-big
  878. * Tab padding when an icon is present without text in the {@link Global_CSS#$enable-big big} sizing scheme
  879. *
  880. * @param {color} $icon-color
  881. * Tab icon color.
  882. *
  883. * @param {color} $hovered-icon-color
  884. * Tab icon color when hovered.
  885. *
  886. * @param {color} $pressed-icon-color
  887. * Tab icon color when pressed.
  888. *
  889. * @param {color} $active-icon-color
  890. * Tab icon color when active
  891. *
  892. * @param {color} $focused-icon-color
  893. * Tab icon color when focused
  894. *
  895. * @param {color} $active-focused-icon-color
  896. * Tab icon color when active and focused
  897. *
  898. * @param {color} $disabled-icon-color
  899. * Tab icon color when disabled
  900. *
  901. * @param {number} $icon-size
  902. * Tab icon size
  903. *
  904. * @param {number} $icon-size-big
  905. * Tab icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  906. *
  907. * @param {number} $icon-font-size
  908. * Tab icon font-size
  909. *
  910. * @param {number} $icon-font-size-big
  911. * Tab icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  912. *
  913. * @param {number} $icon-horizontal-spacing
  914. * The space between the tab icon and text when the icon is horizontally aligned
  915. *
  916. * @param {number} $icon-horizontal-spacing-big
  917. * The space between the tab icon and text when the icon is horizontally aligned
  918. * in the {@link Global_CSS#$enable-big big} sizing scheme
  919. *
  920. * @param {number} $icon-vertical-spacing
  921. * The space between the tab icon and text when the icon is vertically aligned
  922. *
  923. * @param {number} $icon-vertical-spacing-big
  924. * The space between the tab icon and text when the icon is vertically aligned
  925. * in the {@link Global_CSS#$enable-big big} sizing scheme
  926. *
  927. * @param {number} $disabled-opacity
  928. * Tab opacity when disabled
  929. *
  930. * @param {string} $arrow-icon
  931. * Tab arrow icon
  932. *
  933. * @param {color} $arrow-icon-color
  934. * Tab arrow icon color
  935. *
  936. * @param {color} $hovered-arrow-icon-color
  937. * Tab arrow icon color when hovered
  938. *
  939. * @param {color} $pressed-arrow-icon-color
  940. * Tab arrow icon color when pressed
  941. *
  942. * @param {color} $active-arrow-icon-color
  943. * Tab arrow icon color when active
  944. *
  945. * @param {color} $focused-arrow-icon-color
  946. * Tab arrow icon color when focused
  947. *
  948. * @param {color} $active-focused-arrow-icon-color
  949. * Tab arrow icon color when active and focused
  950. *
  951. * @param {color} $disabled-arrow-icon-color
  952. * Tab arrow icon color when disabled
  953. *
  954. * @param {number} $arrow-icon-size
  955. * Tab arrow icon size
  956. *
  957. * @param {number} $arrow-icon-size-big
  958. * Tab arrow icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  959. *
  960. * @param {number} $arrow-icon-font-size
  961. * Tab arrow icon font-size
  962. *
  963. * @param {number} $arrow-icon-font-size-big
  964. * Tab arrow icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  965. *
  966. * @param {number} $arrow-horizontal-spacing
  967. * The space between the tab arrow and text when {@link #arrowAlign} is `'right'`
  968. *
  969. * @param {number} $arrow-horizontal-spacing-big
  970. * The space between the tab arrow and text when {@link #arrowAlign} is `'right'`
  971. * in the {@link Global_CSS#$enable-big big} sizing scheme
  972. *
  973. * @param {number} $arrow-vertical-spacing
  974. * The space between the tab arrow and text when {@link #arrowAlign} is `'bottom'`
  975. *
  976. * @param {number} $arrow-vertical-spacing-big
  977. * The space between the tab arrow and text when {@link #arrowAlign} is `'bottom'`
  978. * in the {@link Global_CSS#$enable-big big} sizing scheme
  979. *
  980. * @param {color} $badge-background-color
  981. * The background-color of the tab's {@link #badgeText badge}
  982. *
  983. * @param {string/list} $badge-background-gradient
  984. * The background-gradient of the tab's {@link #badgeText badge} Can be either the name
  985. * of a gradient defined by {@link Global_CSS#background-gradient} or a list of color stops.
  986. *
  987. * @param {color} $badge-color
  988. * The text color of the tab's {@link #badgeText badge}
  989. *
  990. * @param {color} $badge-border-color
  991. * The border-color of the tab's {@link #badgeText badge}
  992. *
  993. * @param {number/list} $badge-border-radius
  994. * The border-radius of the tab's {@link #badgeText badge}
  995. *
  996. * @param {number} $badge-min-width
  997. * The min-width of the tab's {@link #badgeText badge}
  998. *
  999. * @param {number} $badge-max-width
  1000. * The max-width of the tab's {@link #badgeText badge}
  1001. *
  1002. * @param {string/number} $badge-font-weight
  1003. * The font-weight of the tab's {@link #badgeText badge}
  1004. *
  1005. * @param {number} $badge-font-size
  1006. * The font-size of the tab's {@link #badgeText badge}
  1007. *
  1008. * @param {number} $badge-font-size-big
  1009. * The font-size of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  1010. *
  1011. * @param {string} $badge-font-family
  1012. * The font-family of the tab's {@link #badgeText badge}
  1013. *
  1014. * @param {number} $badge-line-height
  1015. * The line-height of the tab's {@link #badgeText badge}
  1016. *
  1017. * @param {number} $badge-line-height-big
  1018. * The line-height of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  1019. *
  1020. * @param {number} $badge-top
  1021. * Offset of the {@link #badgeText badge} from the top of the tab
  1022. *
  1023. * @param {number} $badge-right
  1024. * Offset of the {@link #badgeText badge} from the right of the tab
  1025. *
  1026. * @param {number} $badge-bottom
  1027. * Offset of the {@link #badgeText badge} from the bottom of the tab
  1028. *
  1029. * @param {number} $badge-left
  1030. * Offset of the {@link #badgeText badge} from the left of the tab
  1031. *
  1032. * @param {number} $badge-padding
  1033. * The padding of the tab's {@link #badgeText badge}
  1034. *
  1035. * @param {number} $badge-padding-big
  1036. * The padding of the tab's {@link #badgeText badge} in the {@link Global_CSS#$enable-big big} sizing scheme
  1037. *
  1038. * @param {color} $active-indicator-background-color
  1039. * The background-color of the tab's "active indicator"
  1040. *
  1041. * @param {number} $active-indicator-height
  1042. * The height of the tab's "active indicator"
  1043. *
  1044. * @param {string} $close-icon
  1045. * Tab close icon
  1046. *
  1047. * @param {color} $close-icon-color
  1048. * Tab close icon color
  1049. *
  1050. * @param {color} $close-icon-hovered-color
  1051. * Tab close icon color when the close icon is hovered
  1052. *
  1053. * @param {color} $close-icon-pressed-color
  1054. * Tab close icon color when the close icon is pressed
  1055. *
  1056. * @param {color} $active-close-icon-color
  1057. * Tab close icon color when the tab is active
  1058. *
  1059. * @param {color} $active-close-icon-hovered-color
  1060. * Tab close icon color when the tab is active and the close icon is hovered
  1061. *
  1062. * @param {color} $active-close-icon-pressed-color
  1063. * Tab close icon color when the tab is active and the close icon is pressed
  1064. *
  1065. * @param {color} $close-icon-background-color
  1066. * Tab close icon background-color
  1067. *
  1068. * @param {color} $close-icon-hovered-background-color
  1069. * Tab close icon background-color when the close icon is hovered
  1070. *
  1071. * @param {color} $close-icon-pressed-background-color
  1072. * Tab close icon background-color when the close icon is pressed
  1073. *
  1074. * @param {color} $active-close-icon-background-color
  1075. * Tab close icon background-color when the tab is active
  1076. *
  1077. * @param {color} $active-close-icon-hovered-background-color
  1078. * Tab close icon background-color when the tab is active and the close icon is hovered
  1079. *
  1080. * @param {color} $active-close-icon-pressed-background-color
  1081. * Tab close icon background-color when the tab is active and the close icon is pressed
  1082. *
  1083. * @param {number/list} $close-icon-border-radius
  1084. * Tab close icon border-radius
  1085. *
  1086. * @param {number/list} $close-icon-border-radius-big
  1087. * Tab close icon border-radius in the {@link Global_CSS#$enable-big big} sizing scheme
  1088. *
  1089. * @param {number} $close-icon-size
  1090. * Tab close icon size
  1091. *
  1092. * @param {number} $close-icon-size-big
  1093. * Tab close icon size in the {@link Global_CSS#$enable-big big} sizing scheme
  1094. *
  1095. * @param {number} $close-icon-font-size
  1096. * Tab close icon font-size
  1097. *
  1098. * @param {number} $close-icon-font-size-big
  1099. * Tab close icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  1100. *
  1101. * @param {number/list} $close-icon-margin
  1102. * Tab close icon margin.
  1103. * Used to position the close icon relative to the top right corner of the tab.
  1104. *
  1105. * @param {number/list} $close-icon-margin-big
  1106. * Tab close icon margin in the {@link Global_CSS#$enable-big big} sizing scheme.
  1107. * Used to position the close icon relative to the top right corner of the tab.
  1108. *
  1109. * @param {number} $close-icon-spacing
  1110. * Additional spacing to add to the side of the tab that contains the close icon when closable
  1111. *
  1112. * @param {number} $close-icon-spacing-big
  1113. * Additional spacing to add to the side of the tab that contains the close icon when closable
  1114. * in the {@link Global_CSS#$enable-big big} sizing scheme
  1115. */
  1116. @mixin tab-ui(
  1117. $ui: null,
  1118. $xtype: tab,
  1119. $background-color: null,
  1120. $hovered-background-color: null,
  1121. $pressed-background-color: null,
  1122. $active-background-color: null,
  1123. $focused-background-color: null,
  1124. $active-focused-background-color: null,
  1125. $disabled-background-color: null,
  1126. $box-shadow: null,
  1127. $hovered-box-shadow: null,
  1128. $pressed-box-shadow: null,
  1129. $active-box-shadow: null,
  1130. $focused-box-shadow: null,
  1131. $active-focused-box-shadow: null,
  1132. $disabled-box-shadow: null,
  1133. $background-gradient: null,
  1134. $hovered-background-gradient: null,
  1135. $pressed-background-gradient: null,
  1136. $active-background-gradient: null,
  1137. $focused-background-gradient: null,
  1138. $active-focused-background-gradient: null,
  1139. $disabled-background-gradient: null,
  1140. $color: null,
  1141. $hovered-color: null,
  1142. $pressed-color: null,
  1143. $active-color: null,
  1144. $focused-color: null,
  1145. $active-focused-color: null,
  1146. $disabled-color: null,
  1147. $border-color: null,
  1148. $hovered-border-color: null,
  1149. $pressed-border-color: null,
  1150. $active-border-color: null,
  1151. $focused-border-color: null,
  1152. $active-focused-border-color: null,
  1153. $disabled-border-color: null,
  1154. $focused-outline-color: null,
  1155. $active-focused-outline-color: null,
  1156. $focused-outline-style: null,
  1157. $focused-outline-width: null,
  1158. $focused-outline-offset: null,
  1159. $border-width: null,
  1160. $border-style: null,
  1161. $border-radius: null,
  1162. $border-radius-big: null,
  1163. $font-weight: null,
  1164. $font-size: null,
  1165. $font-size-big: null,
  1166. $stacked-font-size: null,
  1167. $stacked-font-size-big: null,
  1168. $line-height: null,
  1169. $line-height-big: null,
  1170. $font-family: null,
  1171. $text-transform: null,
  1172. $text-transform-big: null,
  1173. $padding: null,
  1174. $padding-big: null,
  1175. $icon-only-padding: null,
  1176. $icon-only-padding-big: null,
  1177. $icon-color: null,
  1178. $hovered-icon-color: null,
  1179. $pressed-icon-color: null,
  1180. $active-icon-color: null,
  1181. $focused-icon-color: null,
  1182. $active-focused-icon-color: null,
  1183. $disabled-icon-color: null,
  1184. $icon-size: null,
  1185. $icon-size-big: null,
  1186. $icon-font-size: null,
  1187. $icon-font-size-big: null,
  1188. $icon-horizontal-spacing: null,
  1189. $icon-horizontal-spacing-big: null,
  1190. $icon-vertical-spacing: null,
  1191. $icon-vertical-spacing-big: null,
  1192. $disabled-opacity: null,
  1193. $arrow-icon: null,
  1194. $arrow-icon-color: null,
  1195. $hovered-arrow-icon-color: null,
  1196. $pressed-arrow-icon-color: null,
  1197. $active-arrow-icon-color: null,
  1198. $focused-arrow-icon-color: null,
  1199. $active-focused-arrow-icon-color: null,
  1200. $disabled-arrow-icon-color: null,
  1201. $arrow-icon-size: null,
  1202. $arrow-icon-size-big: null,
  1203. $arrow-icon-font-size: null,
  1204. $arrow-icon-font-size-big: null,
  1205. $arrow-horizontal-spacing: null,
  1206. $arrow-horizontal-spacing-big: null,
  1207. $arrow-vertical-spacing: null,
  1208. $arrow-vertical-spacing-big: null,
  1209. $badge-background-color: null,
  1210. $badge-background-gradient: null,
  1211. $badge-color: null,
  1212. $badge-border-color: null,
  1213. $badge-border-radius: null,
  1214. $badge-min-width: null,
  1215. $badge-max-width: null,
  1216. $badge-font-weight: null,
  1217. $badge-font-size: null,
  1218. $badge-font-size-big: null,
  1219. $badge-font-family: null,
  1220. $badge-line-height: null,
  1221. $badge-line-height-big: null,
  1222. $badge-top: null,
  1223. $badge-right: null,
  1224. $badge-bottom: null,
  1225. $badge-left: null,
  1226. $badge-padding: null,
  1227. $badge-padding-big: null,
  1228. $active-indicator-background-color: null,
  1229. $active-indicator-height: null,
  1230. $close-icon: null,
  1231. $close-icon-color: null,
  1232. $close-icon-hovered-color: null,
  1233. $close-icon-pressed-color: null,
  1234. $active-close-icon-color: null,
  1235. $active-close-icon-hovered-color: null,
  1236. $active-close-icon-pressed-color: null,
  1237. $close-icon-background-color: null,
  1238. $close-icon-hovered-background-color: null,
  1239. $close-icon-pressed-background-color: null,
  1240. $active-close-icon-background-color: null,
  1241. $active-close-icon-hovered-background-color: null,
  1242. $active-close-icon-pressed-background-color: null,
  1243. $close-icon-border-radius: null,
  1244. $close-icon-border-radius-big: null,
  1245. $close-icon-size: null,
  1246. $close-icon-size-big: null,
  1247. $close-icon-font-size: null,
  1248. $close-icon-font-size-big: null,
  1249. $close-icon-margin: null,
  1250. $close-icon-margin-big: null,
  1251. $close-icon-spacing: null,
  1252. $close-icon-spacing-big: null
  1253. ) {
  1254. $ui-suffix: ui-suffix($ui);
  1255. $arguments: map-merge((
  1256. derive-colors: false,
  1257. derive-border-colors: false,
  1258. derive-outline-colors: false,
  1259. derive-background-colors: false,
  1260. derive-background-gradients: false
  1261. ), intersect-arguments(tab-ui, button-ui));
  1262. @include button-ui($arguments...);
  1263. .#{$prefix}#{$xtype}#{$ui-suffix} {
  1264. .#{$prefix}close-icon-el {
  1265. background-color: $close-icon-background-color;
  1266. border-radius: $close-icon-border-radius;
  1267. margin: $close-icon-margin;
  1268. @include icon(
  1269. $icon: $close-icon,
  1270. $color: $close-icon-color,
  1271. $size: $close-icon-size,
  1272. $size-big: $close-icon-size-big,
  1273. $font-size: $close-icon-font-size,
  1274. $font-size-big: $close-icon-font-size-big
  1275. );
  1276. @if $enable-big {
  1277. .#{$prefix}big & {
  1278. border-radius: $close-icon-border-radius-big;
  1279. margin: $close-icon-margin-big;
  1280. }
  1281. }
  1282. &:hover {
  1283. color: $close-icon-hovered-color;
  1284. background-color: $close-icon-hovered-background-color;
  1285. }
  1286. &:active {
  1287. color: $close-icon-pressed-color;
  1288. background-color: $close-icon-pressed-background-color;
  1289. }
  1290. }
  1291. &.#{$prefix}active {
  1292. color: $active-color;
  1293. box-shadow: $active-box-shadow;
  1294. .#{$prefix}inner-el {
  1295. border-color: $active-border-color;
  1296. @include background-gradient($active-background-color, $active-background-gradient);
  1297. }
  1298. .#{$prefix}icon-el {
  1299. color: $active-icon-color;
  1300. }
  1301. .#{$prefix}arrow-el {
  1302. color: $active-arrow-icon-color;
  1303. }
  1304. .#{$prefix}active-indicator-el {
  1305. background-color: $active-indicator-background-color;
  1306. height: $active-indicator-height;
  1307. }
  1308. .#{$prefix}close-icon-el {
  1309. color: $active-close-icon-color;
  1310. background-color: $active-close-icon-background-color;
  1311. &:hover {
  1312. color: $active-close-icon-hovered-color;
  1313. background-color: $active-close-icon-hovered-background-color;
  1314. }
  1315. &:active {
  1316. color: $active-close-icon-pressed-color;
  1317. background-color: $active-close-icon-pressed-background-color;
  1318. }
  1319. }
  1320. }
  1321. &.#{$prefix}active.#{$prefix}focused {
  1322. color: $active-focused-color;
  1323. box-shadow: $active-focused-box-shadow;
  1324. .#{$prefix}inner-el {
  1325. border-color: $active-focused-border-color;
  1326. @include background-gradient($active-focused-background-color, $active-focused-background-gradient);
  1327. }
  1328. .#{$prefix}icon-el {
  1329. color: $active-focused-icon-color;
  1330. }
  1331. .#{$prefix}arrow-el {
  1332. color: $active-focused-arrow-icon-color;
  1333. }
  1334. &:after {
  1335. .#{$prefix}keyboard-mode & {
  1336. border-color: $active-focused-outline-color;
  1337. }
  1338. }
  1339. }
  1340. &.#{$prefix}icon-align-top,
  1341. &.#{$prefix}icon-align-bottom {
  1342. &.#{$prefix}has-icon {
  1343. font-size: $stacked-font-size;
  1344. @if $enable-big {
  1345. .#{$prefix}big & {
  1346. font-size: $tab-stacked-font-size-big;
  1347. }
  1348. }
  1349. }
  1350. }
  1351. &.#{$prefix}closable .#{$prefix}body-el {
  1352. margin-right: $close-icon-spacing;
  1353. @if $enable-big {
  1354. .#{$prefix}big & {
  1355. margin-right: $close-icon-spacing-big;
  1356. }
  1357. }
  1358. }
  1359. }
  1360. }