| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- $column-horizontal-spacing: 10px;
- .logs-panel-options {
- display: flex;
- background-color: $page-bg;
- padding: $space-sm $space-md $space-sm $space-md;
- border-radius: $border-radius;
- margin: $space-md 0 $space-sm;
- border: $panel-border;
- flex-direction: column;
- }
- .logs-panel-controls {
- display: flex;
- justify-items: flex-start;
- align-items: center;
- flex-wrap: wrap;
- > * {
- margin-right: $spacer * 2;
- }
- }
- .logs-panel-nodata {
- > * {
- margin-left: 0.5em;
- }
- }
- .logs-panel-meta {
- flex: 1;
- color: $text-color-weak;
- margin-bottom: $spacer;
- min-width: 30%;
- display: flex;
- }
- .logs-panel-meta__item {
- margin-right: $spacer;
- display: flex;
- align-items: baseline;
- }
- .logs-panel-meta__label {
- margin-right: $spacer / 2;
- font-size: $font-size-sm;
- font-weight: $font-weight-semi-bold;
- }
- .logs-panel-meta__value {
- font-family: $font-family-monospace;
- }
- .logs-panel-meta-item__labels {
- // compensate for the labels padding
- position: relative;
- top: 4px;
- }
- .logs-rows {
- font-family: $font-family-monospace;
- font-size: $font-size-sm;
- display: table;
- table-layout: fixed;
- width: 100%;
- }
- .logs-row {
- display: table-row;
- > div {
- display: table-cell;
- padding-right: $column-horizontal-spacing;
- border-top: 1px solid transparent;
- border-bottom: 1px solid transparent;
- height: 100%;
- }
- &:hover {
- background: $page-bg;
- }
- }
- .logs-row__time {
- white-space: nowrap;
- width: 19em;
- }
- .logs-row__localtime {
- white-space: nowrap;
- width: 12.5em;
- }
- .logs-row__labels {
- width: 20%;
- line-height: 1.2;
- position: relative;
- }
- .logs-row__message {
- word-break: break-all;
- }
- .logs-row__match-highlight {
- // Undoing mark styling
- background: inherit;
- padding: inherit;
- color: $typeahead-selected-color;
- border-bottom: 1px solid $typeahead-selected-color;
- background-color: rgba($typeahead-selected-color, 0.1);
- &--preview {
- background-color: rgba($typeahead-selected-color, 0.2);
- border-bottom-style: dotted;
- }
- }
- .logs-row__level {
- position: relative;
- width: 10px;
- &::after {
- content: '';
- display: block;
- position: absolute;
- top: 1px;
- bottom: 1px;
- width: 3px;
- background-color: $logs-color-unkown;
- }
- &--critical,
- &--crit {
- &::after {
- background-color: #705da0;
- }
- }
- &--error,
- &--err {
- &::after {
- background-color: #e24d42;
- }
- }
- &--warning,
- &--warn {
- &::after {
- background-color: $yellow;
- }
- }
- &--info {
- &::after {
- background-color: #7eb26d;
- }
- }
- &--debug {
- &::after {
- background-color: #1f78c1;
- }
- }
- &--trace {
- &::after {
- background-color: #6ed0e0;
- }
- }
- }
- .logs-row__duplicates {
- text-align: right;
- width: 4em;
- }
- .logs-row__field-highlight {
- // Undoing mark styling
- background: inherit;
- padding: inherit;
- border-bottom: 1px dotted $typeahead-selected-color;
- .logs-row__field-highlight--icon {
- margin-left: 0.5em;
- cursor: pointer;
- display: none;
- }
- }
- .logs-row__stats {
- margin: 5px 0;
- }
- .logs-row__field-highlight:hover {
- color: $typeahead-selected-color;
- border-bottom-style: solid;
- .logs-row__field-highlight--icon {
- display: inline;
- }
- }
- .logs-labels {
- display: flex;
- flex-wrap: wrap;
- }
- .logs-label {
- display: flex;
- padding: 0 2px;
- background-color: $btn-inverse-bg;
- border-radius: $border-radius;
- margin: 0 4px 2px 0;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .logs-label__icon {
- border-left: $panel-border;
- padding: 0 2px;
- cursor: pointer;
- margin-left: 2px;
- }
- .logs-label__value {
- display: inline-block;
- max-width: 20em;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .logs-label__stats {
- position: absolute;
- top: 1.25em;
- left: -10px;
- z-index: 100;
- justify-content: space-between;
- box-shadow: $popover-shadow;
- }
- /*
- * Stats popover & message stats box
- */
- .logs-stats {
- background-color: $popover-bg;
- color: $popover-color;
- border: 1px solid $popover-border-color;
- border-radius: $border-radius;
- max-width: 500px;
- }
- .logs-stats__header {
- background: $popover-header-bg;
- padding: 6px 10px;
- display: flex;
- }
- .logs-stats__title {
- font-weight: $font-weight-semi-bold;
- padding-right: $spacer;
- overflow: hidden;
- display: inline-block;
- white-space: nowrap;
- text-overflow: ellipsis;
- flex-grow: 1;
- }
- .logs-stats__body {
- padding: 20px 10px 10px 10px;
- }
- .logs-stats__close {
- cursor: pointer;
- }
- .logs-stats-row {
- margin: $spacer/1.75 0;
- &--active {
- color: $blue;
- position: relative;
- }
- &--active::after {
- display: inline;
- content: '*';
- position: absolute;
- top: 0;
- left: -8px;
- }
- &__label {
- display: flex;
- margin-bottom: 1px;
- }
- &__value {
- flex: 1;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- &__count,
- &__percent {
- text-align: right;
- margin-left: 0.5em;
- }
- &__percent {
- width: 3em;
- }
- &__bar,
- &__innerbar {
- height: 4px;
- overflow: hidden;
- background: $text-color-faint;
- }
- &__innerbar {
- background: $blue;
- }
- }
|