1 /* vim:set ts=2 sw=2 sts=2 et: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /* Tooltip specific theme variables */
10 --bezier-diagonal-color: #A09090;
11 --bezier-grid-color: rgba(0, 0, 0, 0.2);
14 /* Tooltip widget (see devtools/client/shared/widgets/Tooltip.js) */
16 .devtools-tooltip .panel-arrowcontent {
20 .devtools-tooltip .panel-arrowcontainer {
21 /* Reseting the transition used when panels are shown */
23 /* Panels slide up/down/left/right when they appear using a transform.
24 Since we want to remove the transition, we don't need to transform anymore
25 plus it can interfeer by causing mouseleave events on the underlying nodes */
29 .devtools-tooltip[clamped-dimensions] {
35 .devtools-tooltip[clamped-dimensions-no-min-height] {
41 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
45 .devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
46 .devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
47 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
50 .devtools-tooltip[wide] {
54 /* Tooltip: Simple Text */
56 .devtools-tooltip-simple-text {
58 margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */
60 white-space: pre-wrap;
63 .devtools-tooltip-simple-text:first-child {
67 .devtools-tooltip-simple-text:last-child {
71 /* Tooltip: Alert Icon */
73 .devtools-tooltip-alert-icon {
77 margin-inline-end: 20px;
80 .devtools-tooltip-alert-icon {
81 list-style-image: url("chrome://global/skin/icons/warning-32.png");
84 /* Tooltip: Variables View */
86 .devtools-tooltip-variables-view-box {
87 margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
90 .devtools-tooltip-variables-view-box .variable-or-property > .title {
91 padding-inline-end: 6px;
96 .devtools-tooltip-tiles {
97 background-color: #eee;
98 background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
99 linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
100 background-size: 20px 20px;
101 background-position: 0 0, 10px 10px;
104 .devtools-tooltip-iframe {
106 background: transparent;
114 background: transparent;
115 pointer-events: none;
117 filter: drop-shadow(0 3px 4px var(--theme-tooltip-shadow));
120 .tooltip-xul-wrapper {
121 -moz-appearance: none;
122 background: transparent;
127 .tooltip-xul-wrapper .tooltip-container {
132 flex-direction: column;
136 flex-direction: column-reverse;
140 background-color: var(--theme-tooltip-background);
154 /* Tooltip : flexible height styles */
156 .tooltip-flexible-height .tooltip-panel {
157 /* In flexible mode the tooltip panel should only grow according to its content. */
161 .tooltip-flexible-height .tooltip-filler {
162 /* In flexible mode the filler should grow as much as possible. */
166 /* type="arrow" overrides: remove arrow decorations for the xul <panel> wrapper */
168 .tooltip-xul-wrapper[type="arrow"] {
172 /* The arrow image is hidden because the panel is opened using openPopupAtScreen(). */
174 /* Remove all decorations on .panel-arrowcontent is the tooltip content container. */
175 .tooltip-xul-wrapper[type="arrow"] .panel-arrowcontent {
178 background: transparent;
183 /* Tooltip : arrow style */
185 .tooltip-xul-wrapper .tooltip-container {
186 /* When displayed in a XUL panel the drop shadow would be abruptly cut by the panel */
190 .tooltip-container[type="arrow"] > .tooltip-panel {
193 box-sizing: border-box;
196 border: 3px solid var(--theme-tooltip-border);
200 .tooltip-top[type="arrow"] .tooltip-panel {
204 .tooltip-bottom[type="arrow"] .tooltip-panel {
216 /* In RTL locales, only use RTL on the tooltip content, keep LTR for positioning */
217 .tooltip-container:-moz-locale-dir(rtl) {
221 .tooltip-panel:-moz-locale-dir(rtl) {
225 .tooltip-top .tooltip-arrow {
229 .tooltip-bottom .tooltip-arrow {
233 .tooltip-arrow:before {
239 background: linear-gradient(-45deg,
240 var(--theme-tooltip-background) 50%, transparent 50%);
241 border-color: var(--theme-tooltip-border);
243 border-width: 0px 3px 3px 0px;
248 .tooltip-bottom .tooltip-arrow:before {
250 transform: rotate(225deg);
253 .tooltip-top .tooltip-arrow:before {
255 transform: rotate(45deg);
258 /* Tooltip: Events */
267 .event-header:first-child {
271 .event-header:not(:first-child) {
272 border-width: 1px 0 0 0;
275 .devtools-tooltip-events-container {
280 .event-tooltip-event-type,
281 .event-tooltip-filename,
282 .event-tooltip-attributes {
283 margin-inline-start: 0;
288 .event-tooltip-event-type {
293 .event-tooltip-filename {
299 text-overflow: ellipsis;
300 /* Force ellipsis to be displayed on the left */
304 .event-tooltip-debugger-icon {
307 margin-inline-end: 4px;
312 .event-tooltip-debugger-icon:hover {
316 .event-tooltip-content-box {
320 margin-inline-end: 0;
321 border: 1px solid var(--theme-splitter-color);
322 border-width: 1px 0 0 0;
325 .event-toolbox-content-box iframe {
330 .event-tooltip-content-box[open] {
334 .event-tooltip-source-container {
337 margin-inline-start: 5px;
338 margin-inline-end: 0;
341 .event-tooltip-source {
345 .event-tooltip-attributes-container {
349 justify-content: flex-end;
352 .event-tooltip-attributes-box {
359 margin-inline-start: 5px;
360 background-color: var(--theme-body-color-alt);
361 color: var(--theme-toolbar-background);
364 .event-tooltip-attributes {
371 * Tooltip: JS stack traces
374 .stack-trace-tooltip {
380 .stack-trace-tooltip > .stack-frame {
385 .stack-trace-tooltip > .stack-frame:first-child {
389 .stack-trace-tooltip > .stack-frame:last-child {
394 color: var(--theme-body-color-alt);
399 .stack-frame-call:hover {
400 background-color: var(--theme-selection-background-semitransparent);
404 color: var(--theme-body-color-inactive);
407 .stack-frame-function-name {
408 color: var(--theme-highlight-blue);
410 margin-inline-end: 1em;
413 text-overflow: ellipsis;
416 .stack-frame-source-name {
418 /* Makes the file name truncated (and ellipsis shown) on the left side */
423 text-overflow: ellipsis;
426 /* Enforce LTR direction for the file name - fixes bug 1290056 */
427 .stack-frame-source-name-inner {
433 color: var(--theme-highlight-orange);
436 /* Tooltip: HTML Search */
438 #searchbox-panel-listbox {
444 #searchbox-panel-listbox .autocomplete-item,
445 #searchbox-panel-listbox .autocomplete-item[selected] {
449 #searchbox-panel-listbox .autocomplete-item > .initial-value {
454 #searchbox-panel-listbox .autocomplete-item > .autocomplete-value {