gecko-dev/browser/themes/shared/devtools/widgets.inc.css

1562 lines
36 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/. */
%filter substitution
%define smw_marginDark #000
%define smw_marginLight #aaa
%define smw_itemDarkTopBorder rgba(0,0,0,0.2)
%define smw_itemDarkBottomBorder rgba(128,128,128,0.15)
%define smw_itemLightTopBorder rgba(128,128,128,0.15)
%define smw_itemLightBottomBorder transparent
%define table_itemDarkStartBorder rgba(0,0,0,0.2)
%define table_itemDarkEndBorder rgba(128,128,128,0.15)
%define table_itemLightStartBorder rgba(128,128,128,0.25)
%define table_itemLightEndBorder transparent
/* Generic pane helpers */
.generic-toggled-side-pane {
-moz-margin-start: 0 !important;
/* Unfortunately, transitions don't work properly with locale-aware properties,
so both the left and right margins are set via js, while the start margin
is always overridden here. */
}
.generic-toggled-side-pane[animated] {
transition: margin 0.25s ease-in-out;
}
/* Responsive container */
.devtools-responsive-container {
-moz-box-orient: horizontal;
}
@media (max-width: 700px) {
.devtools-responsive-container {
-moz-box-orient: vertical;
}
.devtools-responsive-container > .devtools-side-splitter {
border-width: 0;
border-top-width: 1px;
border-top-style: solid;
margin: 0;
min-height: 3px;
height: 3px;
margin-bottom: -3px;
/* In some edge case the cursor is not changed to n-resize */
cursor: n-resize;
}
.devtools-responsive-container > .devtools-sidebar-tabs {
min-height: 35vh;
max-height: 75vh;
}
}
/* BreacrumbsWidget */
.breadcrumbs-widget-container {
-moz-margin-end: 3px;
max-height: 25px; /* Set max-height for proper sizing on linux */
height: 25px; /* Set height to prevent starting small waiting for content */
/* A fake 1px-shadow is included in the border-images of the
breadcrumbs-widget-items, to match toolbar-buttons style.
This negative margin compensates the extra row of pixels created
by the shadow.*/
margin-bottom: -1px;
}
.scrollbutton-up,
.scrollbutton-down {
-moz-appearance: none;
background: transparent;
box-shadow: none;
border: none;
list-style-image: none;
margin: 0;
padding: 0;
}
.scrollbutton-up > .toolbarbutton-icon,
.scrollbutton-down > .toolbarbutton-icon {
-moz-appearance: none;
width: 7px;
height: 16px;
background-size: 14px 16px;
background-position: 0 center;
background-repeat: no-repeat;
background-image: url("breadcrumbs-scrollbutton.png");
list-style-image: none;
margin: 0 8px;
padding: 0;
}
@media (min-resolution: 2dppx) {
.scrollbutton-up > .toolbarbutton-icon,
.scrollbutton-down > .toolbarbutton-icon {
background-image: url("breadcrumbs-scrollbutton@2x.png");
}
}
.scrollbutton-up:not([disabled]):active:hover > .toolbarbutton-icon,
.scrollbutton-down:not([disabled]):active:hover > .toolbarbutton-icon {
background-position: -7px center;
}
.scrollbutton-up[disabled] > .toolbarbutton-icon,
.scrollbutton-down[disabled] > .toolbarbutton-icon {
opacity: 0.5;
}
/* Draw shadows to indicate there is more content 'behind' scrollbuttons. */
.scrollbutton-up:-moz-locale-dir(ltr),
.scrollbutton-down:-moz-locale-dir(rtl) {
border-right: solid 1px rgba(255, 255, 255, .1);
border-left: solid 1px transparent;
box-shadow: 3px 0px 3px -3px #181d20;
}
.scrollbutton-down:-moz-locale-dir(ltr),
.scrollbutton-up:-moz-locale-dir(rtl) {
border-right: solid 1px transparent;
border-left: solid 1px rgba(255, 255, 255, .1);
box-shadow: -3px 0px 3px -3px #181d20;
}
.scrollbutton-up[disabled],
.scrollbutton-down[disabled] {
box-shadow: none;
border-color: transparent;
}
.scrollbutton-up > .toolbarbutton-icon:-moz-locale-dir(rtl),
.scrollbutton-down > .toolbarbutton-icon:-moz-locale-dir(ltr) {
transform: scaleX(-1);
}
/* The breadcrumb separator elements are used as background images with
* -moz-element, so we position them offscreen since we don't care about
* seeing the original elements.
*/
.breadcrumb-separator-container {
position: fixed;
top: -1000px;
left: -1000px;
}
#breadcrumb-separator-before,
#breadcrumb-separator-after,
#breadcrumb-separator-normal {
width: 12px;
height: 25px;
overflow: hidden;
}
.theme-dark #breadcrumb-separator-before,
.theme-dark #breadcrumb-separator-after:after {
background: #1d4f73; /* Select Highlight Blue */
}
.theme-dark #breadcrumb-separator-after,
.theme-dark #breadcrumb-separator-before:after {
background: #343c45; /* Toolbars */
}
.theme-light #breadcrumb-separator-before,
.theme-light #breadcrumb-separator-after:after {
background: #4c9ed9; /* Select Highlight Blue */
}
.theme-light #breadcrumb-separator-after,
.theme-light #breadcrumb-separator-before:after {
background: #f0f1f2; /* Toolbars */
}
/* This chevron arrow cannot be replicated easily in CSS, so we are using
* a background image for it (still keeping it in a separate element so
* we can handle RTL support with a CSS transform).
*/
#breadcrumb-separator-normal {
background: url(breadcrumbs-divider@2x.png) no-repeat center right;
background-size: 12px 24px;
}
/* Fake a triangle by rotating a rectangle inside the elements */
#breadcrumb-separator-before:after,
#breadcrumb-separator-after:after {
content: "";
display: block;
width: 25px;
height: 25px;
transform: translateX(-18px) rotate(45deg);
-moz-box-sizing: border-box;
}
.breadcrumbs-widget-item {
background-color: transparent;
-moz-appearance: none;
min-height: 25px;
min-width: 65px;
margin: 0;
padding: 0 8px 0 20px;
border: none;
outline: none;
color: hsl(210,30%,85%);
}
.breadcrumbs-widget-item:not([checked]) {
background: -moz-element(#breadcrumb-separator-normal) no-repeat center left;
}
.breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item {
background: -moz-element(#breadcrumb-separator-after) no-repeat 0 0;
}
.breadcrumbs-widget-item[checked] {
background: -moz-element(#breadcrumb-separator-before) no-repeat 0 0;
}
.theme-dark .breadcrumbs-widget-item[checked] {
background-color: #1d4f73; /* Select Highlight Blue */
}
.theme-light .breadcrumbs-widget-item[checked] {
background-color: #4c9ed9; /* Select Highlight Blue */
}
.breadcrumbs-widget-item:first-child {
background-image: none;
}
/* RTL support: move the images that were on the left to the right,
* and move images that were on the right to the left.
*/
.breadcrumbs-widget-item:-moz-locale-dir(rtl) {
padding: 0 20px 0 8px;
}
.breadcrumbs-widget-item:-moz-locale-dir(rtl),
.breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item:-moz-locale-dir(rtl) {
background-position: center right;
}
#breadcrumb-separator-before:-moz-locale-dir(rtl),
#breadcrumb-separator-after:-moz-locale-dir(rtl),
#breadcrumb-separator-normal:-moz-locale-dir(rtl) {
transform: scaleX(-1);
}
#breadcrumb-separator-before:-moz-locale-dir(rtl):after,
#breadcrumb-separator-after:-moz-locale-dir(rtl):after {
transform: translateX(-5px) rotate(45deg);
}
.breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-id,
.breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-tag,
.breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-pseudo-classes,
.breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-classes {
color: #f5f7fa; /* Foreground (Text) - Light */
}
.theme-dark .breadcrumbs-widget-item {
color: #f5f7fa; /* Foreground (Text) - Light */
}
.theme-light .breadcrumbs-widget-item {
color: #18191a; /* Foreground (Text) - Dark */
}
.theme-dark .breadcrumbs-widget-item-id {
color: #b6babf; /* Foreground (Text) - Grey */
}
.theme-light .breadcrumbs-widget-item-id {
color: #585959; /* Foreground (Text) - Grey */
}
.theme-dark .breadcrumbs-widget-item-classes {
color: #a9bacb; /* Content (Text) - Light */
}
.theme-light .breadcrumbs-widget-item-classes {
color: #667380; /* Content (Text) - Dark Grey */
}
.theme-dark .breadcrumbs-widget-item-pseudo-classes {
color: #d99b28; /* Light Orange */
}
.theme-light .breadcrumbs-widget-item-pseudo-classes {
color: #d97e00; /* Light Orange */
}
.theme-dark .breadcrumbs-widget-item:not([checked]):hover label {
color: white;
}
.theme-light .breadcrumbs-widget-item:not([checked]):hover label {
color: black;
}
/* SimpleListWidget */
.simple-list-widget-container {
/* Hack: force hardware acceleration */
transform: translateZ(1px);
}
.theme-dark .simple-list-widget-item.selected {
background-color: #1d4f73; /* Select Highlight Blue */
color: #f5f7fa; /* Light foreground text */
}
.theme-light .simple-list-widget-item.selected {
background-color: #4c9ed9; /* Select Highlight Blue */
color: #f5f7fa; /* Light foreground text */
}
.theme-dark .simple-list-widget-item:not(.selected):hover {
background-color: rgba(255,255,255,.05);
}
.theme-light .simple-list-widget-item:not(.selected):hover {
background-color: rgba(0,0,0,.05);
}
.simple-list-widget-empty-text,
.simple-list-widget-perma-text {
padding: 4px 8px;
}
.theme-dark .simple-list-widget-empty-text,
.theme-dark .simple-list-widget-perma-text {
color: #b6babf; /* Light foreground text */
}
.theme-light .simple-list-widget-empty-text,
.theme-light .simple-list-widget-perma-text {
color: #585959; /* Grey foreground text */
}
/* FastListWidget */
.fast-list-widget-container {
/* Hack: force hardware acceleration */
transform: translateZ(1px);
}
.fast-list-widget-empty-text {
padding: 4px 8px;
}
.theme-dark .fast-list-widget-empty-text {
color: #b6babf; /* Light foreground text */
}
.theme-light .fast-list-widget-empty-text {
color: #585959; /* Grey foreground text */
}
/* SideMenuWidget */
.side-menu-widget-container {
/* Hack: force hardware acceleration */
transform: translateZ(1px);
}
/* SideMenuWidget container */
.theme-dark .side-menu-widget-container,
.theme-dark .side-menu-widget-empty-text {
background-color: #343c45; /* Toolbars */
}
.theme-dark .side-menu-widget-container:-moz-locale-dir(ltr),
.theme-dark .side-menu-widget-empty-text:-moz-locale-dir(ltr) {
box-shadow: inset -1px 0 0 @smw_marginDark@;
}
.theme-dark .side-menu-widget-container:-moz-locale-dir(rtl),
.theme-dark .side-menu-widget-empty-text:-moz-locale-dir(rtl) {
box-shadow: inset 1px 0 0 @smw_marginDark@;
}
.side-menu-widget-container:-moz-locale-dir(ltr),
.side-menu-widget-empty-text:-moz-locale-dir(ltr) {
box-shadow: inset -1px 0 0 @smw_marginLight@;
}
.side-menu-widget-container:-moz-locale-dir(rtl),
.side-menu-widget-empty-text:-moz-locale-dir(rtl) {
box-shadow: inset 1px 0 0 @smw_marginLight@;
}
.side-menu-widget-group {
/* To allow visibility of the dark margin shadow. */
-moz-margin-end: 1px;
}
.side-menu-widget-container[with-arrows=true] .side-menu-widget-item {
/* To compensate for the arrow image's dark margin. */
-moz-margin-end: -1px;
}
/* SideMenuWidget groups */
.side-menu-widget-group-title {
padding: 4px;
}
.theme-dark .side-menu-widget-group-title {
background-color: #252c33; /* Tab toolbar */
color: #a9bacb; /* Light content text */
}
.theme-light .side-menu-widget-group-title {
background-color: #ebeced; /* Tab toolbar */
color: #667380; /* Dark grey content text */
}
/* SideMenuWidget items */
.side-menu-widget-item {
/* To compensate for the top and bottom borders */
margin-top: -1px;
margin-bottom: -1px;
background-clip: padding-box;
}
.theme-dark .side-menu-widget-item {
border-top: 1px solid @smw_itemDarkTopBorder@;
border-bottom: 1px solid @smw_itemDarkBottomBorder@;
color: #f5f7fa; /* Light foreground text */
}
.theme-dark .side-menu-widget-item:last-of-type {
box-shadow: inset 0 -1px 0 @smw_itemDarkTopBorder@;
}
.theme-light .side-menu-widget-item {
border-top: 1px solid @smw_itemLightTopBorder@;
border-bottom: 1px solid @smw_itemLightBottomBorder@;
color: #18191a; /* Dark foreground text */
}
.theme-light .side-menu-widget-item:last-of-type {
box-shadow: inset 0 -1px 0 @smw_itemLightTopBorder@;
}
.theme-dark .side-menu-widget-item.selected {
background-color: #1d4f73; /* Select Highlight Blue */
color: #f5f7fa; /* Light foreground text */
}
.theme-light .side-menu-widget-item.selected {
background-color: #4c9ed9; /* Select Highlight Blue */
color: #f5f7fa; /* Light foreground text */
}
.side-menu-widget-item-arrow {
-moz-margin-start: -7px;
width: 7px; /* The image's width is 7 pixels */
/* Cover the border of the side-menu-widget-item */
margin-top: -1px;
margin-bottom: -1px;
}
.side-menu-widget-item.selected > .side-menu-widget-item-arrow {
background-size: auto, 1px 100%;
background-repeat: no-repeat;
}
.side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) {
background-position: center right, top right;
}
.side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) {
background-position: center left, top left;
}
.theme-dark .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) {
background-image: url(itemArrow-dark-ltr.svg), linear-gradient(to right, @smw_marginDark@, @smw_marginDark@);
}
.theme-dark .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) {
background-image: url(itemArrow-dark-rtl.svg), linear-gradient(to right, @smw_marginDark@, @smw_marginDark@);
}
.theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) {
background-image: url(itemArrow-ltr.svg), linear-gradient(to right, @smw_marginLight@, @smw_marginLight@);
}
.theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) {
background-image: url(itemArrow-rtl.svg), linear-gradient(to right, @smw_marginLight@, @smw_marginLight@);
}
/* SideMenuWidget items contents */
.side-menu-widget-item-contents {
padding: 4px;
/* To avoid having content overlapping the arrow image. */
-moz-padding-end: 8px;
}
.side-menu-widget-item-other {
/* To avoid having content overlapping the arrow image. */
-moz-padding-end: 8px;
/* To compensate for the .side-menu-widget-item-contents padding. */
-moz-margin-start: -4px;
-moz-margin-end: -8px;
}
.side-menu-widget-item-other:first-of-type {
margin-top: 4px;
}
.side-menu-widget-item-other:last-of-type {
margin-bottom: -4px;
}
.theme-dark .side-menu-widget-item-other {
background-color: rgba(0,0,0,.1);
}
.theme-light .side-menu-widget-item-other {
background-color: rgba(128,128,128,.1);
}
.theme-dark .side-menu-widget-item.selected .side-menu-widget-item-other {
background-color: rgba(0,0,0,.2); /* Darken the selection by 20% */
color: #f5f7fa; /* Light foreground text */
}
.theme-light .side-menu-widget-item.selected .side-menu-widget-item-other {
background-color: rgba(255,255,255,.8); /* Lighten the selection by 20% */
color: #18191a; /* Dark foreground text */
}
.theme-dark .side-menu-widget-item.selected .side-menu-widget-item-other.selected {
background-color: transparent;
color: #f5f7fa; /* Light foreground text */
}
.theme-light .side-menu-widget-item.selected .side-menu-widget-item-other.selected {
background-color: transparent;
color: #f5f7fa; /* Light foreground text */
}
/* SideMenuWidget checkboxes */
.side-menu-widget-group-checkbox {
margin: 0;
-moz-margin-end: 4px;
}
.side-menu-widget-item-checkbox {
margin: 0;
-moz-margin-start: 4px;
}
/* SideMenuWidget misc */
.side-menu-widget-empty-text {
padding: 4px 8px;
}
.theme-dark .side-menu-widget-empty-text {
background-color: #343c45; /* Toolbars */
color: #b6babf; /* Foreground (Text) - Grey */
}
.theme-light .side-menu-widget-empty-text {
background: #f7f7f7; /* Toolbars */
color: #585959; /* Grey foreground text */
}
/* VariablesView */
.variables-view-container {
/* Hack: force hardware acceleration */
transform: translateZ(1px);
}
.variables-view-empty-notice {
padding: 2px;
}
.theme-dark .variables-view-empty-notice {
color: #b6babf; /* Foreground (Text) - Grey */
}
.theme-light .variables-view-empty-notice {
color: #585959; /* Grey foreground text */
}
.theme-dark .variables-view-scope:focus > .title,
.theme-dark .variable-or-property:focus > .title {
background-color: #1d4f73; /* Selection colors */
color: #f5f7fa;
}
.theme-light .variables-view-scope:focus > .title,
.theme-light .variable-or-property:focus > .title {
background-color: #4c9ed9; /* Selection colors */
color: #f5f7fa;
}
.variables-view-scope > .title {
border-top-width: 1px;
border-top-style: solid;
margin-top: -1px;
}
/* Generic variables traits */
.variables-view-variable:not(:last-child) {
border-bottom: 1px solid rgba(128, 128, 128, .15);
}
.variables-view-variable > .title > .name {
font-weight: 600;
}
/* Generic variables *and* properties traits */
.variable-or-property:focus > .title > label {
color: inherit !important;
}
.variable-or-property > .title > .arrow {
-moz-margin-start: 3px;
}
.variable-or-property:not([untitled]) > .variables-view-element-details {
-moz-margin-start: 7px;
}
/* Traits applied when variables or properties are changed or overridden */
.variable-or-property:not([overridden]) {
transition: background 1s ease-in-out;
}
.variable-or-property:not([overridden])[changed] {
transition-duration: .4s;
}
.variable-or-property[overridden] {
background: rgba(128,128,128,0.05);
}
.variable-or-property[overridden] .title > label {
/* Cross out the title for this variable and all child properties. */
font-style: italic;
text-decoration: line-through;
border-bottom: none !important;
color: rgba(128,128,128,0.9);
opacity: 0.7;
}
/* Traits applied when variables or properties are editable */
.variable-or-property[editable] > .title > .value {
cursor: text;
}
.variable-or-property[overridden] .title > .value {
/* Disallow editing this variable and all child properties. */
pointer-events: none;
}
/* Custom configurable/enumerable/writable or frozen/sealed/extensible
* variables and properties */
.variable-or-property[non-enumerable]:not([self]):not([pseudo-item]) > .title > .name {
opacity: 0.6;
}
.variable-or-property-non-writable-icon {
background: url("chrome://browser/skin/devtools/vview-lock.png") no-repeat;
background-size: cover;
width: 16px;
height: 16px;
}
@media (min-resolution: 2dppx) {
.variable-or-property-non-writable-icon {
background-image: url("chrome://browser/skin/devtools/vview-lock@2x.png");
}
}
.variable-or-property-frozen-label,
.variable-or-property-sealed-label,
.variable-or-property-non-extensible-label {
height: 16px;
-moz-padding-end: 4px;
}
.variable-or-property:not(:focus) > .title > .variable-or-property-frozen-label,
.variable-or-property:not(:focus) > .title > .variable-or-property-sealed-label,
.variable-or-property:not(:focus) > .title > .variable-or-property-non-extensible-label {
color: #666;
}
/* Aligned values */
.variables-view-container[aligned-values] .title > .separator {
-moz-box-flex: 1;
}
.variables-view-container[aligned-values] .title > .value {
-moz-box-flex: 0;
width: 70vw;
}
.variables-view-container[aligned-values] .title > .element-value-input {
width: calc(70vw - 10px);
}
/* Actions first */
.variables-view-open-inspector {
-moz-box-ordinal-group: 1;
}
.variables-view-edit,
.variables-view-add-property {
-moz-box-ordinal-group: 2;
}
.variable-or-property-frozen-label,
.variable-or-property-sealed-label,
.variable-or-property-non-extensible-label,
.variable-or-property-non-writable-icon {
-moz-box-ordinal-group: 3;
}
.variables-view-delete {
-moz-box-ordinal-group: 4;
}
.variables-view-container[actions-first] .variables-view-delete,
.variables-view-container[actions-first] .variables-view-add-property,
.variables-view-container[actions-first] .variables-view-open-inspector {
-moz-box-ordinal-group: 0;
}
.variables-view-container[actions-first] [invisible] {
visibility: hidden;
}
/* Variables and properties tooltips */
.variable-or-property > tooltip > label {
margin: 0 2px 0 2px;
}
.variable-or-property[non-enumerable] > tooltip > label.enumerable,
.variable-or-property[non-configurable] > tooltip > label.configurable,
.variable-or-property[non-writable] > tooltip > label.writable,
.variable-or-property[non-extensible] > tooltip > label.extensible {
color: #800;
text-decoration: line-through;
}
.variable-or-property[overridden] > tooltip > label.overridden {
-moz-padding-start: 4px;
-moz-border-start: 1px dotted #000;
}
.variable-or-property[safe-getter] > tooltip > label.WebIDL {
-moz-padding-start: 4px;
-moz-border-start: 1px dotted #000;
color: #080;
}
/* Variables and properties editing */
.variables-view-delete {
background: url("chrome://browser/skin/devtools/vview-delete.png");
background-size: cover;
width: 16px;
height: 16px;
}
@media (min-resolution: 2dppx) {
.variables-view-delete {
background-image: url("chrome://browser/skin/devtools/vview-delete@2x.png");
}
}
.variables-view-delete:hover {
background-position: 16px;
}
.variables-view-delete:active {
background-position: 32px;
}
.variable-or-property:focus > .title > .variables-view-delete {
background-position: 0px;
}
.variables-view-edit {
background: url("chrome://browser/skin/devtools/vview-edit.png");
background-size: cover;
width: 16px;
height: 16px;
cursor: pointer;
}
@media (min-resolution: 2dppx) {
.variables-view-edit {
background-image: url("chrome://browser/skin/devtools/vview-edit@2x.png");
}
}
.variables-view-edit:hover {
background-position: 16px;
}
.variables-view-edit:active {
background-position: 32px;
}
.variable-or-property:focus > .title > .variables-view-edit {
background-position: 0px;
}
.variables-view-open-inspector {
background: url("chrome://browser/skin/devtools/vview-open-inspector.png");
background-size: cover;
width: 16px;
height: 16px;
cursor: pointer;
}
@media (min-resolution: 2dppx) {
.variables-view-open-inspector {
background-image: url("chrome://browser/skin/devtools/vview-open-inspector@2x.png");
}
}
.variables-view-open-inspector:hover {
background-position: 16px;
}
.variables-view-open-inspector:active {
background-position: 32px;
}
.variable-or-property:focus > .title > .variables-view-open-inspector {
background-position: 0px;
}
/* Variables and properties input boxes */
.variable-or-property > .title > .separator + .element-value-input {
-moz-margin-start: -2px !important;
-moz-margin-end: 2px !important;
}
.variable-or-property > .title > .separator[hidden=true] + .element-value-input {
-moz-margin-start: 4px !important;
-moz-margin-end: 2px !important;
}
.element-name-input {
-moz-margin-start: -2px !important;
-moz-margin-end: 2px !important;
font-weight: 600;
}
.element-value-input,
.element-name-input {
border: 1px solid rgba(128, 128, 128, .5) !important;
border-radius: 0;
color: inherit;
}
/* Variables and properties searching */
.variables-view-searchinput {
min-height: 24px;
}
.variable-or-property[unmatched] {
border: none;
margin: 0;
}
/* Expand/collapse arrow */
.arrow {
-moz-appearance: treetwisty;
width: 20px;
height: 20px;
}
.arrow[open] {
-moz-appearance: treetwistyopen;
}
.arrow[invisible] {
visibility: hidden;
}
/* Canvas graphs */
.graph-widget-canvas {
width: 100%;
height: 100%;
}
.graph-widget-canvas[input=hovering-background] {
cursor: text;
}
.graph-widget-canvas[input=hovering-region] {
cursor: pointer;
}
.graph-widget-canvas[input=hovering-selection-start-boundary],
.graph-widget-canvas[input=hovering-selection-end-boundary],
.graph-widget-canvas[input=adjusting-selection-boundary] {
cursor: col-resize;
}
.graph-widget-canvas[input=hovering-selection-contents] {
cursor: grab;
}
.graph-widget-canvas[input=dragging-selection-contents] {
cursor: grabbing;
}
.graph-widget-canvas ~ * {
pointer-events: none;
}
/* Line graph widget */
.line-graph-widget-container {
position: relative;
}
.line-graph-widget-canvas {
background: #0088cc;
}
.line-graph-widget-gutter {
position: absolute;
background: rgba(255,255,255,0.75);
width: 10px;
height: 100%;
top: 0;
left: 0;
border-right: 1px solid rgba(255,255,255,0.25);
}
.line-graph-widget-gutter-line {
position: absolute;
width: 100%;
border-top: 1px solid;
transform: translateY(-1px);
}
.line-graph-widget-gutter-line[type=maximum] {
border-color: #2cbb0f;
}
.line-graph-widget-gutter-line[type=minimum] {
border-color: #ed2655;
}
.line-graph-widget-gutter-line[type=average] {
border-color: #d97e00;
}
.line-graph-widget-tooltip {
position: absolute;
background: rgba(255,255,255,0.75);
box-shadow: 0 2px 1px rgba(0,0,0,0.1);
border-radius: 2px;
line-height: 15px;
-moz-padding-start: 6px;
-moz-padding-end: 6px;
transform: translateY(-50%);
font-size: 80%;
z-index: 1;
}
.line-graph-widget-tooltip::before {
content: "";
position: absolute;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
top: calc(50% - 3px);
}
.line-graph-widget-tooltip[arrow=start]::before {
-moz-border-end: 3px solid rgba(255,255,255,0.75);
left: -3px;
}
.line-graph-widget-tooltip[arrow=end]::before {
-moz-border-start: 3px solid rgba(255,255,255,0.75);
right: -3px;
}
.line-graph-widget-tooltip[type=maximum] {
left: calc(10px + 6px);
}
.line-graph-widget-tooltip[type=minimum] {
left: calc(10px + 6px);
}
.line-graph-widget-tooltip[type=average] {
right: 6px;
}
.line-graph-widget-tooltip > [text=info] {
color: #18191a;
}
.line-graph-widget-tooltip > [text=value] {
-moz-margin-start: 3px;
}
.line-graph-widget-tooltip > [text=metric] {
-moz-margin-start: 1px;
color: #667380;
}
.line-graph-widget-tooltip > [text=value],
.line-graph-widget-tooltip > [text=metric] {
text-shadow: 1px 0px rgba(255,255,255,0.6),
-1px 0px rgba(255,255,255,0.6),
0px -1px rgba(255,255,255,0.6),
0px 1px rgba(255,255,255,0.6);
}
.line-graph-widget-tooltip[type=maximum] > [text=value] {
color: #2cbb0f;
}
.line-graph-widget-tooltip[type=minimum] > [text=value] {
color: #ed2655;
}
.line-graph-widget-tooltip[type=average] > [text=value] {
color: #d97e00;
}
/* Charts */
.generic-chart-container {
/* Hack: force hardware acceleration */
transform: translateZ(1px);
}
.theme-dark .generic-chart-container {
color: #f5f7fa; /* Light foreground text */
}
.theme-light .generic-chart-container {
color: #585959; /* Grey foreground text */
}
.theme-dark .chart-colored-blob {
fill: #a9bacb; /* Light content text */
background: #a9bacb;
}
.theme-light .chart-colored-blob {
fill: #8fa1b2; /* Grey content text */
background: #8fa1b2;
}
/* Charts: Pie */
.pie-chart-slice {
stroke-width: 1px;
cursor: pointer;
}
.theme-dark .pie-chart-slice {
stroke: rgba(0,0,0,0.2);
}
.theme-light .pie-chart-slice {
stroke: rgba(255,255,255,0.8);
}
.theme-dark .pie-chart-slice[largest] {
stroke-width: 2px;
stroke: #fff;
}
.theme-light .pie-chart-slice[largest] {
stroke: #000;
}
.pie-chart-label {
text-anchor: middle;
dominant-baseline: middle;
pointer-events: none;
}
.theme-dark .pie-chart-label {
fill: #000;
}
.theme-light .pie-chart-label {
fill: #fff;
}
.pie-chart-container[slices="1"] > .pie-chart-slice {
stroke-width: 0px;
}
.pie-chart-slice,
.pie-chart-label {
transition: all 0.1s ease-out;
}
.pie-chart-slice:not(:hover):not([focused]),
.pie-chart-slice:not(:hover):not([focused]) + .pie-chart-label {
transform: none !important;
}
/* Charts: Table */
.table-chart-title {
padding-bottom: 10px;
font-size: 120%;
font-weight: 600;
}
.table-chart-row {
margin-top: 1px;
cursor: pointer;
}
.table-chart-grid:hover > .table-chart-row {
transition: opacity 0.1s ease-in-out;
}
.table-chart-grid:not(:hover) > .table-chart-row {
transition: opacity 0.2s ease-in-out;
}
.generic-chart-container:hover > .table-chart-grid:hover > .table-chart-row:not(:hover),
.generic-chart-container:hover ~ .table-chart-container > .table-chart-grid > .table-chart-row:not([focused]) {
opacity: 0.4;
}
.table-chart-row-box {
width: 8px;
height: 1.5em;
-moz-margin-end: 10px;
}
.table-chart-row-label {
width: 8em;
-moz-padding-end: 6px;
cursor: inherit;
}
.table-chart-totals {
margin-top: 8px;
padding-top: 6px;
}
.theme-dark .table-chart-totals {
border-top: 1px solid #b6babf; /* Grey foreground text */
}
.theme-light .table-chart-totals {
border-top: 1px solid #585959; /* Grey foreground text */
}
.table-chart-summary-label {
font-weight: 600;
padding: 1px 0px;
}
.theme-dark .table-chart-summary-label {
color: #f5f7fa; /* Light foreground text */
}
.theme-light .table-chart-summary-label {
color: #18191a; /* Dark foreground text */
}
/* Table Widget */
/* Table body */
.table-widget-body > .devtools-side-splitter {
border: none;
}
.table-widget-body {
overflow: auto;
}
.theme-light .table-widget-body {
background: #F7F7F7; /* Background-Sidebar */
}
.theme-dark .table-widget-body,
.theme-dark .table-widget-empty-text {
background-color: #343c45; /* Toolbars */
}
.theme-dark .table-widget-body:-moz-locale-dir(ltr) {
box-shadow: inset -1px 0 0 @smw_marginDark@;
}
.theme-dark .table-widget-body:-moz-locale-dir(rtl) {
box-shadow: inset 1px 0 0 @smw_marginDark@;
}
.table-widget-body:-moz-locale-dir(ltr) {
box-shadow: inset -1px 0 0 @smw_marginLight@;
}
.table-widget-body:-moz-locale-dir(rtl) {
box-shadow: inset 1px 0 0 @smw_marginLight@;
}
/* Column Headers */
.theme-dark .table-widget-column-header,
.theme-dark .table-widget-cell {
-moz-border-end: 1px solid @table_itemDarkStartBorder@;
box-shadow: inset 1px 0 0 @table_itemDarkEndBorder@;
}
.theme-light .table-widget-column-header,
.theme-light .table-widget-cell {
-moz-border-end: 1px solid @table_itemLightStartBorder@;
box-shadow: inset 1px 0 0 @table_itemLightEndBorder@;
}
/* Table widget column header colors are taken from netmonitor.inc.css to match
the look of both the tables. This needs to be updated along with netmonitor
header colors in bug 951714 */
.table-widget-column-header {
background: rgba(0,0,0,0);
position: sticky;
top: 0;
min-height: 32px;
width: 100%;
border: none;
padding: 8px 0 0 !important;
color: inherit;
text-align: center;
font-weight: inherit !important;
transition: background-color 0.1s ease-in-out;
}
.table-widget-column-header:hover {
background: rgba(0,0,0,0.10);
}
.table-widget-column-header:hover:active {
background: rgba(0,0,0,0.25);
}
.table-widget-column-header:not(:active)[sorted] {
background: rgba(0,0,0,0.15);
}
.table-widget-column-header:not(:active)[sorted=ascending] {
background-image: radial-gradient(farthest-side at center top, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
background-size: 100% 1px;
background-repeat: no-repeat;
}
.table-widget-column-header:not(:active)[sorted=descending] {
background-image: radial-gradient(farthest-side at center bottom, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
background-size: 100% 1px;
background-repeat: no-repeat;
background-position: bottom;
}
/* Cells */
.table-widget-cell {
width: 100%;
margin: -1px 0 !important;
padding: 3px 4px;
background-clip: padding-box;
min-width: 100px;
-moz-user-focus: normal;
}
.theme-dark .table-widget-cell {
border-top: 1px solid @smw_itemDarkTopBorder@;
border-bottom: 1px solid @smw_itemDarkBottomBorder@;
color: #f5f7fa; /* Light foreground text */
}
.theme-dark:not(.filtering) .table-widget-cell:nth-child(odd):not(.theme-selected),
.theme-dark .table-widget-cell:not(.theme-selected)[odd] {
background: rgba(255,255,255,0.05);
}
.theme-dark .table-widget-cell:last-of-type {
box-shadow: inset 0 -1px 0 @smw_itemDarkTopBorder@;
}
.theme-light .table-widget-cell {
border-top: 1px solid @smw_itemLightTopBorder@;
border-bottom: 1px solid @smw_itemLightBottomBorder@;
}
.theme-light .table-widget-cell:not(.theme-selected) {
color: #18191a; /* Dark foreground text */
}
.theme-light:not(.filtering) .table-widget-cell:nth-child(odd):not(.theme-selected),
.theme-light .table-widget-cell:not(.theme-selected)[odd] {
background: rgba(128,128,128,0.05);
}
.theme-light .table-widget-cell:last-of-type {
box-shadow: inset 0 -1px 0 @smw_itemLightTopBorder@;
}
.table-widget-cell.flash-out {
animation: flash-out 0.5s ease-in;
}
@keyframes flash-out {
to {
background: #a18650;
}
}
/* Empty text and initial text */
.table-widget-empty-text {
display: none;
text-align: center;
font-size: large;
margin-top: -20px !important;
}
.theme-light .table-widget-empty-text {
background: #F7F7F7; /* Background-Sidebar */
}
.table-widget-body:empty + .table-widget-empty-text:not([value=""]),
.table-widget-body[empty] + .table-widget-empty-text:not([value=""]) {
display: block;
}
/* Tree Widget */
.tree-widget-container {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
list-style: none;
overflow: hidden;
-moz-margin-end: 40px;
}
.tree-widget-container:-moz-focusring,
.tree-widget-container *:-moz-focusring {
outline-style: none;
}
.tree-widget-empty-text {
padding: 10px 20px;
font-size: medium;
background: transparent;
}
/* Tree Item */
.tree-widget-container .tree-widget-item {
padding: 2px 0px 4px;
/* OSX has line-height 14px by default, which causes weird alignment issues
* because of 20px high icons. thus making line-height consistent with that of
* windows.
*/
line-height: 17px !important;
display: inline-block;
width: 100%;
word-break: keep-all; /* To prevent long urls like http://foo.com/bar from
breaking in multiple lines */
}
.tree-widget-container .tree-widget-children {
margin: 0;
padding: 0;
list-style: none;
}
.tree-widget-item[level="1"] {
font-weight: 800;
}
/* Twisties */
.tree-widget-item:before {
content: "";
width: 14px;
height: 14px;
float: left;
margin: 3px 2px -3px;
background-repeat: no-repeat;
background-image: url("chrome://browser/skin/devtools/controls.png");
background-size: 56px 28px;
cursor: pointer;
background-position: -28px -14px;
}
.tree-widget-item:-moz-locale-dir(rtl):before {
float: right;
transform: scaleX(-1);
}
.theme-light .tree-widget-item:before {
background-position: 0 -14px;
}
.tree-widget-item[empty]:before {
background: transparent;
}
.tree-widget-item[expanded]:before {
background-position: -42px -14px;
}
.theme-light .tree-widget-item[expanded]:before {
background-position: -14px -14px;
}
.tree-widget-item + ul {
overflow: hidden;
animation: collapse-tree-item 0.2s;
max-height: 0;
}
.tree-widget-item[expanded] + ul {
animation: expand-tree-item 0.3s;
max-height: unset;
}
@keyframes collapse-tree-item {
from {
max-height: 300px;
}
to {
max-height: 0;
}
}
@keyframes expand-tree-item {
from {
max-height: 0;
}
to {
max-height: 500px;
}
}
@media (min-resolution: 2dppx) {
.tree-widget-item:before {
background-image: url("chrome://browser/skin/devtools/controls@2x.png");
}
}
/* Indentation of child items in the tree */
/* For level > 6 */
.tree-widget-item[level] + ul > li > .tree-widget-item {
-moz-padding-start: 98px;
}
/* First level */
.tree-widget-item[level="1"] + ul > li > .tree-widget-item {
-moz-padding-start: 14px;
}
/* Second level */
.tree-widget-item[level="2"] + ul > li > .tree-widget-item {
-moz-padding-start: 28px;
}
/* Third level */
.tree-widget-item[level="3"] + ul > li > .tree-widget-item {
-moz-padding-start: 42px;
}
/* Fourth level */
.tree-widget-item[level="4"] + ul > li > .tree-widget-item {
-moz-padding-start: 56px;
}
/* Fifth level */
.tree-widget-item[level="5"] + ul > li > .tree-widget-item {
-moz-padding-start: 70px;
}
/* Sixth level */
.tree-widget-item[level="6"] + ul > li > .tree-widget-item {
-moz-padding-start: 84px;
}
/* Custom icons for certain tree items indicating the type of the item */
.tree-widget-item[type]:after {
content: "";
float: left;
width: 16px;
height: 17px;
-moz-margin-end: 4px;
background-repeat: no-repeat;
background-size: 20px auto;
filter: url('filters.svg#invert');
background-position: 0 0;
background-size: auto 20px;
}
.tree-widget-item:-moz-locale-dir(rtl):after {
float: right;
}
.theme-dark .tree-widget-item[type]:after {
filter: url('filters.svg#invert-white');
}
.tree-widget-item[type="dir"]:after {
background-image: url(chrome://browser/skin/devtools/filetype-dir-close.svg);
background-position: 2px 0;
background-size: auto 16px;
width: 20px;
}
.tree-widget-item[type="dir"][expanded]:not([empty]):after {
background-image: url(chrome://browser/skin/devtools/filetype-dir-open.svg);
}
.tree-widget-item[type="url"]:after {
background-image: url(chrome://browser/skin/devtools/filetype-globe.svg);
background-size: auto 18px;
width: 18px;
}
%include ../../shared/devtools/app-manager/manifest-editor.inc.css