summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/src/components/SecondaryPanes/XHRBreakpoints.css
blob: 50b6240337c2b267c956457f0bf6d4f790b2827c (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
/* 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/>. */

.xhr-breakpoints-pane ._content {
  overflow-x: auto;
}

.xhr-input-container {
  display: flex;
}

.xhr-input-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  /* helps to display a nice outline on focused elements */
  padding-block: 2px;
  padding-inline-start: 20px;
  padding-inline-end: 12px;
  /* Stop select height from increasing as input height increases */
  align-items: center;
}

.xhr-checkbox {
  margin-inline-start: 0;
  margin-inline-end: 4px;
}

.xhr-input-url {
  border: 1px;
  flex: 1 1 100px;
  min-width: min(100%, 100px);
  height: 24px;
  background-color: var(--theme-sidebar-background);
  font-size: inherit;
  color: var(--theme-body-color);
}

.xhr-input-url::placeholder {
  color: var(--theme-text-color-alt);
  opacity: 1;
}

.expressions-list .xhr-input-url {
  /* Prevent vertical bounce when editing an existing XHR Breakpoint */
  height: 100%;
}

.xhr-input-method {
  flex: 0 1 100px;
  min-width: min(100%, 100px);
}

.xhr-container {
  border-left: 4px solid transparent;
  width: 100%;
  color: var(--theme-body-color);
  padding-inline-start: 16px;
  padding-inline-end: 6px;
  display: flex;
  align-items: center;
  position: relative;
  height: var(--expression-item-height);
}

:root.theme-light .xhr-container:hover {
  background-color: var(--search-overlays-semitransparent);
}

:root.theme-dark .xhr-container:hover {
  background-color: var(--search-overlays-semitransparent);
}

.xhr-label-method {
  line-height: 14px;
  display: inline-block;
  margin-inline-end: 2px;
}

.xhr-input-container:not(.focused) .xhr-input-method {
  display: none;
}

.xhr-label-url {
  max-width: calc(100% - var(--breakpoint-expression-right-clear-space));
  color: var(--theme-comment);
  display: inline-block;
  cursor: text;
  flex-grow: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0px 2px 0px 2px;
  line-height: 14px;
}

.xhr-container label {
  flex-grow: 1;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.xhr-container__close-btn {
  display: flex;
  padding: 2px;
}