_panel_logs.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. $column-horizontal-spacing: 10px;
  2. .logs-panel-options {
  3. display: flex;
  4. background-color: $page-bg;
  5. padding: $panel-padding;
  6. padding-top: 10px;
  7. border-radius: $border-radius;
  8. margin: $space-m 0 $space-s;
  9. border: $panel-border;
  10. flex-direction: column;
  11. }
  12. .logs-panel-controls {
  13. display: flex;
  14. justify-items: flex-start;
  15. align-items: center;
  16. flex-wrap: wrap;
  17. > * {
  18. margin-right: $spacer * 2;
  19. }
  20. }
  21. .logs-panel-nodata {
  22. > * {
  23. margin-left: 0.5em;
  24. }
  25. }
  26. .logs-panel-meta {
  27. flex: 1;
  28. color: $text-color-weak;
  29. margin-bottom: $spacer;
  30. min-width: 30%;
  31. display: flex;
  32. }
  33. .logs-panel-meta__item {
  34. margin-right: $spacer;
  35. display: flex;
  36. align-items: baseline;
  37. }
  38. .logs-panel-meta__label {
  39. margin-right: $spacer / 2;
  40. font-size: $font-size-sm;
  41. font-weight: $font-weight-semi-bold;
  42. }
  43. .logs-panel-meta__value {
  44. font-family: $font-family-monospace;
  45. }
  46. .logs-panel-meta-item__labels {
  47. // compensate for the labels padding
  48. position: relative;
  49. top: 4px;
  50. }
  51. .logs-rows {
  52. font-family: $font-family-monospace;
  53. font-size: $font-size-sm;
  54. display: table;
  55. table-layout: fixed;
  56. }
  57. .logs-row {
  58. display: table-row;
  59. > div {
  60. display: table-cell;
  61. padding-right: $column-horizontal-spacing;
  62. vertical-align: middle;
  63. border-top: 1px solid transparent;
  64. border-bottom: 1px solid transparent;
  65. }
  66. &:hover {
  67. background: $page-bg;
  68. }
  69. }
  70. .logs-row__time {
  71. white-space: nowrap;
  72. }
  73. .logs-row__labels {
  74. max-width: 20%;
  75. line-height: 1.2;
  76. }
  77. .logs-row__message {
  78. word-break: break-all;
  79. min-width: 80%;
  80. }
  81. .logs-row__match-highlight {
  82. // Undoing mark styling
  83. background: inherit;
  84. padding: inherit;
  85. color: $typeahead-selected-color;
  86. border-bottom: 1px solid $typeahead-selected-color;
  87. background-color: rgba($typeahead-selected-color, 0.1);
  88. &--preview {
  89. background-color: rgba($typeahead-selected-color, 0.2);
  90. border-bottom-style: dotted;
  91. }
  92. }
  93. .logs-row__level {
  94. position: relative;
  95. &::after {
  96. content: '';
  97. display: block;
  98. position: absolute;
  99. top: 1px;
  100. bottom: 1px;
  101. width: 3px;
  102. background-color: $logs-color-unkown;
  103. }
  104. &--critical,
  105. &--crit {
  106. &::after {
  107. background-color: #705da0;
  108. }
  109. }
  110. &--error,
  111. &--err {
  112. &::after {
  113. background-color: #e24d42;
  114. }
  115. }
  116. &--warning,
  117. &--warn {
  118. &::after {
  119. background-color: $yellow;
  120. }
  121. }
  122. &--info {
  123. &::after {
  124. background-color: #7eb26d;
  125. }
  126. }
  127. &--debug {
  128. &::after {
  129. background-color: #1f78c1;
  130. }
  131. }
  132. &--trace {
  133. &::after {
  134. background-color: #6ed0e0;
  135. }
  136. }
  137. }
  138. .logs-row__duplicates {
  139. text-align: right;
  140. }
  141. .logs-row__field-highlight {
  142. // Undoing mark styling
  143. background: inherit;
  144. padding: inherit;
  145. border-bottom: 1px dotted $typeahead-selected-color;
  146. .logs-row__field-highlight--icon {
  147. margin-left: 0.5em;
  148. cursor: pointer;
  149. display: none;
  150. }
  151. }
  152. .logs-row__stats {
  153. margin: 5px 0;
  154. }
  155. .logs-row__field-highlight:hover {
  156. color: $typeahead-selected-color;
  157. border-bottom-style: solid;
  158. .logs-row__field-highlight--icon {
  159. display: inline;
  160. }
  161. }
  162. .logs-label {
  163. display: inline-block;
  164. padding: 0 2px;
  165. background-color: $btn-inverse-bg;
  166. border-radius: $border-radius;
  167. margin: 0 4px 2px 0;
  168. text-overflow: ellipsis;
  169. white-space: nowrap;
  170. position: relative;
  171. }
  172. .logs-label__icon {
  173. border-left: $panel-border;
  174. padding: 0 2px;
  175. cursor: pointer;
  176. margin-left: 2px;
  177. }
  178. .logs-label__stats {
  179. position: absolute;
  180. top: 1.25em;
  181. left: -10px;
  182. z-index: 100;
  183. justify-content: space-between;
  184. box-shadow: $popover-shadow;
  185. }
  186. /*
  187. * Stats popover & message stats box
  188. */
  189. .logs-stats {
  190. background-color: $popover-bg;
  191. color: $popover-color;
  192. border: 1px solid $popover-border-color;
  193. border-radius: $border-radius;
  194. max-width: 500px;
  195. }
  196. .logs-stats__header {
  197. background-color: $popover-border-color;
  198. padding: 6px 10px;
  199. display: flex;
  200. }
  201. .logs-stats__title {
  202. font-weight: $font-weight-semi-bold;
  203. padding-right: $spacer;
  204. overflow: hidden;
  205. display: inline-block;
  206. white-space: nowrap;
  207. text-overflow: ellipsis;
  208. flex-grow: 1;
  209. }
  210. .logs-stats__body {
  211. padding: 20px 10px 10px 10px;
  212. }
  213. .logs-stats__close {
  214. cursor: pointer;
  215. }
  216. .logs-stats-row {
  217. margin: $spacer/1.75 0;
  218. &--active {
  219. color: $blue;
  220. position: relative;
  221. }
  222. &--active::after {
  223. display: inline;
  224. content: '*';
  225. position: absolute;
  226. top: 0;
  227. left: -8px;
  228. }
  229. &__label {
  230. display: flex;
  231. margin-bottom: 1px;
  232. }
  233. &__value {
  234. flex: 1;
  235. }
  236. &__count,
  237. &__percent {
  238. text-align: right;
  239. margin-left: 0.5em;
  240. }
  241. &__percent {
  242. width: 3em;
  243. }
  244. &__bar,
  245. &__innerbar {
  246. height: 4px;
  247. overflow: hidden;
  248. background: $text-color-faint;
  249. }
  250. &__innerbar {
  251. background: $blue;
  252. }
  253. }