File size: 2,602 Bytes
e1cdf48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@mixin overflow-auto($direction: 'both') {
  @if $direction == 'both' {
    overflow: auto;
  } @else {
    overflow-#{$direction}: auto;
  }
  -webkit-overflow-scrolling: touch;
}

$padding: 10px;
$font-size-s: 12px;
$font-size-l: 16px;
$font-size: 14px;
$anim-duration: 0.3s;

.timing {
  @include overflow-auto(y);
  .performance-timing {
    padding: $padding 0;
    .inner-wrapper {
      background: var(--darker-background);
      .bar {
        @include overflow-auto(x);
        border-bottom: 1px solid var(--border);
        span {
          font-size: $font-size-s;
          white-space: nowrap;
          padding: 5px 0;
          background: var(--highlight);
          display: inline-block;
        }
        &:last-child {
          border-bottom: none;
        }
      }
    }
  }
  .performance-timing-data {
    padding-bottom: $padding;
    text-align: center;
    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      th {
        background: var(--darker-background);
        text-align: left;
        font-size: $font-size;
      }
      td {
        font-size: $font-size-s;
      }
      th,
      td {
        padding: 10px;
        border: 1px solid var(--border);
      }
      tr:nth-child(even) {
        background: var(--contrast);
      }
    }
  }
  .title {
    border-top: 1px solid var(--border);
    background: var(--darker-background);
    padding: $padding;
    .btn {
      display: flex;
      margin-left: 5px;
      float: right;
      width: 18px;
      height: 18px;
      justify-content: center;
      align-items: center;
      font-size: $font-size-l;
      cursor: pointer;
      transition: color $anim-duration;
      &:active {
        color: var(--select-foreground);
      }
    }
  }
  .entries {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    @include overflow-auto(x);
    table {
      min-width: 100%;
      cursor: pointer;
      tr:nth-child(4n-1) {
        background: var(--contrast);
      }
      td.timeline {
        padding: 0;
        height: 4px;
        font-size: 0;
        span {
          display: inline-block;
          height: 100%;
        }
      }
      td {
        border: 1px solid var(--border);
        padding: 10px;
        white-space: nowrap;
      }
      .right {
        text-align: right;
      }
    }
  }
  .not-supported {
    background: var(--console-error-background);
    border: 1px solid var(--console-error-border);
    color: var(--console-error-foreground);
    margin: 10px;
    padding: $padding;
    text-align: center;
  }
}