_panel_header.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. $panel-header-no-title-zindex: 1;
  2. .panel-header {
  3. &:hover {
  4. transition: background-color 0.1s ease-in-out;
  5. background-color: $panel-header-hover-bg;
  6. }
  7. }
  8. .panel-container--no-title {
  9. .panel-header {
  10. position: absolute;
  11. width: 100%;
  12. z-index: $panel-header-z-index;
  13. }
  14. .panel-content {
  15. height: 100%;
  16. }
  17. }
  18. .panel-title-container {
  19. cursor: move;
  20. word-wrap: break-word;
  21. display: block;
  22. }
  23. .panel-title {
  24. border: 0px;
  25. font-weight: $font-weight-semi-bold;
  26. position: relative;
  27. width: 100%;
  28. display: flex;
  29. flex-wrap: nowrap;
  30. justify-content: center;
  31. height: $panel-header-height;
  32. align-items: center;
  33. }
  34. .panel-title-text {
  35. text-overflow: ellipsis;
  36. overflow: hidden;
  37. white-space: nowrap;
  38. max-width: calc(100% - 38px);
  39. cursor: pointer;
  40. font-weight: $font-weight-semi-bold;
  41. &:hover {
  42. color: $link-hover-color;
  43. }
  44. .panel-has-alert & {
  45. max-width: calc(100% - 54px);
  46. }
  47. }
  48. .panel-menu-container {
  49. width: 1px;
  50. height: 19px;
  51. display: inline-block;
  52. }
  53. .panel-menu-toggle {
  54. color: $text-color-weak;
  55. cursor: pointer;
  56. padding: 3px 5px;
  57. visibility: hidden;
  58. opacity: 0;
  59. width: 16px;
  60. height: 16px;
  61. left: 1px;
  62. top: 2px;
  63. &:hover {
  64. color: $link-hover-color;
  65. }
  66. }
  67. .panel-loading {
  68. position: absolute;
  69. top: 4px;
  70. right: 4px;
  71. z-index: $panel-header-z-index + 1;
  72. font-size: $font-size-sm;
  73. color: $text-color-weak;
  74. }
  75. .panel-empty {
  76. display: flex;
  77. align-items: center;
  78. height: 100%;
  79. width: 100%;
  80. p {
  81. text-align: center;
  82. color: $text-muted;
  83. font-size: $font-size-lg;
  84. width: 100%;
  85. }
  86. }
  87. .panel-menu {
  88. top: 25px;
  89. left: -100px;
  90. }
  91. .panel-info-corner-inner {
  92. width: 0;
  93. height: 0;
  94. position: absolute;
  95. left: 0;
  96. bottom: 0;
  97. }
  98. @mixin panel-corner-color($corner-bg) {
  99. .panel-info-corner-inner {
  100. border-left: $panel-header-height solid $corner-bg;
  101. border-right: none;
  102. border-bottom: $panel-header-height solid transparent;
  103. }
  104. }
  105. .panel-info-corner {
  106. color: $text-muted;
  107. cursor: pointer;
  108. position: absolute;
  109. display: none;
  110. left: 0;
  111. width: $panel-header-height;
  112. height: $panel-header-height;
  113. z-index: $panel-header-no-title-zindex + 1;
  114. top: 0;
  115. .fa {
  116. position: relative;
  117. top: -2px;
  118. left: 6px;
  119. font-size: 75%;
  120. z-index: $panel-header-no-title-zindex + 2;
  121. }
  122. &--info {
  123. display: block;
  124. @include panel-corner-color(lighten($panel-corner, 6%));
  125. .fa:before {
  126. content: '\f129';
  127. }
  128. }
  129. &--links {
  130. display: block;
  131. @include panel-corner-color(lighten($panel-corner, 6%));
  132. .fa {
  133. left: 4px;
  134. }
  135. .fa:before {
  136. content: '\f08e';
  137. }
  138. }
  139. &--error {
  140. display: block;
  141. color: $white;
  142. @include panel-corner-color($popover-error-bg);
  143. .fa:before {
  144. content: '\f12a';
  145. }
  146. }
  147. }
  148. .panel-info-content {
  149. a {
  150. color: $gray-6;
  151. &:hover {
  152. color: darken($white, 10%);
  153. }
  154. }
  155. .panel-info-corner-links {
  156. list-style: none;
  157. padding-left: 0;
  158. }
  159. }
  160. .panel-time-info {
  161. font-weight: $font-weight-semi-bold;
  162. float: right;
  163. margin-right: 8px;
  164. color: $blue;
  165. font-size: 85%;
  166. position: absolute;
  167. right: 0;
  168. }