mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Tags: Bug #: 1510048 Differential Revision: https://phabricator.services.mozilla.com/D13017
605 lines
14 KiB
CSS
605 lines
14 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 {
|
|
--close-button-image: url(chrome://devtools/skin/images/close.svg);
|
|
--dock-bottom-image: url(chrome://devtools/skin/images/dock-bottom.svg);
|
|
--dock-side-right-image: url(chrome://devtools/skin/images/dock-side-right.svg);
|
|
--dock-side-left-image: url(chrome://devtools/skin/images/dock-side-left.svg);
|
|
--dock-undock-image: url(chrome://devtools/skin/images/dock-undock.svg);
|
|
--more-button-image: url(chrome://devtools/skin/images/more.svg);
|
|
--settings-image: url(chrome://devtools/skin/images/tool-options-photon.svg);
|
|
|
|
--command-noautohide-image: url(images/command-noautohide.svg);
|
|
--command-console-image: url(images/command-console.svg);
|
|
--command-paintflashing-image: url(images/command-paintflashing.svg);
|
|
--command-screenshot-image: url(images/command-screenshot.svg);
|
|
--command-responsive-image: url(images/command-responsivemode.svg);
|
|
--command-replay-image: url(images/command-replay.svg);
|
|
--command-scratchpad-image: url(images/tool-scratchpad.svg);
|
|
--command-pick-image: url(images/command-pick.svg);
|
|
--command-pick-accessibility-image: url(images/command-pick-accessibility.svg);
|
|
--command-frames-image: url(images/command-frames.svg);
|
|
--command-rulers-image: url(images/command-rulers.svg);
|
|
--command-measure-image: url(images/command-measure.svg);
|
|
--command-chevron-image: url(images/command-chevron.svg);
|
|
}
|
|
|
|
/*
|
|
* Debug Target Info layout
|
|
* +------+-------------------+------------------+
|
|
* | icon | runtime info text | target info text |
|
|
* | 32px | auto | 1fr |
|
|
* +------+-------------------+------------------+
|
|
*/
|
|
.debug-target-info {
|
|
display: grid;
|
|
grid-template-columns: 32px auto 1fr;
|
|
grid-column-gap: 8px;
|
|
align-items: center;
|
|
background: var(--theme-tab-toolbar-background);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
padding-bottom: 4px;
|
|
padding-left: 12px;
|
|
padding-top: 4px;
|
|
font-size: 1.46em;
|
|
}
|
|
|
|
.debug-target-info .target {
|
|
font-weight: lighter;
|
|
}
|
|
|
|
/* Toolbox tabbar */
|
|
|
|
.devtools-tabbar {
|
|
-moz-appearance: none;
|
|
/* For narrow devtool width, we define the each column width of tabbar.
|
|
Defined layout is as follow:
|
|
|
|
-------------------------------------------------
|
|
| Picker | tooltabs | commands | controls |
|
|
| auto | 26px ~ 1fr | auto | max-content|
|
|
-------------------------------------------------
|
|
*/
|
|
display: grid;
|
|
grid-template-columns: auto minmax(26px, 1fr) auto max-content;
|
|
background: var(--theme-tab-toolbar-background);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
box-sizing: border-box;
|
|
min-height: 29px;
|
|
}
|
|
|
|
.dragging #toolbox-panel-iframe-webconsole {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toolbox-tabs-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
/* These classes use to stretch the tool tabs wrapper width if toolbox does'n
|
|
have start buttons or end buttons element. */
|
|
|
|
.devtools-tabbar .toolbox-tabs-wrapper {
|
|
grid-column-start: 2;
|
|
grid-column-end: 3;
|
|
}
|
|
|
|
.devtools-tabbar-has-start .toolbox-tabs-wrapper {
|
|
grid-column-start: 1;
|
|
}
|
|
|
|
.devtools-tabbar-has-end .toolbox-tabs-wrapper {
|
|
grid-column-end: 4;
|
|
}
|
|
|
|
.toolbox-tabs {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
margin: 0;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Set flex attribute to Toolbox buttons and Picker container so,
|
|
they don't overlap with the tab bar */
|
|
#toolbox-buttons-start,
|
|
#toolbox-buttons-end,
|
|
#toolbox-controls {
|
|
display: flex;
|
|
align-items: stretch;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Toolbox tabs */
|
|
|
|
.devtools-tab {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 24px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
background-color: transparent;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.devtools-tab-label {
|
|
font-size: 12px;
|
|
mask-image: linear-gradient(to left, transparent 0, black 6px);
|
|
/* Set the end padding on the label to make sure the label gets faded out properly */
|
|
padding-inline-end: 10px;
|
|
min-width: 1px;
|
|
}
|
|
|
|
.devtools-tab-label:-moz-locale-dir(rtl) {
|
|
mask-image: linear-gradient(to right, transparent 0, black 6px);
|
|
}
|
|
|
|
.devtools-tab .devtools-tab-badge {
|
|
color: var(--theme-highlight-blue);
|
|
font-size: 80%;
|
|
font-weight: 500;
|
|
margin-inline-start: 5px;
|
|
}
|
|
|
|
.devtools-tab-icon-only {
|
|
min-width: 24px;
|
|
}
|
|
|
|
.devtools-tab {
|
|
color: var(--theme-toolbar-color);
|
|
}
|
|
|
|
.devtools-tab:hover,
|
|
.devtools-tab:focus {
|
|
background-color: var(--theme-toolbar-hover);
|
|
}
|
|
|
|
/* Remove system control border from devtools-tab. */
|
|
.devtools-tab::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
.devtools-tab:hover:active {
|
|
background-color: var(--theme-toolbar-hover-active);
|
|
}
|
|
|
|
.devtools-tab.selected {
|
|
color: var(--theme-toolbar-selected-color);
|
|
}
|
|
|
|
.devtools-tab > img {
|
|
border: none;
|
|
margin: 0;
|
|
margin-inline-start: 10px;
|
|
margin-inline-end: 5px;
|
|
max-height: 16px;
|
|
width: 16px; /* Prevents collapse during theme switching */
|
|
vertical-align: text-top;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.devtools-tab > label {
|
|
white-space: nowrap;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.devtools-tab > img {
|
|
-moz-context-properties: fill;
|
|
fill: var(--theme-toolbar-color);
|
|
}
|
|
|
|
.devtools-tab.selected > img {
|
|
fill: var(--theme-toolbar-selected-color);
|
|
}
|
|
|
|
.devtools-tab.highlighted > img {
|
|
fill: var(--theme-toolbar-highlighted-color);
|
|
}
|
|
|
|
#devtools-chevron-menu-button::before {
|
|
-moz-context-properties: fill;
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
}
|
|
|
|
/* Toolbox controls */
|
|
|
|
#tools-chevron-menu-button::before {
|
|
top: 0;
|
|
inset-inline-end: 0;
|
|
background-image: var(--command-chevron-image);
|
|
background-position: center;
|
|
}
|
|
|
|
.tools-chevron-menu:-moz-locale-dir(rtl) {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* On OSX the cursor turns into a window-resizing cursor at the edges of the
|
|
* window, so bring the end of the toolbox in. */
|
|
:root[platform="mac"] #toolbox-controls {
|
|
margin-inline-end: 3px;
|
|
}
|
|
|
|
#toolbox-buttons-start > .devtools-separator {
|
|
--separator-inline-margin: 0;
|
|
}
|
|
|
|
#toolbox-buttons-end > .devtools-separator {
|
|
--separator-inline-margin: 5px;
|
|
}
|
|
|
|
#toolbox-close {
|
|
min-width: 24px;
|
|
}
|
|
|
|
#toolbox-close::before {
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
background-image: var(--close-button-image);
|
|
}
|
|
|
|
#toolbox-meatball-menu-button {
|
|
min-width: 24px;
|
|
}
|
|
|
|
#toolbox-meatball-menu-button::before {
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
background-image: var(--more-button-image);
|
|
}
|
|
|
|
#toolbox-meatball-menu-dock-bottom > .label::before {
|
|
--menuitem-icon-image: var(--dock-bottom-image);
|
|
}
|
|
#toolbox-meatball-menu-dock-left > .label::before {
|
|
--menuitem-icon-image: var(--dock-side-left-image);
|
|
}
|
|
#toolbox-meatball-menu-dock-right > .label::before {
|
|
--menuitem-icon-image: var(--dock-side-right-image);
|
|
}
|
|
#toolbox-meatball-menu-dock-window > .label::before {
|
|
--menuitem-icon-image: var(--dock-undock-image);
|
|
}
|
|
#toolbox-meatball-menu-splitconsole > .label::before {
|
|
--menuitem-icon-image: var(--command-console-image);
|
|
}
|
|
#toolbox-meatball-menu-noautohide > .label::before {
|
|
--menuitem-icon-image: var(--command-noautohide-image);
|
|
}
|
|
#toolbox-meatball-menu-settings > .label::before {
|
|
--menuitem-icon-image: var(--settings-image);
|
|
}
|
|
|
|
/* Command buttons */
|
|
|
|
.command-button,
|
|
#toolbox-controls > button,
|
|
.toolbox-tabs-wrapper .tools-chevron-menu {
|
|
/* !important is needed to override .devtools-button rules in common.css */
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
position: relative;
|
|
min-width: 24px;
|
|
}
|
|
|
|
#command-button-pick {
|
|
min-width: 32px;
|
|
}
|
|
|
|
#command-button-pick::before {
|
|
background-image: var(--command-pick-image);
|
|
-moz-context-properties: fill, stroke;
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
stroke: none;
|
|
}
|
|
|
|
#command-button-pick.checked::before {
|
|
fill: var(--theme-toolbar-checked-color);
|
|
stroke: var(--theme-toolbar-checked-color);
|
|
}
|
|
|
|
#command-button-pick.accessibility::before {
|
|
background-image: var(--command-pick-accessibility-image);
|
|
}
|
|
|
|
/* Command button images */
|
|
|
|
#command-button-paintflashing::before {
|
|
background-image: var(--command-paintflashing-image);
|
|
}
|
|
|
|
#command-button-screenshot::before {
|
|
background-image: var(--command-screenshot-image);
|
|
}
|
|
|
|
#command-button-responsive::before {
|
|
background-image: var(--command-responsive-image);
|
|
-moz-context-properties: fill, stroke;
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
stroke: none;
|
|
}
|
|
|
|
#command-button-responsive.checked::before {
|
|
fill: var(--theme-toolbar-checked-color);
|
|
stroke: var(--theme-toolbar-checked-color);
|
|
}
|
|
|
|
#command-button-stop-replay::before,
|
|
#command-button-replay::before {
|
|
background-image: var(--command-replay-image);
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
-moz-context-properties: fill;
|
|
background-repeat: no-repeat;
|
|
height: 16px;
|
|
background-size: contain;
|
|
}
|
|
|
|
#command-button-replay,
|
|
#command-button-stop-replay {
|
|
background-color: transparent;
|
|
}
|
|
|
|
#command-button-replay:hover,
|
|
#command-button-stop-replay:hover {
|
|
background: var(--toolbarbutton-background);
|
|
}
|
|
|
|
#command-button-stop-replay::before {
|
|
fill: currentColor;
|
|
}
|
|
|
|
#command-button-scratchpad::before {
|
|
background-image: var(--command-scratchpad-image);
|
|
}
|
|
|
|
#command-button-eyedropper::before {
|
|
background-image: var(--command-eyedropper-image);
|
|
}
|
|
|
|
#command-button-rulers::before {
|
|
background-image: var(--command-rulers-image);
|
|
}
|
|
|
|
#command-button-measure::before {
|
|
background-image: var(--command-measure-image);
|
|
}
|
|
|
|
#command-button-frames::before {
|
|
background-image: var(--command-frames-image);
|
|
-moz-context-properties: fill, stroke;
|
|
fill: var(--theme-toolbar-photon-icon-color);
|
|
stroke: none;
|
|
}
|
|
|
|
#command-button-frames.checked::before {
|
|
fill: var(--theme-toolbar-checked-color);
|
|
stroke: var(--theme-toolbar-checked-color);
|
|
}
|
|
|
|
/* Tooltip of frames menu */
|
|
|
|
#command-button-frames-panel > .tooltip-panel {
|
|
max-width: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#toolbox-frame-menu span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Toolbox panels */
|
|
|
|
.toolbox-panel {
|
|
display: -moz-box;
|
|
-moz-box-flex: 1;
|
|
visibility: collapse;
|
|
}
|
|
|
|
.toolbox-panel[selected] {
|
|
visibility: visible;
|
|
}
|
|
|
|
/**
|
|
* When panels are collapsed or hidden, making sure that they are also
|
|
* inaccessible by keyboard. This is not the case by default because the are
|
|
* predominantly hidden using visibility: collapse; style or collapsed
|
|
* attribute.
|
|
*/
|
|
.toolbox-panel *,
|
|
#toolbox-panel-webconsole[collapsed] * {
|
|
-moz-user-focus: ignore;
|
|
}
|
|
|
|
/**
|
|
* Enrure that selected toolbox panel's contents are keyboard accessible as they
|
|
* are explicitly made not to be when hidden (default).
|
|
*/
|
|
.toolbox-panel[selected] * {
|
|
-moz-user-focus: normal;
|
|
}
|
|
|
|
/* Toolbox tabs reordering */
|
|
#toolbox-container.tabs-reordering > .theme-body {
|
|
pointer-events: none;
|
|
}
|
|
|
|
#toolbox-container.tabs-reordering
|
|
.devtools-tab:not(.selected):hover
|
|
.devtools-tab-line {
|
|
background: transparent;
|
|
opacity: 0;
|
|
transition: none;
|
|
}
|
|
|
|
#toolbox-container.tabs-reordering .devtools-tab.selected {
|
|
background-color: var(--theme-toolbar-hover);
|
|
z-index: 1;
|
|
}
|
|
|
|
/*. webreplay */
|
|
|
|
.webreplay-player {
|
|
-moz-appearance: none;
|
|
background: var(--theme-tab-toolbar-background);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
box-sizing: border-box;
|
|
min-height: 29px;
|
|
|
|
--progress-recording-background: #ffebeb;
|
|
--progress-playing-background: #ebf6ff;
|
|
|
|
--recording-marker-background: hsl(14.9, 100%, 47.3%);
|
|
--recording-marker-background-hover: hsl(14.9, 100%, 37.3%);
|
|
--command-button-size: 14px;
|
|
--command-button-primary-size: 20px;
|
|
}
|
|
|
|
.webreplay-player .overlay-container {
|
|
display: flex;
|
|
}
|
|
|
|
.webreplay-player .progressBar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 20px;
|
|
background: #fff;
|
|
margin: 4px 10px 4px 0;
|
|
border: 1px solid #bfc9d2;
|
|
}
|
|
|
|
.webreplay-player .progress {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--progress-playing-background);
|
|
}
|
|
|
|
.webreplay-player .recording .progress {
|
|
background: var(--progress-recording-background);
|
|
}
|
|
|
|
.webreplay-player .message {
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 4.5px;
|
|
top: calc(50% - 3.5px);
|
|
background: var(--blue-50);
|
|
}
|
|
|
|
.webreplay-player .message.overlayed {
|
|
border: 1px solid var(--progress-playing-background);
|
|
top: 5.5px;
|
|
}
|
|
|
|
.webreplay-player .message.overlayed.future {
|
|
border-color: #fff;
|
|
}
|
|
|
|
.webreplay-player .recording .message.overlayed {
|
|
border-color: var(--progress-recording-background);
|
|
}
|
|
|
|
.webreplay-player .recording .message {
|
|
background: var(--recording-marker-background);
|
|
}
|
|
|
|
.webreplay-player .recording .message:hover {
|
|
background: var(--recording-marker-background-hover);
|
|
}
|
|
|
|
.webreplay-player .message:hover {
|
|
background: var(--blue-60);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.webreplay-player .message:hover::before {
|
|
transform: scale(0.1);
|
|
}
|
|
|
|
.webreplay-player .commands {
|
|
display: flex;
|
|
}
|
|
|
|
.webreplay-player .command-button {
|
|
display: flex;
|
|
min-width: 17px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.webreplay-player .command-button.primary {
|
|
min-width: 24px;
|
|
}
|
|
|
|
.webreplay-player .btn {
|
|
width: var(--command-button-size);
|
|
height: var(--command-button-size);
|
|
mask-size: var(--command-button-size);
|
|
background: #6a6a6a;
|
|
align-self: center;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.webreplay-player .primary .btn {
|
|
width: var(--command-button-primary-size);
|
|
height: var(--command-button-primary-size);
|
|
mask-size: var(--command-button-primary-size);
|
|
}
|
|
|
|
.webreplay-player .command-button.active:hover {
|
|
background: #efefef;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.webreplay-player .command-button.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
.webreplay-player div.command-button .rewind {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.webreplay-player div.command-button .previous {
|
|
transform: scaleX(-1);
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.webreplay-player div.command-button .next {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.webreplay-player .progress-line {
|
|
width: 0%;
|
|
height: 1px;
|
|
background: #0074e8;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 10px;
|
|
top: 50%;
|
|
}
|
|
|
|
.webreplay-player .progress-line.end {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.webreplay-player .recording .progress-line {
|
|
background: #d0021b;
|
|
opacity: 0.3;
|
|
}
|