CheckboxGroup.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * @class Ext.form.CheckboxGroup
  3. */
  4. /**
  5. * @var {number/list}
  6. * The padding of the CheckboxGroup body element
  7. */
  8. $form-checkboxgroup-body-padding: dynamic(0 4px);
  9. /**
  10. * @var {color}
  11. * The border color of the CheckboxGroup body element when in an invalid state.
  12. */
  13. $form-checkboxgroup-body-invalid-border-color: dynamic($form-field-invalid-border-color);
  14. /**
  15. * @var {string}
  16. * The border style of the CheckboxGroup body element when in an invalid state.
  17. */
  18. $form-checkboxgroup-body-invalid-border-style: dynamic(solid);
  19. /**
  20. * @var {number}
  21. * The border width of the CheckboxGroup body element when in an invalid state.
  22. */
  23. $form-checkboxgroup-body-invalid-border-width: dynamic(1px);
  24. /**
  25. * @var {string}
  26. * The background image of the CheckboxGroup body element when in an invalid state.
  27. */
  28. $form-checkboxgroup-body-invalid-background-image: dynamic($form-field-invalid-background-image);
  29. /**
  30. * @var {string}
  31. * The background-repeat of the CheckboxGroup body element when in an invalid state.
  32. */
  33. $form-checkboxgroup-body-invalid-background-repeat: dynamic($form-field-invalid-background-repeat);
  34. /**
  35. * @var {string}
  36. * The background-position of the CheckboxGroup body element when in an invalid state.
  37. */
  38. $form-checkboxgroup-body-invalid-background-position: dynamic($form-field-invalid-background-position);
  39. /**
  40. * @var {boolean}
  41. * True to include the "default" checkboxgroup UI
  42. */
  43. $include-checkboxgroup-default-ui: dynamic($include-field-default-ui);
  44. /**
  45. * Creates a visual theme for a CheckboxGroup buttons. Note this mixin only provides
  46. * styling for the CheckboxGroup body and its {@link Ext.form.field.Checkbox#boxLabel}, The {@link #fieldLabel}
  47. * and error icon/message are styled by {@link #extjs-label-ui}.
  48. *
  49. * @param {string} $ui
  50. * The name of the UI being created. Can not included spaces or special punctuation
  51. * (used in CSS class names).
  52. *
  53. * @param {number/list} [$ui-body-padding=$form-checkboxgroup-body-padding]
  54. * The padding of the CheckboxGroup body element
  55. *
  56. * @param {color} [$ui-body-invalid-border-color=$form-checkboxgroup-body-invalid-border-color]
  57. * The border color of the CheckboxGroup body element when in an invalid state.
  58. *
  59. * @param {string} [$ui-body-invalid-border-style=$form-checkboxgroup-body-invalid-border-style]
  60. * The border style of the CheckboxGroup body element when in an invalid state.
  61. *
  62. * @param {number} [$ui-body-invalid-border-width=$form-checkboxgroup-body-invalid-border-width]
  63. * The border width of the CheckboxGroup body element when in an invalid state.
  64. *
  65. * @param {string} [$ui-body-invalid-background-image=$form-checkboxgroup-body-invalid-background-image]
  66. * The background image of the CheckboxGroup body element when in an invalid state.
  67. *
  68. * @param {string} [$ui-body-invalid-background-repeat=$form-checkboxgroup-body-invalid-background-repeat]
  69. * The background-repeat value of the CheckboxGroup body element when in an invalid state.
  70. *
  71. * @param {string} [$ui-body-invalid-background-position=$form-checkboxgroup-body-invalid-background-position]
  72. * The background-position of the CheckboxGroup body element when in an invalid state.
  73. *
  74. * @member Ext.form.CheckboxGroup
  75. */
  76. @mixin extjs-checkboxgroup-ui(
  77. $ui: null,
  78. $ui-body-padding: $form-checkboxgroup-body-padding,
  79. $ui-body-invalid-border-color: $form-checkboxgroup-body-invalid-border-color,
  80. $ui-body-invalid-border-style: $form-checkboxgroup-body-invalid-border-style,
  81. $ui-body-invalid-border-width: $form-checkboxgroup-body-invalid-border-width,
  82. $ui-body-invalid-background-image: $form-checkboxgroup-body-invalid-background-image,
  83. $ui-body-invalid-background-repeat: $form-checkboxgroup-body-invalid-background-repeat,
  84. $ui-body-invalid-background-position: $form-checkboxgroup-body-invalid-background-position
  85. ) {
  86. .#{$prefix}form-item-body-#{$ui}.#{$prefix}form-checkboxgroup-body {
  87. padding: $ui-body-padding;
  88. .#{$prefix}form-invalid & {
  89. @if $ui-body-invalid-border-width != 0 {
  90. border-width: $ui-body-invalid-border-width;
  91. border-style: $ui-body-invalid-border-style;
  92. border-color: $ui-body-invalid-border-color;
  93. }
  94. @if not is-null($ui-body-invalid-background-image) {
  95. background-image: theme-background-image($ui-body-invalid-background-image);
  96. background-repeat: $ui-body-invalid-background-repeat;
  97. background-position: $ui-body-invalid-background-position;
  98. }
  99. }
  100. }
  101. }