mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
173 lines
5.2 KiB
CSS
173 lines
5.2 KiB
CSS
/* vim:set ts=2 sw=2 sts=2 et: */
|
|
/* 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/. */
|
|
|
|
:root.theme-light {
|
|
--old-tooltip-simpletext-color: black;
|
|
--old-tooltip-simpletext-border: #d9e1e8;
|
|
--old-tooltip-arrow-vertical: url("chrome://devtools/skin/tooltip/arrow-vertical-light.png");
|
|
--old-tooltip-arrow-horizontal: url("chrome://devtools/skin/tooltip/arrow-horizontal-light.png");
|
|
--old-tooltip-arrow-vertical-2x: url("chrome://devtools/skin/tooltip/[email protected]");
|
|
--old-tooltip-arrow-horizontal-2x: url("chrome://devtools/skin/tooltip/[email protected]");
|
|
--old-tooltip-arrowcontent-background: rgba(255, 255, 255, .9);
|
|
--old-tooltip-arrowcontent-border: #d9e1e8;
|
|
}
|
|
|
|
:root.theme-dark {
|
|
--old-tooltip-simpletext-color: white;
|
|
--old-tooltip-simpletext-border: #434850;
|
|
--old-tooltip-arrow-vertical: url("chrome://devtools/skin/tooltip/arrow-vertical-dark.png");
|
|
--old-tooltip-arrow-horizontal: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark.png");
|
|
--old-tooltip-arrow-vertical-2x: url("chrome://devtools/skin/tooltip/[email protected]");
|
|
--old-tooltip-arrow-horizontal-2x: url("chrome://devtools/skin/tooltip/[email protected]");
|
|
--old-tooltip-arrowcontent-background: rgba(19, 28, 38, .9);
|
|
--old-tooltip-arrowcontent-border: #434850;
|
|
}
|
|
|
|
.devtools-tooltip .panel-arrowcontent {
|
|
padding: 4px;
|
|
}
|
|
|
|
.devtools-tooltip .panel-arrowcontainer {
|
|
/* Reseting the transition used when panels are shown */
|
|
transition: none;
|
|
/* Panels slide up/down/left/right when they appear using a transform.
|
|
Since we want to remove the transition, we don't need to transform anymore
|
|
plus it can interfeer by causing mouseleave events on the underlying nodes */
|
|
transform: none;
|
|
}
|
|
|
|
.devtools-tooltip[clamped-dimensions] {
|
|
min-height: 100px;
|
|
max-height: 400px;
|
|
min-width: 100px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.devtools-tooltip[clamped-dimensions-no-min-height] {
|
|
min-height: 0;
|
|
max-height: 400px;
|
|
min-width: 100px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
|
|
min-width: 400px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
|
|
.devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
|
|
.devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.devtools-tooltip[wide] {
|
|
max-width: 600px;
|
|
}
|
|
|
|
/* Tooltip: Simple Text */
|
|
|
|
.devtools-tooltip-simple-text {
|
|
max-width: 400px;
|
|
margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */
|
|
padding: 8px 12px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.devtools-tooltip-simple-text:first-child {
|
|
margin-top: -4px;
|
|
}
|
|
|
|
.devtools-tooltip-simple-text:last-child {
|
|
margin-bottom: -4px;
|
|
}
|
|
|
|
/* Tooltip: Variables View */
|
|
|
|
.devtools-tooltip-variables-view-box {
|
|
margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
|
|
}
|
|
|
|
.devtools-tooltip-variables-view-box .variable-or-property > .title {
|
|
padding-inline-end: 6px;
|
|
}
|
|
|
|
.devtools-tooltip-iframe {
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Overring panel arrow images to fit with our light and dark themes */
|
|
|
|
.theme-tooltip-panel .devtools-tooltip-simple-text:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrowcontent {
|
|
padding: 4px;
|
|
background: var(--old-tooltip-arrowcontent-background);
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
border: 3px solid var(--old-tooltip-arrowcontent-border);
|
|
}
|
|
|
|
/* Overring panel arrow images to fit with our light and dark themes */
|
|
|
|
.theme-tooltip-panel .panel-arrow {
|
|
--arrow-margin: -4px;
|
|
}
|
|
|
|
:root[platform="win"] .theme-tooltip-panel .panel-arrow {
|
|
--arrow-margin: -7px;
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="top"],
|
|
.theme-tooltip-panel .panel-arrow[side="bottom"] {
|
|
list-style-image: var(--old-tooltip-arrow-vertical);
|
|
/* !important is needed to override the popup.css rules in toolkit/themes */
|
|
width: 39px !important;
|
|
height: 16px !important;
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="left"],
|
|
.theme-tooltip-panel .panel-arrow[side="right"] {
|
|
list-style-image: var(--old-tooltip-arrow-horizontal);
|
|
/* !important is needed to override the popup.css rules in toolkit/themes */
|
|
width: 16px !important;
|
|
height: 39px !important;
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="top"] {
|
|
margin-bottom: var(--arrow-margin);
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="bottom"] {
|
|
margin-top: var(--arrow-margin);
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="left"] {
|
|
margin-right: var(--arrow-margin);
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="right"] {
|
|
margin-left: var(--arrow-margin);
|
|
}
|
|
|
|
@media (min-resolution: 1.1dppx) {
|
|
.theme-tooltip-panel .panel-arrow[side="top"],
|
|
.theme-tooltip-panel .panel-arrow[side="bottom"] {
|
|
list-style-image: var(--old-tooltip-arrow-vertical-2x);
|
|
}
|
|
|
|
.theme-tooltip-panel .panel-arrow[side="left"],
|
|
.theme-tooltip-panel .panel-arrow[side="right"] {
|
|
list-style-image: var(--old-tooltip-arrow-horizontal-2x);
|
|
}
|
|
}
|
|
|
|
.theme-tooltip-panel .devtools-tooltip-simple-text {
|
|
color: var(--old-tooltip-simpletext-color);
|
|
border-bottom: 1px solid var(--old-tooltip-simpletext-border);
|
|
} |