ItemHeader.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. /**
  2. * @class Ext.dataview.ItemHeader
  3. */
  4. //# fashion replaces $list-group-header-color
  5. /**
  6. * @var {color}
  7. * List ItemHeader color
  8. */
  9. $itemheader-color: dynamic($highlight-color);
  10. /**
  11. * @var {color}
  12. * List ItemHeader color when {@link Ext.dataview.List#pinHeaders pinned}
  13. */
  14. $itemheader-pinned-color: dynamic(null);
  15. //# fashion replaces $list-group-header-background-color
  16. /**
  17. * @var {color}
  18. * List ItemHeader background-color
  19. */
  20. $itemheader-background-color: dynamic($neutral-light-color);
  21. /**
  22. * @var {color}
  23. * List ItemHeader background-color when {@link Ext.dataview.List#pinHeaders pinned}
  24. */
  25. $itemheader-pinned-background-color: dynamic(null);
  26. /**
  27. * @var {number/list}
  28. * List ItemHeader border-width
  29. */
  30. $itemheader-border-width: dynamic($listitem-border-width);
  31. /**
  32. * @var {string}
  33. * List ItemHeader border-style
  34. */
  35. $itemheader-border-style: dynamic($listitem-border-style);
  36. //# fashion replaces $list-group-header-border-color
  37. /**
  38. * @var {color}
  39. * List ItemHeader border-color
  40. */
  41. $itemheader-border-color: dynamic($neutral-medium-dark-color);
  42. /**
  43. * @var {color}
  44. * List ItemHeader border-color when {@link Ext.dataview.List#pinHeaders pinned}
  45. */
  46. $itemheader-pinned-border-color: dynamic(null);
  47. /**
  48. * @var {number}
  49. * List ItemHeader outline-width when focused
  50. */
  51. $itemheader-focused-outline-width: dynamic($listitem-focused-outline-width);
  52. /**
  53. * @var {string}
  54. * List ItemHeader outline-style when focused
  55. */
  56. $itemheader-focused-outline-style: dynamic($listitem-focused-outline-style);
  57. /**
  58. * @var {color}
  59. * List ItemHeader outline-color when focused
  60. */
  61. $itemheader-focused-outline-color: dynamic($listitem-focused-outline-color);
  62. /**
  63. * @var {number}
  64. * List ItemHeader outline-offset when focused
  65. */
  66. $itemheader-focused-outline-offset: dynamic($listitem-focused-outline-offset);
  67. /**
  68. * @var {list}
  69. * List ItemHeader box-shadow
  70. */
  71. $itemheader-box-shadow: dynamic(null);
  72. /**
  73. * @var {list}
  74. * List ItemHeader box-shadow when {@link Ext.dataview.List#pinHeaders pinned}
  75. */
  76. $itemheader-pinned-box-shadow: dynamic($listitem-pinned-box-shadow);
  77. /**
  78. * @var {list}
  79. * List ItemHeader box-shadow when {@link Ext.dataview.List#pinFooters pinned} to the bottom
  80. */
  81. $itemheader-pinned-bottom-box-shadow: dynamic($listitem-pinned-bottom-box-shadow);
  82. //# fashion replaces $list-group-header-font-weight
  83. /**
  84. * @var {string/number}
  85. * List ItemHeader font-weight
  86. */
  87. $itemheader-font-weight: dynamic($font-weight-bold);
  88. //# fashion replaces $list-group-header-font-size
  89. /**
  90. * @var {number}
  91. * List ItemHeader font-size
  92. */
  93. $itemheader-font-size: dynamic($listitem-font-size);
  94. //# fashion replaces $list-group-header-font-size-big
  95. /**
  96. * @var {number}
  97. * List ItemHeader font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  98. */
  99. $itemheader-font-size-big: dynamic($listitem-font-size-big);
  100. //# fashion replaces $list-group-header-line-height
  101. /**
  102. * @var {number}
  103. * List ItemHeader line-height
  104. */
  105. $itemheader-line-height: dynamic($listitem-line-height);
  106. //# fashion replaces $list-group-header-line-height-big
  107. /**
  108. * @var {number}
  109. * List ItemHeader line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  110. */
  111. $itemheader-line-height-big: dynamic($listitem-line-height-big);
  112. //# fashion replaces $list-group-header-font-family
  113. /**
  114. * @var {string}
  115. * List ItemHeader font-family
  116. */
  117. $itemheader-font-family: dynamic($listitem-font-family);
  118. //# fashion replaces $list-group-header-padding
  119. /**
  120. * @var {number/list}
  121. * List ItemHeader padding
  122. */
  123. $itemheader-padding: dynamic($listitem-padding);
  124. //# fashion replaces $list-group-header-padding-big
  125. /**
  126. * @var {number/list}
  127. * List ItemHeader padding in the {@link Global_CSS#$enable-big big} sizing scheme
  128. */
  129. $itemheader-padding-big: dynamic($listitem-padding-big);
  130. /**
  131. * Creates a visual theme for a List ItemHeader.
  132. *
  133. * @param {string} $ui
  134. * The name of the UI being created. Can not included spaces or special punctuation
  135. * (used in CSS class names).
  136. *
  137. * @param {String} [$xtype=itemheader] (protected) The {@link Ext.Class#xtype} to use
  138. * in CSS selectors. For use by UI mixins of derived classes.
  139. *
  140. * @param {color} $color
  141. * List ItemHeader color
  142. *
  143. * @param {color} $pinned-color
  144. * List ItemHeader color when {@link Ext.dataview.List#pinHeaders pinned}
  145. *
  146. * @param {color} $background-color
  147. * List ItemHeader background-color
  148. *
  149. * @param {color} $pinned-background-color
  150. * List ItemHeader background-color when {@link Ext.dataview.List#pinHeaders pinned}
  151. *
  152. * @param {number/list} $border-width
  153. * List ItemHeader border-width
  154. *
  155. * @param {string} $border-style
  156. * List ItemHeader border-style
  157. *
  158. * @param {color} $border-color
  159. * List ItemHeader border-color
  160. *
  161. * @param {color} $pinned-border-color
  162. * List ItemHeader border-color when {@link Ext.dataview.List#pinHeaders pinned}
  163. *
  164. * @param {number} $focused-outline-width
  165. * List ItemHeader outline-width when focused
  166. *
  167. * @param {string} $focused-outline-style
  168. * List ItemHeader outline-style when focused
  169. *
  170. * @param {color} $focused-outline-color
  171. * List ItemHeader outline-color when focused
  172. *
  173. * @param {number} $focused-outline-offset
  174. * List ItemHeader outline-offset when focused
  175. *
  176. * @param {list} $box-shadow
  177. * List ItemHeader box-shadow
  178. *
  179. * @param {list} $pinned-box-shadow
  180. * List ItemHeader box-shadow when {@link Ext.dataview.List#pinHeaders pinned}
  181. *
  182. * @param {list} $pinned-bottom-box-shadow
  183. * List ItemHeader box-shadow when {@link Ext.dataview.List#pinFooters pinned} to the bottom
  184. *
  185. * @param {string/number} $font-weight
  186. * List ItemHeader font-weight
  187. *
  188. * @param {number} $font-size
  189. * List ItemHeader font-size
  190. *
  191. * @param {number} $font-size-big
  192. * List ItemHeader font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  193. *
  194. * @param {number} $line-height
  195. * List ItemHeader line-height
  196. *
  197. * @param {number} $line-height-big
  198. * List ItemHeader line-height in the {@link Global_CSS#$enable-big big} sizing scheme
  199. *
  200. * @param {string} $font-family
  201. * List ItemHeader font-family
  202. *
  203. * @param {number/list} $padding
  204. * List ItemHeader padding
  205. *
  206. * @param {number/list} $padding-big
  207. * List ItemHeader padding in the {@link Global_CSS#$enable-big big} sizing scheme
  208. */
  209. @mixin itemheader-ui(
  210. $ui: null,
  211. $xtype: itemheader,
  212. $color: null,
  213. $pinned-color: null,
  214. $background-color: null,
  215. $pinned-background-color: null,
  216. $border-width: null,
  217. $border-style: null,
  218. $border-color: null,
  219. $pinned-border-color: null,
  220. $focused-outline-width: null,
  221. $focused-outline-style: null,
  222. $focused-outline-color: null,
  223. $focused-outline-offset: null,
  224. $box-shadow: null,
  225. $pinned-box-shadow: null,
  226. $pinned-bottom-box-shadow: null,
  227. $font-weight: null,
  228. $font-size: null,
  229. $font-size-big: null,
  230. $line-height: null,
  231. $line-height-big: null,
  232. $font-family: null,
  233. $padding: null,
  234. $padding-big: null
  235. ) {
  236. $ui-suffix: ui-suffix($ui);
  237. .#{$prefix}#{$xtype}#{$ui-suffix} {
  238. color: $color;
  239. background-color: $background-color;
  240. @include border($border-width, $border-style, $border-color);
  241. @include font($font-weight, $font-size, $line-height, $font-family);
  242. box-shadow: $box-shadow;
  243. margin-bottom: -(bottom($border-width));
  244. + .#{$prefix}scrolldock-end {
  245. margin-top: bottom($border-width)
  246. }
  247. @if $enable-big {
  248. .#{$prefix}big & {
  249. font-size: $font-size-big;
  250. line-height: $line-height-big;
  251. }
  252. }
  253. &.#{$prefix}pinned {
  254. color: $pinned-color;
  255. background-color: $pinned-background-color;
  256. border-color: $pinned-border-color;
  257. box-shadow: $pinned-box-shadow;
  258. }
  259. &.#{$prefix}pinned-bottom {
  260. box-shadow: $pinned-bottom-box-shadow;
  261. }
  262. &.#{$prefix}focused {
  263. .#{$prefix}keyboard-mode & {
  264. @include outline(
  265. $width: $focused-outline-width,
  266. $style: $focused-outline-style,
  267. $color: $focused-outline-color,
  268. $offset: $focused-outline-offset,
  269. $border-width: $border-width
  270. );
  271. }
  272. }
  273. }
  274. @include toolable-ui(
  275. $ui: $ui,
  276. $xtype: $xtype,
  277. $padding: $padding,
  278. $padding-big: $padding-big
  279. );
  280. }