xref: /aosp_15_r20/external/perfetto/ui/src/assets/trace_info_page.scss (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15.trace-info-page {
16  overflow-y: auto;
17  overflow-x: hidden;
18  padding: 0 20px;
19
20  section {
21    margin: 20px auto;
22    max-width: 800px;
23    font-size: 1rem;
24    padding: 20px;
25    border-radius: 8px;
26
27    &.errors {
28      background-color: #f3e5f5;
29    }
30
31    .metric-error {
32      font-family: var(--monospace-font);
33      font-size: 12px;
34      padding: 5px;
35      word-break: break-all;
36    }
37
38    h2 {
39      font-family: "Roboto", sans-serif;
40      font-weight: 400;
41      letter-spacing: 0.25px;
42      font-size: 2rem;
43      margin-bottom: 1rem;
44    }
45
46    h3 {
47      font-size: 0.9rem;
48      font-weight: 400;
49      line-height: 1.25rem;
50      margin: 10px 0;
51      color: #333;
52    }
53
54    .contextual-help {
55      font-size: 18px;
56      margin-left: 10px;
57      color: #43a047;
58      cursor: default;
59    }
60
61    table {
62      border-spacing: 4px 1px;
63
64      thead td {
65        margin-bottom: 5px;
66        padding-bottom: 5px;
67        border-bottom: 1px solid #333;
68        font-weight: 500;
69      }
70      tr td {
71        min-height: 20px;
72      }
73
74      tbody {
75        tr:nth-child(2n + 1) td {
76          background-color: rgba(0, 0, 0, 0.04);
77        }
78
79        td.name {
80          min-width: 150px;
81        }
82
83        td {
84          font-family: var(--monospace-font);
85          font-size: 12px;
86          padding: 5px;
87          word-break: break-all;
88          white-space: pre-wrap;
89          vertical-align: top;
90          &:first-of-type {
91            font-weight: 800;
92          }
93        }
94      }
95    }
96  }
97}
98