Bar.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /**
  2. * @class Ext.tab.Bar
  3. */
  4. /**
  5. * @var {color}
  6. * Tab Bar background-color
  7. */
  8. $tabbar-background-color: dynamic($base-color);
  9. /**
  10. * @var {string/list}
  11. * Tab Bar background-gradient. Can be either the name of a gradient defined by
  12. * {@link Global_CSS#background-gradient} or a list of color stops.
  13. */
  14. $tabbar-background-gradient: dynamic(null);
  15. /**
  16. * @var {color}
  17. * Tab Bar color
  18. */
  19. $tabbar-color: dynamic(null);
  20. /**
  21. * @var {number/list}
  22. * Tab Bar border-width
  23. */
  24. $tabbar-border-width: dynamic(null);
  25. /**
  26. * @var {string/list}
  27. * Tab Bar border-style
  28. */
  29. $tabbar-border-style: dynamic(null);
  30. /**
  31. * @var {color/list}
  32. * Tab Bar border-color
  33. */
  34. $tabbar-border-color: dynamic($panel-header-border-color);
  35. /**
  36. * @var {list}
  37. * Tab Bar box-shadow
  38. */
  39. $tabbar-box-shadow: dynamic(null);
  40. /**
  41. * @var {string/number}
  42. * Tab Bar font-weight
  43. */
  44. $tabbar-font-weight: dynamic(null);
  45. /**
  46. * @var {number}
  47. * Tab Bar font-size
  48. */
  49. $tabbar-font-size: dynamic(null);
  50. /**
  51. * @var {number}
  52. * Tab Bar font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  53. */
  54. $tabbar-font-size-big: dynamic(null);
  55. /**
  56. * @var {number}
  57. * Tab Bar line-height
  58. */
  59. $tabbar-line-height: dynamic(null);
  60. /**
  61. * @var {number}
  62. * Tab Bar line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  63. */
  64. $tabbar-line-height-big: dynamic(null);
  65. /**
  66. * @var {string}
  67. * Tab Bar font-family
  68. */
  69. $tabbar-font-family: dynamic(null);
  70. /**
  71. * @var {number/list}
  72. * Tab Bar padding
  73. */
  74. $tabbar-padding: dynamic(0);
  75. /**
  76. * @var {number/list}
  77. * Tab Bar padding in the {@link Global_CSS#$enable-big big} sizing scheme
  78. */
  79. $tabbar-padding-big: dynamic($tabbar-padding);
  80. //# fashion replaces $tabbar-tab-spacing
  81. /**
  82. * @var {number}
  83. * The space in between horizontally aligned Tab Bar items
  84. */
  85. $tabbar-horizontal-spacing: dynamic(1px);
  86. //# fashion replaces $tabbar-tab-spacing-big
  87. /**
  88. * @var {number}
  89. * The space in between horizontally aligned Tab Bar items in the
  90. * {@link Global_CSS#$enable-big big} sizing scheme
  91. */
  92. $tabbar-horizontal-spacing-big: dynamic($tabbar-horizontal-spacing);
  93. /**
  94. * @var {number}
  95. * The space in between vertically aligned Tab Bar items
  96. */
  97. $tabbar-vertical-spacing: dynamic(null);
  98. /**
  99. * @var {number}
  100. * The space in between vertically aligned Tab Bar items in the
  101. * {@link Global_CSS#$enable-big big} sizing scheme
  102. */
  103. $tabbar-vertical-spacing-big: dynamic(null);
  104. /**
  105. * @var {color}
  106. * Tab Bar {@link Ext.Title Title} color
  107. */
  108. $tabbar-title-color: dynamic(null);
  109. /**
  110. * @var {string/number}
  111. * Tab Bar {@link Ext.Title Title} font-weight
  112. */
  113. $tabbar-title-font-weight: dynamic($tabbar-font-weight);
  114. /**
  115. * @var {number}
  116. * Tab Bar {@link Ext.Title Title} font-size
  117. */
  118. $tabbar-title-font-size: dynamic($tabbar-font-size);
  119. /**
  120. * @var {number}
  121. * Tab Bar {@link Ext.Title Title} font-size in the
  122. * {@link Global_CSS#$enable-big big} sizing scheme
  123. */
  124. $tabbar-title-font-size-big: dynamic($tabbar-font-size-big);
  125. /**
  126. * @var {string}
  127. * Tab Bar {@link Ext.Title Title} font-family
  128. */
  129. $tabbar-title-font-family: dynamic(null);
  130. /**
  131. * @var {number}
  132. * Tab Bar min-height
  133. */
  134. $tabbar-min-height: dynamic(0);
  135. /**
  136. * @var {number}
  137. * Tab Bar min-height in the {@link Global_CSS#$enable-big big} sizing scheme
  138. */
  139. $tabbar-min-height-big: dynamic(0);
  140. /**
  141. * @var {number}
  142. * Tab Bar strip height
  143. */
  144. $tabbar-strip-height: dynamic(5px);
  145. /**
  146. * @var {number}
  147. * Tab Bar strip height in the {@link Global_CSS#$enable-big big} sizing scheme
  148. */
  149. $tabbar-strip-height-big: dynamic($tabbar-strip-height);
  150. /**
  151. * @var {color}
  152. * Tab Bar strip background color
  153. */
  154. $tabbar-strip-background-color: dynamic($tab-active-background-color);
  155. /**
  156. * Creates a visual theme for a Tab Bar.
  157. *
  158. * @param {string} $ui
  159. * The name of the UI being created. Can not included spaces or special punctuation
  160. * (used in CSS class names).
  161. *
  162. * @param {String} [$xtype=tabbar] (protected) The {@link Ext.Class#xtype} to use
  163. * in CSS selectors. For use by UI mixins of derived classes.
  164. *
  165. * @param {color} $background-color
  166. * Tab Bar background-color
  167. *
  168. * @param {string/list} $background-gradient
  169. * Tab Bar background-gradient. Can be either the name of a gradient defined by
  170. * {@link Global_CSS#background-gradient} or a list of color stops.
  171. *
  172. * @param {color} $color
  173. * Tab Bar border-width
  174. *
  175. * @param {number/list} $border-width
  176. * Tab Bar border-width
  177. *
  178. * @param {string/list} $border-style
  179. * Tab Bar border-style
  180. *
  181. * @param {color} $border-color
  182. * Tab Bar border-color
  183. *
  184. * @param {color} $box-shadow
  185. * Tab Bar box-shadow
  186. *
  187. * @param {string/number} $font-weight
  188. * Tab Bar font-weight
  189. *
  190. * @param {number} $font-size
  191. * Tab Bar font-size
  192. *
  193. * @param {number} $font-size-big
  194. * Tab Bar font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  195. *
  196. * @param {number} $line-height
  197. * Tab Bar line-height
  198. *
  199. * @param {number} $line-height-big
  200. * Tab Bar line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  201. *
  202. * @param {string} $font-family
  203. * Tab Bar font-family
  204. *
  205. * @param {number/list} $padding
  206. * Tab Bar padding
  207. *
  208. * @param {number/list} $padding-big
  209. * Tab Bar padding in the {@link Global_CSS#$enable-big big} sizing scheme
  210. *
  211. * @param {number} $horizontal-spacing
  212. * The space in between horizontally aligned Tab Bar items
  213. *
  214. * @param {number} $horizontal-spacing-big
  215. * The space in between horizontally aligned Tab Bar items in the
  216. * {@link Global_CSS#$enable-big big} sizing scheme
  217. *
  218. * @param {number} $vertical-spacing
  219. * The space in between vertically aligned Tab Bar items
  220. *
  221. * @param {number} $vertical-spacing-big
  222. * The space in between vertically aligned Tab Bar items in the
  223. * {@link Global_CSS#$enable-big big} sizing scheme
  224. *
  225. * @param {color} $title-color
  226. * Tab Bar {@link Ext.Title Title} color
  227. *
  228. * @param {string/number} $title-font-weight
  229. * Tab Bar {@link Ext.Title Title} font-weight
  230. *
  231. * @param {number} $title-font-size
  232. * Tab Bar {@link Ext.Title Title} font-size
  233. *
  234. * @param {number} $title-font-size-big
  235. * Tab Bar {@link Ext.Title Title} font-size in the
  236. * {@link Global_CSS#$enable-big big} sizing scheme
  237. *
  238. * @param {string} $title-font-family
  239. * Tab Bar {@link Ext.Title Title} font-family
  240. *
  241. * @param {number} $min-height
  242. * Tab Bar min-height
  243. *
  244. * @param {number} $min-height-big
  245. * Tab Bar min-height in the {@link Global_CSS#$enable-big big} sizing scheme
  246. *
  247. * @param {number} $strip-height
  248. * Tab Bar strip height
  249. *
  250. * @param {number} $strip-height-big
  251. * Tab Bar strip height in the {@link Global_CSS#$enable-big big} sizing scheme
  252. *
  253. * @param {color} $strip-background-color
  254. * Tab Bar strip background color
  255. */
  256. @mixin tabbar-ui(
  257. $ui: null,
  258. $xtype: tabbar,
  259. $background-color: null,
  260. $background-gradient: null,
  261. $color: null,
  262. $border-width: null,
  263. $border-style: null,
  264. $border-color: null,
  265. $box-shadow: null,
  266. $font-weight: null,
  267. $font-size: null,
  268. $font-size-big: null,
  269. $line-height: null,
  270. $line-height-big: null,
  271. $font-family: null,
  272. $padding: null,
  273. $padding-big: null,
  274. $horizontal-spacing: null,
  275. $horizontal-spacing-big: null,
  276. $vertical-spacing: null,
  277. $vertical-spacing-big: null,
  278. $title-color: null,
  279. $title-font-weight: null,
  280. $title-font-size: null,
  281. $title-font-size-big: null,
  282. $title-font-family: null,
  283. $min-height: null,
  284. $min-height-big: null,
  285. $strip-height: null,
  286. $strip-height-big: null,
  287. $strip-background-color: null
  288. ) {
  289. $ui-suffix: ui-suffix($ui);
  290. $arguments: intersect-arguments(tabbar-ui, toolbar-ui);
  291. @include toolbar-ui($arguments...);
  292. .#{$prefix}#{$xtype}#{$ui-suffix}-body-el {
  293. padding-bottom: $strip-height;
  294. @if $enable-big {
  295. .#{$prefix}big & {
  296. padding-bottom: $strip-height-big;
  297. }
  298. }
  299. }
  300. .#{$prefix}strip-el {
  301. background-color: $strip-background-color;
  302. height: $strip-height;
  303. @if $enable-big {
  304. .#{$prefix}big & {
  305. height: $strip-height-big;
  306. }
  307. }
  308. }
  309. .#{$prefix}#{$xtype}#{$ui-suffix} .#{$prefix}boxscroller.#{$prefix}horizontal > .#{$prefix}tool {
  310. margin-bottom: $strip-height;
  311. .#{$prefix}big & {
  312. margin-bottom: $strip-height-big;
  313. }
  314. }
  315. }