_panel_logs.scss 4.5 KB

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