summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/src/components/App.css
blob: 64a899d0475ad1d4292655bb3bb8be62be71a9c8 (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
166
167
168
169
170
171
172
173
174
/* 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/>. */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#mount {
  height: 100%;
}

button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

button:hover {
  background-color: var(--theme-toolbar-background-hover);
}

.theme-dark button:hover {
  background-color: var(--theme-toolbar-hover);
}

.debugger {
  display: flex;
  flex: 1;
  height: 100%;
}

.debugger .tree-indent {
  width: 16px;
  margin-inline-start: 0;
  border-inline-start: 0;
}

.editor-pane {
  display: flex;
  position: relative;
  flex: 1;
  background-color: var(--theme-body-background);
  height: 100%;
  overflow: hidden;
}

.editor-container {
  width: 100%;
  display: grid;
  grid-template-areas:
    "editor-header"
    "editor       "
    "notification "
    "editor-footer";
  grid-template-rows:
    var(--editor-header-height)
    1fr
    auto
    var(--editor-footer-height);
  max-height: 100%;
  overflow-y: auto;
}

.editor-notification-footer {
  background: var(--theme-warning-background);
  border-top: 1px solid var(--theme-warning-border);
  color: var(--theme-warning-color);
  padding: 0.5em;
  gap: 8px;
  grid-area: notification;
  display: flex;
  /* center text within the notification */
  align-items: center;

  .info.icon {
    align-self: normal;
  }

  .close-button {
    /* set a fixed height in order to avoid having it flexed to full height */
    height: 16px;
    padding: 0;
    /* put in top-right corner */
    margin-inline-start: auto;
    align-self: normal;

    &::before {
      display: block;
      width: 16px;
      height: 16px;
      content: "";
      background-image: url("chrome://devtools/skin/images/close.svg");
    }
  }
}

/* Utils */
.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.rounded-circle {
  border-radius: 50%;
}

.text-white {
  color: white;
}

.text-center {
  text-align: center;
}

.min-width-0 {
  min-width: 0;
}

/*
  Prevents horizontal scrollbar from displaying when
  right pane collapsed (#7505)
*/
.split-box > .splitter:last-child {
  display: none;
}

/**
 * In RTL layouts, the Debugger UI overlays the splitters. See Bug 1731233.
 * Note: we need to the `.debugger` prefix here to beat the specificity of the
 * general rule defined in SlitBox.css for `.split-box.vert > .splitter`.
 */
.debugger .split-box.vert > .splitter {
  border-left-width: var(--devtools-splitter-inline-start-width);
  border-right-width: var(--devtools-splitter-inline-end-width);

  margin-left: calc(-1 * var(--devtools-splitter-inline-start-width) - 1px);
  margin-right: calc(-1 * var(--devtools-splitter-inline-end-width));
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

::-webkit-scrollbar-track {
  border-radius: 8px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(113, 113, 113, 0.5);
}