_panel_logs.scss 4.6 KB

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