_panel_header.scss 3.0 KB

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