grid-field.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. /*
  2. * Vars for fields which are rendered to fit inside grid cells.
  3. * This includes cell and row editor fields and fields in widget columns.
  4. */
  5. // <editor-fold desc="Grid Editor Base Variables">
  6. /**
  7. * @class Ext.form.field.Base
  8. */
  9. /**
  10. * @var {number}
  11. * The height of text fields rendered in the context of a grid cell. Defaults to $form-field-height. If grid row
  12. * height is smaller than $form-field-height, defaults to the grid row height. Grid row
  13. * height is calculated by adding $grid-row-cell-line-height to the top and bottom values of
  14. * $grid-cell-inner-padding.
  15. */
  16. $grid-cell-field-height: dynamic(if($grid-row-height < $form-field-height, $grid-row-height, $form-field-height));
  17. /**
  18. * @var {number/list}
  19. * The padding of grid fields.
  20. */
  21. $grid-cell-field-padding: dynamic(
  22. top($form-field-padding)
  23. right($grid-cell-inner-padding) - $form-field-border-width
  24. bottom($form-field-padding)
  25. left($grid-cell-inner-padding) - $form-field-border-width
  26. );
  27. /**
  28. * @var {number}
  29. * The color of the grid field text
  30. */
  31. $grid-cell-field-color: dynamic($grid-row-cell-color);
  32. /**
  33. * @var {number}
  34. * The font size of the grid field text
  35. */
  36. $grid-cell-field-font-size: dynamic($grid-row-cell-font-size);
  37. /**
  38. * @var {string}
  39. * The font-weight of the grid field text
  40. */
  41. $grid-cell-field-font-weight: dynamic($grid-row-cell-font-weight);
  42. /**
  43. * @var {string}
  44. * The font-family of the grid field text
  45. */
  46. $grid-cell-field-font-family: dynamic($grid-row-cell-font-family);
  47. /**
  48. * @var {boolean}
  49. * True to include the "grid-cell" form field UIs input fields rendered in the context of a grid cell.
  50. *
  51. * This defaults to `true`. It is required if either grid editors
  52. * ({@link Ext.grid.plugin.CellEditing cell} or {@link Ext.grid.plugin.RowEditing row})
  53. * are being used, or if a {@link Ext.grid.column.Widget WidgetColumn} is being used to
  54. * house an input field.
  55. */
  56. $include-grid-cell-field-ui: dynamic(false);
  57. // </editor-fold>
  58. // <editor-fold desc="Grid Editor Text Field Variables">
  59. /**
  60. * @class Ext.form.field.Text
  61. */
  62. /**
  63. * @var {number}
  64. * The height of text fields rendered in the context of a grid cell
  65. */
  66. $grid-cell-text-field-height: dynamic($grid-cell-field-height);
  67. /**
  68. * @var {number}
  69. * Font size for text fields rendered in the context of a grid cell.
  70. */
  71. $grid-cell-text-field-font-size: dynamic($grid-cell-field-font-size);
  72. /**
  73. * @var {string}
  74. * Font family for text fields rendered in the context of a grid cell.
  75. */
  76. $grid-cell-text-field-font-family: dynamic($grid-cell-field-font-family);
  77. /**
  78. * @var {string}
  79. * Font weight for text fields rendered in the context of a grid cell.
  80. */
  81. $grid-cell-text-field-font-weight: dynamic($grid-cell-field-font-weight);
  82. /**
  83. * @var {color}
  84. * The color of a text field's input element when rendered in the context of a grid cell
  85. */
  86. $grid-cell-text-field-color: dynamic($grid-cell-field-color);
  87. /**
  88. * @var {color}
  89. * The background color of a text field's input element when rendered in the context of a grid cell
  90. */
  91. $grid-cell-text-field-background-color: dynamic($form-text-field-background-color);
  92. /**
  93. * @var {number/list}
  94. * The border width of text fields rendered in the context of a grid cell
  95. */
  96. $grid-cell-text-field-border-width: dynamic($form-text-field-border-width);
  97. /**
  98. * @var {string/list}
  99. * The border style of text fields rendered in the context of a grid cell
  100. */
  101. $grid-cell-text-field-border-style: dynamic($form-text-field-border-style);
  102. /**
  103. * @var {color/list}
  104. * The border color of text fields rendered in the context of a grid cell
  105. */
  106. $grid-cell-text-field-border-color: dynamic($form-text-field-border-color);
  107. /**
  108. * @var {color/list}
  109. * The border color of the focused text fields rendered in the context of a grid cell
  110. */
  111. $grid-cell-text-field-focus-border-color: dynamic($form-text-field-focus-border-color);
  112. /**
  113. * @var {color}
  114. * Border color for invalid text fields rendered in the context of a grid cell.
  115. */
  116. $grid-cell-text-field-invalid-border-color: dynamic($form-text-field-invalid-border-color);
  117. /**
  118. * @var {number/list}
  119. * Border radius for text fields rendered in the context of a grid cell.
  120. */
  121. $grid-cell-text-field-border-radius: dynamic($form-text-field-border-radius);
  122. /**
  123. * @var {string}
  124. * The background image of a text field's input element when rendered in the context of a grid cell
  125. */
  126. $grid-cell-text-field-background-image: dynamic($form-text-field-background-image);
  127. /**
  128. * @var {number/list}
  129. * The padding of a text field's input element when rendered in the context of a grid cell
  130. */
  131. $grid-cell-text-field-padding: dynamic($grid-cell-field-padding);
  132. /**
  133. * @var {color}
  134. * Text color for empty text fields rendered in the context of a grid cell.
  135. */
  136. $grid-cell-text-field-empty-color: dynamic($form-text-field-empty-color);
  137. /**
  138. * @var {number}
  139. * @private
  140. * The default width of a text field's body element (the element that contains the input
  141. * element and triggers) when the field is rendered in the context of a grid cell and not sized explicitly using the {@link #width}
  142. * config, or sized by it's containing layout.
  143. */
  144. $grid-cell-text-field-body-width: dynamic($form-text-field-body-width);
  145. /**
  146. * @var {color}
  147. * Background color of a text field's input element when rendered in the context of a grid cell and the field value is invalid.
  148. */
  149. $grid-cell-text-field-invalid-background-color: dynamic($form-text-field-invalid-background-color);
  150. /**
  151. * @var {string}
  152. * Background image of a grid field text field's input element when the field value is invalid.
  153. */
  154. $grid-cell-text-field-invalid-background-image: dynamic($form-text-field-invalid-background-image);
  155. /**
  156. * @var {string}
  157. * Background repeat of the grid field text field's input element when the field value is invalid.
  158. */
  159. $grid-cell-text-field-invalid-background-repeat: dynamic($form-text-field-invalid-background-repeat);
  160. /**
  161. * @var {string/list}
  162. * Background position of the grid field text field's input element when rendered in the context of a grid cell and the field value is invalid.
  163. */
  164. $grid-cell-text-field-invalid-background-position: dynamic($form-text-field-invalid-background-position);
  165. /**
  166. * @var {boolean}
  167. * `true` to use classic-theme styled border for text fields rendered in the context of a grid cell.
  168. */
  169. $grid-cell-text-field-classic-border: dynamic($form-text-field-classic-border);
  170. /**
  171. * @var {number/string}
  172. * The line-height to use for the TextArea's text when rendered in the context of a grid cell
  173. */
  174. $grid-cell-textarea-line-height: dynamic($form-textarea-line-height);
  175. /**
  176. * @var {number}
  177. * The default width of the grid field TextArea's body element (the element that
  178. * contains the textarea html element when the field is rendered in the context of a grid cell and not sized explicitly using the
  179. * {@link #width} config, or sized by it's containing layout.
  180. */
  181. $grid-cell-textarea-body-height: dynamic($form-textarea-body-height);
  182. /**
  183. * @var {color}
  184. * Text color for file fields rendered in the context of a grid cell
  185. */
  186. $grid-cell-file-field-color: dynamic($form-file-field-color);
  187. /**
  188. * @var {number}
  189. * The width of a text field's trigger element when rendered in the context of a grid cell
  190. */
  191. $grid-cell-field-trigger-width: dynamic($form-trigger-width);
  192. /**
  193. * @var {number/list}
  194. * The width of a text field's trigger's border when rendered in the context of a grid cell
  195. */
  196. $grid-cell-field-trigger-border-width: dynamic($form-trigger-border-width);
  197. /**
  198. * @var {color/list}
  199. * The color of a text field's trigger's border when rendered in the context of a grid cell
  200. */
  201. $grid-cell-field-trigger-border-color: dynamic($form-trigger-border-color);
  202. /**
  203. * @var {string/list}
  204. * The style of a text field's trigger's border when rendered in the context of a grid cell
  205. */
  206. $grid-cell-field-trigger-border-style: dynamic($form-trigger-border-style);
  207. /**
  208. * @var {color}
  209. * The color of a text field's trigger's border when rendered in the context of a grid cell and hovered
  210. */
  211. $grid-cell-field-trigger-border-color-over: dynamic($form-trigger-border-color);
  212. /**
  213. * @var {color}
  214. * The color of a text field's trigger's border when rendered in the context of a grid cell and the field is focused
  215. */
  216. $grid-cell-field-trigger-border-color-focus: dynamic($form-trigger-border-color-focus);
  217. /**
  218. * @var {color}
  219. * The color of a text field's trigger's border when rendered in the context of a grid cell and the field is focused and the trigger is hovered
  220. */
  221. $grid-cell-field-trigger-border-color-pressed: dynamic($grid-cell-field-trigger-border-color-over);
  222. /**
  223. * @var {string}
  224. * The default background image for text field triggers when rendered in the context of a grid cell
  225. */
  226. $grid-cell-field-trigger-background-image: dynamic($form-trigger-background-image);
  227. /**
  228. * @var {color}
  229. * The background color of a text field's trigger element when rendered in the context of a grid cell
  230. */
  231. $grid-cell-field-trigger-background-color: dynamic($form-trigger-background-color);
  232. /**
  233. * @var {boolean}
  234. * True to include the "grid-cell" text field UI
  235. */
  236. $include-text-field-grid-ui: dynamic($include-grid-cell-field-ui);
  237. /**
  238. * @var {boolean}
  239. * True to include the "grid-cell" tag field UI
  240. */
  241. $include-tag-field-grid-ui: dynamic($include-grid-cell-field-ui);
  242. /**
  243. * @var {number/list}
  244. * The padding of a tag field's input element when rendered in the context of a grid cell
  245. */
  246. $grid-cell-tag-field-padding: dynamic($tag-field-padding);
  247. /**
  248. * @var {number/list}
  249. * The margin of a tag field's items when rendered in the context of a grid cell
  250. */
  251. $grid-cell-tag-field-item-margin: dynamic($tag-field-item-margin);
  252. // </editor-fold>
  253. // <editor-fold desc="Grid Editor Spinner Variables"
  254. /**
  255. * @class Ext.form.field.Spinner
  256. */
  257. /**
  258. * @var {boolean}
  259. * True to use vertically oriented spinner triggers when rendered in the context of a grid cell.
  260. */
  261. $grid-cell-spinner-trigger-vertical: dynamic($spinner-trigger-vertical);
  262. /**
  263. * @var {string}
  264. * Background image for vertically oriented grid field spinner triggers when rendered in the context of a grid cell
  265. */
  266. $grid-cell-spinner-trigger-vertical-background-image: dynamic($spinner-trigger-vertical-background-image);
  267. /**
  268. * @var {string}
  269. * Background image for the "up" trigger when grid field spinner trigger buttons are rendered in the context of a grid cell and horizontally aligned
  270. */
  271. $grid-cell-spinner-trigger-up-background-image: dynamic($spinner-trigger-up-background-image);
  272. /**
  273. * @var {string}
  274. * Background image for the "down" trigger when grid field spinner trigger buttons are rendered in the context of a grid cell and horizontally aligned
  275. */
  276. $grid-cell-spinner-trigger-down-background-image: dynamic($spinner-trigger-down-background-image);
  277. /**
  278. * @var {boolean}
  279. * True to include the "grid-cell" spinner UI
  280. */
  281. $include-spinner-trigger-grid-ui: dynamic($include-grid-cell-field-ui);
  282. // </editor-fold>
  283. // <editor-fold desc="Grid Editor Checkbox Variables"
  284. /**
  285. * @var {number}
  286. * The size of a checkbox when rendered in the context of a grid cell
  287. */
  288. $grid-cell-checkbox-size: dynamic($form-checkbox-size);
  289. /**
  290. * @var {string}
  291. * The background-image of a checkbox when rendered in the context of a grid cell
  292. */
  293. $grid-cell-checkbox-background-image: dynamic($form-checkbox-background-image);
  294. /**
  295. * @var {string}
  296. * The background-image of a radio button when rendered in the context of a grid cell
  297. */
  298. $grid-cell-radio-background-image: dynamic($form-radio-background-image);
  299. /**
  300. * @var {boolean}
  301. * True to include the "grid-cell" checkbox UI
  302. */
  303. $include-checkbox-grid-ui: dynamic($include-grid-cell-field-ui);
  304. // </editor-fold>
  305. // <editor-fold desc="Grid Editor Display Field Variables">
  306. /**
  307. * @class Ext.form.field.Display
  308. */
  309. /**
  310. * @var {color}
  311. * The text color of display fields rendered in the context of a grid cell
  312. */
  313. $grid-cell-display-field-color: dynamic($grid-cell-field-color);
  314. /**
  315. * @var {number}
  316. * The font-size of display fields rendered in the context of a grid cell
  317. */
  318. $grid-cell-display-field-font-size: dynamic($grid-cell-field-font-size);
  319. /**
  320. * @var {string}
  321. * The font-family of display fields rendered in the context of a grid cell
  322. */
  323. $grid-cell-display-field-font-family: dynamic($grid-cell-field-font-family);
  324. /**
  325. * @var {string}
  326. * The font-weight of display fields rendered in the context of a grid cell
  327. */
  328. $grid-cell-display-field-font-weight: dynamic($grid-cell-field-font-weight);
  329. /**
  330. * @var {number}
  331. * The line-height of display fields rendered in the context of a grid cell
  332. */
  333. $grid-cell-display-field-line-height: dynamic($grid-row-cell-line-height);
  334. /**
  335. * @var {boolean}
  336. * True to include the "default" display field UI
  337. */
  338. $include-display-field-grid-ui: dynamic($include-grid-cell-field-ui);
  339. // </editor-fold>