Header.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /**
  2. * @class Ext.panel.Header
  3. */
  4. /**
  5. * Creates a visual theme for a Panel Header.
  6. *
  7. * @param {string} $ui
  8. * The name of the UI being created. Can not included spaces or special punctuation
  9. * (used in CSS class names).
  10. *
  11. * @param {String} [$xtype=panelheader] (protected) The {@link Ext.Class#xtype} to use
  12. * in CSS selectors. For use by UI mixins of derived classes.
  13. *
  14. * @param {color} $background-color
  15. * Panel Header background-color
  16. *
  17. * @param {string/list} $background-gradient
  18. * Panel Header background-gradient. Can be either the name of a gradient defined by
  19. * {@link Global_CSS#background-gradient} or a list of color stops.
  20. *
  21. * @param {color/list} $border-color
  22. * Panel Header border-color
  23. *
  24. * @param {number/list} $border-width
  25. * Panel Header border-width
  26. *
  27. * @param {string/list} $border-style
  28. * Panel Header border-style
  29. *
  30. * @param {number/list} $padding
  31. * Panel Header padding
  32. *
  33. * @param {number/list} $padding-big
  34. * Panel Header padding in the {@link Global_CSS#$enable-big big} sizing scheme
  35. *
  36. * @param {shadow} $shadow
  37. * Panel Header Shadow
  38. *
  39. * @param {number} $z-index
  40. * Z-Index for the PanelHeader, should be used with shadows to raise header above content
  41. *
  42. * @param {number} $min-height
  43. * Panel Header min-height
  44. *
  45. * @param {number} $min-height-big
  46. * Panel Header min-height in the {@link Global_CSS#$enable-big big} sizing scheme
  47. *
  48. * @private
  49. */
  50. @mixin panelheader-ui(
  51. $ui: null,
  52. $xtype: panelheader,
  53. $background-color: null,
  54. $background-gradient: null,
  55. $border-color: null,
  56. $border-width: null,
  57. $border-style: null,
  58. $padding: null,
  59. $padding-big: null,
  60. $shadow: null,
  61. $z-index: null,
  62. $min-height: null,
  63. $min-height-big: null
  64. ) {
  65. $ui-suffix: ui-suffix($ui);
  66. .#{$prefix}#{$xtype}#{$ui-suffix} {
  67. @include background-gradient($background-color, $background-gradient);
  68. @include border($border-width, $border-style, $border-color);
  69. box-shadow: $shadow;
  70. z-index: $z-index;
  71. &.#{$prefix}horizontal {
  72. min-height: $min-height;
  73. @if $enable-big {
  74. .#{$prefix}big & {
  75. min-height: $min-height-big;
  76. }
  77. }
  78. }
  79. &.#{$prefix}vertical {
  80. min-width: $min-height;
  81. @if $enable-big {
  82. .#{$prefix}big & {
  83. min-width: $min-height-big;
  84. }
  85. }
  86. }
  87. > .#{$prefix}body-el {
  88. padding: $padding;
  89. @if $enable-big {
  90. .#{$prefix}big & {
  91. padding: $padding-big;
  92. }
  93. }
  94. }
  95. &.#{$prefix}docked-right {
  96. > .#{$prefix}body-el {
  97. padding: rotate90($padding);
  98. @if $enable-big {
  99. .#{$prefix}big & {
  100. padding: rotate90($padding-big);
  101. }
  102. }
  103. }
  104. @include border(rotate90($border-width), rotate90($border-style), rotate90($border-color));
  105. }
  106. &.#{$prefix}docked-left {
  107. > .#{$prefix}body-el {
  108. padding: rotate270($padding);
  109. @if $enable-big {
  110. .#{$prefix}big & {
  111. padding: rotate270($padding-big);
  112. }
  113. }
  114. }
  115. @include border(rotate270($border-width), rotate270($border-style), rotate270($border-color));
  116. }
  117. &.#{$prefix}docked-bottom {
  118. @include border(flip-vertical($border-width), flip-vertical($border-style), flip-vertical($border-color));
  119. }
  120. }
  121. }