performance_bar.scss 2.1 KB
Newer Older
1 2
@import 'framework/variables';
@import 'peek/views/rblineprof';
3

4
#js-peek {
5 6 7 8 9 10 11 12
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 2000;
  overflow-x: hidden;

  height: $performance-bar-height;
13
  background: $black;
14
  line-height: $performance-bar-height;
15
  color: $perf-bar-text;
16

17
  select {
18
    color: $perf-bar-text;
19 20 21
    width: 200px;
  }

22 23 24 25 26
  &.disabled {
    display: none;
  }

  &.production {
27
    background-color: $perf-bar-production;
28 29 30 31

    select {
      background: $perf-bar-production;
    }
32 33 34
  }

  &.staging {
35
    background-color: $perf-bar-staging;
36 37 38 39

    select {
      background: $perf-bar-staging;
    }
40 41 42
  }

  &.development {
43
    background-color: $perf-bar-development;
44 45 46 47

    select {
      background: $perf-bar-development;
    }
48 49 50 51
  }

  // UI Elements
  .bucket {
52
    background: $perf-bar-bucket-bg;
53 54
    display: inline-block;
    padding: 4px 6px;
55
    font-family: Consolas, 'Liberation Mono', Courier, monospace;
56
    line-height: 1;
57
    color: $perf-bar-bucket-color;
58
    border-radius: 3px;
59 60
    box-shadow: 0 1px 0 $perf-bar-bucket-box-shadow-from,
      inset 0 1px 2px $perf-bar-bucket-box-shadow-to;
61 62 63 64 65 66 67 68 69 70 71

    .hidden {
      display: none;
    }

    &:hover .hidden {
      display: inline;
    }
  }

  strong {
72
    color: $white-light;
73 74
  }

75
  table {
76 77
    color: $black;

78
    strong {
79
      color: $black;
80 81 82
    }
  }

83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  .view {
    margin-right: 15px;
    float: left;

    &:last-child {
      margin-right: 0;
    }
  }

  .css-truncate {
    &.css-truncate-target,
    .css-truncate-target {
      display: inline-block;
      max-width: 125px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: top;
    }

    &.expandable:hover .css-truncate-target,
    &.expandable:hover.css-truncate-target {
      max-width: 10000px !important;
    }
  }
108

109 110 111 112 113 114 115 116
  .performance-bar-modal {
    .modal-footer {
      display: none;
    }

    .modal-dialog {
      width: 860px;
    }
117
  }
118 119
}

120
#modal-peek-pg-queries-content {
121 122 123 124 125 126 127 128 129 130 131
  color: $black;
}

.peek-rblineprof-file {
  pre.duration {
    width: 280px;
  }

  .data {
    overflow: visible;
  }
132
}