]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-neutral/sass/var/form/field/Display.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-neutral / sass / var / form / field / Display.scss
CommitLineData
6527f429
DM
1/**\r
2 * Creates a visual theme for display fields. Note this mixin only provides styling\r
3 * for the form field body, The label and error are styled by {@link #extjs-label-ui}.\r
4 *\r
5 * @param {string} $ui\r
6 * The name of the UI being created. Can not included spaces or special punctuation\r
7 * (used in CSS class names).\r
8 *\r
9 * @param {number} [$ui-field-height=$form-field-height]\r
10 * The height of the field body that the display text must fit within. This does not set\r
11 * the height of the field, only allows the text to be centered inside the field body.\r
12 * (The height of the field body is determined by {@link #extjs-label-ui}).\r
13 *\r
14 * @param {color} [$ui-color=$form-display-field-color]\r
15 * The text color of display fields\r
16 *\r
17 * @param {number} [$ui-font-size=$form-display-field-font-size]\r
18 * The font-size of the display field\r
19 *\r
20 * @param {string} [$ui-font-family=$form-display-field-font-family]\r
21 * The font-family of the display field\r
22 *\r
23 * @param {string} [$ui-font-weight=$form-display-field-font-weight]\r
24 * The font-weight of the display field\r
25 *\r
26 * @param {number} [$ui-line-height=$form-display-field-line-height]\r
27 * The line-height of the display field\r
28 *\r
29 * @member Ext.form.field.Display\r
30 */\r
31@mixin extjs-display-field-ui(\r
32 $ui: null,\r
33 $ui-field-height: $form-field-height,\r
34 $ui-color: $form-display-field-color,\r
35 $ui-font-size: $form-display-field-font-size,\r
36 $ui-font-family: $form-display-field-font-family,\r
37 $ui-font-weight: $form-display-field-font-weight,\r
38 $ui-line-height: $form-display-field-line-height\r
39) {\r
40 .#{$prefix}form-display-field-#{$ui} {\r
41 min-height: $ui-field-height;\r
42 font: $ui-font-weight #{$ui-font-size}/#{$ui-line-height} $ui-font-family;\r
43 color: $ui-color;\r
44 margin-top: round(($ui-field-height - $ui-line-height) / 2);\r
45 }\r
46}\r