_panel_logs.scss 4.5 KB

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