panel.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. .panel {
  2. display: inline-block;
  3. float: left;
  4. vertical-align: top;
  5. position: relative;
  6. }
  7. .panel-margin {
  8. margin: 5px;
  9. display: block;
  10. }
  11. .panel-container {
  12. background-color: @grafanaPanelBackground;
  13. position: relative;
  14. border: @grafanaPanelBorder;
  15. &:hover {
  16. .panel-actions {
  17. display: block;
  18. }
  19. }
  20. &.panel-transparent {
  21. background-color: transparent;
  22. border: none;
  23. }
  24. }
  25. .panel-content {
  26. padding: 0px 10px 5px 10px;
  27. }
  28. .panel-title-container {
  29. min-height: 5px;
  30. padding-top: 4px;
  31. cursor: pointer;
  32. }
  33. .panel-title {
  34. border: 0px;
  35. font-weight: bold;
  36. position: relative;
  37. cursor: pointer;
  38. width: 100%;
  39. display: block;
  40. &.has-panel-links {
  41. .panel-title-text:after {
  42. content: "\f08e";
  43. font-family:'FontAwesome';
  44. padding-left: 10px;
  45. position: relative;
  46. top: 1px;
  47. }
  48. }
  49. }
  50. .panel-loading {
  51. position:absolute;
  52. top: -3px;
  53. right: 0px;
  54. z-index: 800;
  55. }
  56. .panel-header {
  57. text-align: center;
  58. }
  59. .panel-error {
  60. color: @white;
  61. position: absolute;
  62. left: 0;
  63. padding: 0px 17px 6px 5px;
  64. top: 0;
  65. z-index: 10;
  66. i {
  67. position: relative;
  68. top: -2px;
  69. }
  70. }
  71. .panel-error-arrow {
  72. width: 0;
  73. height: 0;
  74. position: absolute;
  75. border-left: 31px solid transparent;
  76. border-right: 30px solid transparent;
  77. border-bottom: 27px solid @grafanaPanelBackground;
  78. left: 0;
  79. bottom: 0;
  80. }
  81. .panel-fullscreen {
  82. z-index: 100;
  83. display: block;
  84. position: fixed;
  85. left: 0px;
  86. right: 0px;
  87. top: 60px;
  88. height: 100%;
  89. padding: 0;
  90. overflow-y: auto;
  91. height: 100%;
  92. .dropdown-menu {
  93. margin-bottom: 70px;
  94. }
  95. .panel-container {
  96. margin: 15px;
  97. }
  98. .panel-menu {
  99. top: 0px;
  100. }
  101. .panel-title-container {
  102. padding: 8px;
  103. }
  104. }
  105. .panel-full-edit {
  106. margin-top: 30px;
  107. padding-bottom: 130px;
  108. }
  109. .panel-menu {
  110. z-index: 500;
  111. position: absolute;
  112. background: @grafanaTargetFuncBackground;
  113. border: 1px solid black;
  114. .panel-menu-row {
  115. white-space: nowrap;
  116. border-bottom: 1px solid black;
  117. &:last-child {
  118. border-bottom: none;
  119. }
  120. }
  121. .panel-menu-link, .panel-menu-icon {
  122. padding: 5px 10px;
  123. }
  124. .panel-menu-link {
  125. display: inline-block;
  126. border-right: 1px solid black;
  127. &:last-child {
  128. border: none;
  129. }
  130. }
  131. .dropdown-menu {
  132. text-align: left;
  133. }
  134. }
  135. .panel-highlight {
  136. .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236, 0.8)");
  137. }
  138. .on-drag-hover {
  139. .panel-container {
  140. .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236, 0.8)");
  141. }
  142. }
  143. .panel-drop-zone {
  144. display: none;
  145. .panel-container {
  146. border: 1px solid @grayDark;
  147. }
  148. }
  149. .panel-ghost{
  150. width: 100%;
  151. .panel-container {
  152. border: none;
  153. background: transparent;
  154. }
  155. .panel-ghost-list {
  156. margin: 10px 0 10px 20px;
  157. }
  158. button {
  159. text-align: left;
  160. min-width: 135px;
  161. .fa {
  162. position: relative;
  163. left: -5px;
  164. }
  165. }
  166. }
  167. .panel-time-info {
  168. font-weight: bold;
  169. float: right;
  170. margin-right: 15px;
  171. color: @blue;
  172. font-size: 85%;
  173. position: absolute;
  174. top: 0;
  175. right: 0;
  176. }
  177. .resize-panel-handle {
  178. cursor: se-resize;
  179. position: absolute;
  180. bottom: 0;
  181. right: 0;
  182. width: 15px;
  183. height: 15px;
  184. display: block;
  185. }