/** * Creates a visual theme for display fields. Note this mixin only provides styling * for the form field body, The label and error are styled by {@link #extjs-label-ui}. * * @param {string} $ui * The name of the UI being created. Can not included spaces or special punctuation * (used in CSS class names). * * @param {number} [$ui-field-height=$form-field-height] * The height of the field body that the display text must fit within. This does not set * the height of the field, only allows the text to be centered inside the field body. * (The height of the field body is determined by {@link #extjs-label-ui}). * * @param {color} [$ui-color=$form-display-field-color] * The text color of display fields * * @param {number} [$ui-font-size=$form-display-field-font-size] * The font-size of the display field * * @param {string} [$ui-font-family=$form-display-field-font-family] * The font-family of the display field * * @param {string} [$ui-font-weight=$form-display-field-font-weight] * The font-weight of the display field * * @param {number} [$ui-line-height=$form-display-field-line-height] * The line-height of the display field * * @param {color} [$ui-focus-border-color=$form-display-field-focus-border-color] * The outline color of the focused display field * * @param {string} [$ui-focus-border-style=$form-display-field-focus-border-style] * The outline style of the focused display field * * @param {number} [$ui-focus-border-width=$form-display-field-focus-border-width] * The outline width of the focused display field * * @member Ext.form.field.Display */@mixin extjs-display-field-ui( $ui: null, $ui-field-height: $form-field-height, $ui-color: $form-display-field-color, $ui-font-size: $form-display-field-font-size, $ui-font-family: $form-display-field-font-family, $ui-font-weight: $form-display-field-font-weight, $ui-line-height: $form-display-field-line-height, $ui-focus-border-color: $form-display-field-focus-border-color, $ui-focus-border-style: $form-display-field-focus-border-style, $ui-focus-border-width: $form-display-field-focus-border-width) { .#{$prefix}form-display-field-#{$ui} { min-height: $ui-field-height; font: $ui-font-weight #{$ui-font-size}/#{$ui-line-height} $ui-font-family; color: $ui-color; margin-top: round(($ui-field-height - $ui-line-height) / 2); } .#{$prefix}form-display-field-#{$ui}.#{$prefix}field-form-focus { .#{$prefix}keyboard-mode & { @include css-outline( $width: $ui-focus-border-width, $style: $ui-focus-border-style, $color: $ui-focus-border-color, $offset: -$ui-focus-border-width ); } // IE8 needs displayEl to be positioned for the pseudo-outline to work @if $include-ie { .#{$prefix}ie8 & { position: relative; } } }}