EmptyText.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * @class Ext.dataview.EmptyText
  3. */
  4. //# fashion replaces $dataview-empty-text-color
  5. /**
  6. * @var {color}
  7. * EmptyText color
  8. */
  9. $emptytext-color: dynamic($highlight-color);
  10. //# fashion replaces $dataview-empty-text-font-weight
  11. /**
  12. * @var {string/number}
  13. * EmptyText font-weight
  14. */
  15. $emptytext-font-weight: dynamic($font-weight-normal);
  16. //# fashion replaces $dataview-empty-text-font-size
  17. /**
  18. * @var {number}
  19. * EmptyText font-size
  20. */
  21. $emptytext-font-size: dynamic($font-size);
  22. //# fashion replaces $dataview-empty-text-font-size-big
  23. /**
  24. * @var {number}
  25. * EmptyText font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  26. */
  27. $emptytext-font-size-big: dynamic($font-size-big);
  28. //# fashion replaces $dataview-empty-text-line-height
  29. /**
  30. * @var {number}
  31. * EmptyText line-height
  32. */
  33. $emptytext-line-height: dynamic(1.25);
  34. //# fashion replaces $dataview-empty-text-line-height-big
  35. /**
  36. * @var {number}
  37. * EmptyText in the {@link Global_CSS#$enable-big big} sizing scheme
  38. */
  39. $emptytext-line-height-big: dynamic(null);
  40. //# fashion replaces $dataview-empty-text-font-family
  41. /**
  42. * @var {string}
  43. * EmptyText font-family
  44. */
  45. $emptytext-font-family: dynamic($font-family);
  46. //# fashion replaces $dataview-empty-text-padding
  47. /**
  48. * @var {number/list}
  49. * EmptyText padding
  50. */
  51. $emptytext-padding: dynamic(10px);
  52. //# fashion replaces $dataview-empty-text-padding-big
  53. /**
  54. * @var {number/list}
  55. * EmptyText padding in the {@link Global_CSS#$enable-big big} sizing scheme
  56. */
  57. $emptytext-padding-big: dynamic(15px);
  58. /**
  59. * Creates a visual theme for a DataView EmptyText component.
  60. *
  61. * @param {string} $ui
  62. * The name of the UI being created. Can not included spaces or special punctuation
  63. * (used in CSS class names).
  64. *
  65. * @param {String} [$xtype=emptytext] (protected) The {@link Ext.Class#xtype} to use
  66. * in CSS selectors. For use by UI mixins of derived classes.
  67. *
  68. * @param {color} $color
  69. * EmptyText color
  70. *
  71. * @param {string/number} $font-weight
  72. * EmptyText font-weight
  73. *
  74. * @param {number} $font-size
  75. * EmptyText font-size
  76. *
  77. * @param {number} $font-size-big
  78. * EmptyText font-size in the {@link Global_CSS#$enable-big big} sizing scheme
  79. *
  80. * @param {number} $line-height
  81. * EmptyText line-height
  82. *
  83. * @param {number} $line-height-big
  84. * EmptyText in the {@link Global_CSS#$enable-big big} sizing scheme
  85. *
  86. * @param {string} $font-family
  87. * EmptyText font-family
  88. *
  89. * @param {number/list} $padding
  90. * EmptyText padding
  91. *
  92. * @param {number/list} $padding-big
  93. * EmptyText padding in the {@link Global_CSS#$enable-big big} sizing scheme
  94. */
  95. @mixin emptytext-ui(
  96. $ui: null,
  97. $xtype: emptytext,
  98. $color: null,
  99. $font-weight: null,
  100. $font-size: null,
  101. $font-size-big: null,
  102. $line-height: null,
  103. $line-height-big: null,
  104. $font-family: null,
  105. $padding: null,
  106. $padding-big: null
  107. ) {
  108. $ui-suffix: ui-suffix($ui);
  109. .#{$prefix}#{$xtype}#{$ui-suffix} {
  110. color: $color;
  111. @include font($font-weight, $font-size, $line-height, $font-family);
  112. padding: $padding;
  113. @if $enable-big {
  114. .#{$prefix}big & {
  115. font-size: $font-size-big;
  116. line-height: $line-height-big;
  117. padding: $padding-big;
  118. }
  119. }
  120. }
  121. }