summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/src/assets/styles/messages.css
blob: b115d7cf34dfa39f310966016ddd250b5ae6c409 (plain)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Scroll to bottom */

#messages-view .uncontrolled {
  flex-direction: column;
}

#messages-view .message-list-scroll-anchor {
  /* anchor nodes are required to have non-zero area */
  min-height: 1px;
  margin: 0;
  padding: 0;
  border: none;
}

/* Empty notice */

#messages-view .message-list-empty-notice {
  width: 100%;
}

/* Frame type icon in the Time column */

#messages-view .message-list-type-icon {
  display: inline-block;
  /* align bottom of image 4px below the text baseline
     this tends to give a better result than "middle" */
  vertical-align: -4px;
  -moz-context-properties: fill;
  fill: currentColor;
}

#messages-view .message-list-type-icon-sent {
  color: var(--green-70);
}

#messages-view .theme-dark .message-list-type-icon-sent {
  color: var(--green-50);
}

#messages-view .message-list-type-icon-received {
  color: var(--red-60);
  transform: scaleY(-1);
}

#messages-view .theme-dark .message-list-type-icon-received {
  color: var(--red-40);
}

#messages-view .message-list-item.selected .message-list-type-icon {
  color: inherit;
}

#messages-view .msg-connection-closed-message {
  text-align: center;
}

/* Use lining numbers so that seconds and milliseconds align */

#messages-view .message-list-time {
  font-variant-numeric: tabular-nums;
}

/* Styles related to the data items in the MessagePayload component */

#messages-view .message-payload {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#messages-view .message-rawData-payload {
  display: block;
  width: 100%;
  height: 100%;
  overflow: auto;
  white-space: pre;
  padding: 4px 8px;
  padding-inline-start: 20px;
  border: none;
  font-family: var(--monospace-font-family);
  font-size: var(--theme-code-font-size);
  line-height: calc(15/11);
  direction: ltr;
  text-align: left;
  resize: none;
  color: var(--theme-body-color);
  background-color: var(--theme-sidebar-background);
}

/* Styles related to JSONPreview */

#messages-view .treeTable .objectBox {
  white-space: normal;
  overflow-wrap: break-word;
}

/* Styles related to truncated data */

.theme-light #messages-view .truncated-data-message {
  background: var(--grey-20);
}

.theme-dark #messages-view .truncated-data-message {
  background: var(--grey-70);
}

.truncated-data-message {
  border-bottom: 1px solid var(--theme-splitter-color);
  padding: 4px 8px;
  font-size: 12px;
}

/* Styles related to truncated messages */

.theme-light #messages-view .truncated-messages-header {
  background: var(--grey-20);
}

.theme-dark #messages-view .truncated-messages-header {
  background: var(--grey-70);
}

.theme-dark #messages-view .truncated-messages-warning-icon {
  fill: var(--grey-40);
}

#messages-view .truncated-messages-cell {
  padding: 0; /* reset td default padding */
}

#messages-view .truncated-messages-header {
  border-bottom: 1px solid var(--theme-splitter-color);
  padding: 2px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#messages-view .truncated-messages-container,
#messages-view .truncated-messages-checkbox-label {
  display: flex;
  align-items: center;
}

#messages-view .truncated-messages-warning-icon {
  width: 16px;
  height: 16px;
  margin-inline-end: 5px;
  background-image: url(chrome://devtools/skin/images/info.svg);
  background-repeat: no-repeat;
  -moz-context-properties: fill;
  fill: inherit;
}

#messages-view .truncation-checkbox {
  margin-inline-end: 5px;
}

#messages-view .truncated-message {
  font-variant-numeric: tabular-nums;
}