gecko-dev/browser/themes/linux/devtools/debugger.css

555 lines
10 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/. */
/* Sources and breakpoints pane */
#sources-pane {
min-width: 50px;
}
#sources-pane > tabs {
-moz-border-end: 1px solid #222426; /* Match the sources list's dark margin. */
}
#sources-and-editor-splitter {
border-color: transparent;
}
/* Sources toolbar */
#sources-toolbar {
border: none; /* Remove the devtools-toolbar's black bottom border. */
-moz-border-end: 1px solid #222426; /* Match the sources list's dark margin. */
}
#sources-toolbar > .devtools-toolbarbutton,
#sources-controls > .devtools-toolbarbutton {
min-width: 32px;
}
#black-box {
list-style-image: url(debugger-blackbox.png);
}
#pretty-print {
font-weight: bold;
}
#toggle-breakpoints {
list-style-image: url(debugger-toggleBreakpoints.png);
}
#sources-toolbar .devtools-toolbarbutton:not([label]) {
-moz-image-region: rect(0px,16px,16px,0px);
}
#sources-toolbar .devtools-toolbarbutton:not([label])[checked] {
-moz-image-region: rect(0px,32px,16px,16px);
}
#sources .black-boxed {
color: #888;
}
#sources .black-boxed > .dbg-breakpoint {
display: none;
}
#sources .black-boxed + .side-menu-widget-item-arrow:-moz-locale-dir(ltr) {
background-image: none;
box-shadow: inset -1px 0 0 #222426;
}
#sources .black-boxed + .side-menu-widget-item-arrow:-moz-locale-dir(rtl) {
background-image: none;
box-shadow: inset 1px 0 0 #222426;
}
/* Black box message and source progress meter */
#black-boxed-message,
#source-progress-container {
background: url(background-noise-toolbar.png) rgb(61,69,76);
/* Prevent the container deck from aquiring the height from this message. */
min-height: 1px;
color: white;
}
#source-progress {
min-height: 2em;
min-width: 40em;
}
#black-boxed-message-label,
#black-boxed-message-button {
text-align: center;
font-size: 120%;
}
#black-boxed-message-button {
margin-top: 1em;
padding: .25em;
}
/* ListWidget items */
.list-widget-item {
padding: 2px;
}
.theme-light .list-widget-item:not(.selected):not(.empty):hover {
background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.85)), Highlight;
}
.theme-light .list-widget-item.selected.light {
background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.8)), Highlight;
color: #000;
}
.theme-dark .list-widget-item:not(.selected):not(.empty):hover {
background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}
.theme-dark .list-widget-item.selected.light {
background: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}
.list-widget-item.selected {
background: Highlight;
color: HighlightText;
}
.list-widget-item.empty {
color: GrayText;
padding: 2px;
}
/* Breadcrumbs stack frames view */
.breadcrumbs-widget-item {
max-width: none;
}
.dbg-stackframe-details {
-moz-padding-start: 4px;
}
/* Classic stack frames view */
.dbg-classic-stackframe {
display: block;
padding: 4px;
}
.dbg-classic-stackframe-title {
font-weight: 600;
color: #046;
}
.dbg-classic-stackframe-details:-moz-locale-dir(ltr) {
float: right;
}
.dbg-classic-stackframe-details:-moz-locale-dir(rtl) {
float: left;
}
.dbg-classic-stackframe-details-url {
max-width: 90%;
text-align: end;
color: #666;
}
.dbg-classic-stackframe-details-sep {
color: #aaa;
}
.dbg-classic-stackframe-details-line {
color: #58b;
}
#callstack-list .side-menu-widget-item.selected label {
color: #fff;
}
/* Sources and breakpoints view */
.dbg-breakpoint {
-moz-margin-start: 4px;
}
.dbg-breakpoint-line {
font-weight: 600;
}
.dbg-breakpoint-text {
-moz-margin-start: 10px !important;
font-style: italic;
font-size: 90%;
}
.dbg-breakpoint-checkbox {
width: 16px;
height: 16px;
margin: 2px;
}
/* Variable bubble view */
.devtools-tooltip-simple-text.token-undefined,
.devtools-tooltip-simple-text.token-null {
text-align: center;
color: #666 !important; /* Override the theme's color. */
}
.devtools-tooltip-simple-text.token-boolean {
text-align: center;
color: #10c !important;
}
.devtools-tooltip-simple-text.token-number {
text-align: center;
color: #c00 !important;
}
.devtools-tooltip-simple-text.token-string {
text-align: start;
color: #282 !important;
}
.devtools-tooltip-simple-text.token-other {
text-align: center;
color: #333 !important;
}
/* Instruments pane (watch expressions, variables, event listeners...) */
#instruments-pane > tabs > tab {
min-height: 25px !important;
padding: 0 !important;
}
#instruments-pane .side-menu-widget-container,
#instruments-pane .side-menu-widget-empty-notice-container {
box-shadow: none !important;
}
/* Watch expressions view */
#expressions {
min-height: 10px;
max-height: 125px;
}
.dbg-expression {
height: 20px;
}
.dbg-expression-arrow {
width: 16px;
height: auto;
background: -moz-image-rect(url(commandline-icon.png), 0, 32, 16, 16);
}
.dbg-expression-input {
-moz-padding-start: 2px !important;
color: inherit;
}
/* Event listeners view */
.dbg-event-listener {
padding: 4px 8px;
}
.dbg-event-listener-type {
font-weight: 600;
}
.dbg-event-listener-separator {
color: #999;
}
.dbg-event-listener-targets {
color: #046;
}
.dbg-event-listener-location {
color: #666;
}
#event-listeners .side-menu-widget-item.selected {
background: none !important;
}
/* Searchbox and the search operations help panel */
#searchbox {
min-width: 220px;
-moz-margin-start: 1px;
}
#filter-label {
-moz-margin-start: 2px;
}
#searchbox-panel-operators {
margin-top: 5px;
margin-bottom: 8px;
-moz-margin-start: 2px;
}
.searchbox-panel-operator-button {
min-width: 26px;
margin-top: 0;
margin-bottom: 0;
-moz-margin-start: 2px;
-moz-margin-end: 6px;
text-align: center;
}
.searchbox-panel-operator-label {
padding-bottom: 2px;
}
/* Searchbox results panel */
.results-panel {
padding: 4px;
opacity: 0.9;
}
.results-panel-item {
background: #f4f4f4;
border: 1px solid #ddd;
border-top-color: #fff;
padding: 5px;
cursor: pointer;
}
.results-panel-item:first-of-type {
border-top-color: #ddd;
border-radius: 4px 4px 0 0;
}
.results-panel-item:last-of-type {
border-radius: 0 0 4px 4px;
}
.results-panel-item:only-of-type {
border-radius: 4px;
}
.results-panel-item:not(.selected):not(:hover) {
text-shadow: 0 1px #fff;
}
.results-panel-item-pre {
-moz-margin-end: 5px !important;
color: #444;
cursor: inherit;
}
.results-panel-item-name {
color: #111;
font-weight: 600;
cursor: inherit;
}
.results-panel-item-details {
color: #7f7f7f;
cursor: inherit;
}
/* Sources search view */
#globalsearch {
min-height: 10px;
box-shadow: inset 0 -4px 8px #eee;
background: url(background-noise-toolbar.png);
}
#globalsearch > vbox:not(:empty) {
min-height: 10px;
max-height: 125px;
}
#globalsearch + .devtools-horizontal-splitter {
border-color: #bfbfbf;
}
.dbg-source-results {
padding: 0;
background: none !important;
}
.dbg-results-header {
-moz-padding-start: 6px;
}
.dbg-results-header-location {
font-weight: 600;
}
.dbg-results-header-match-count {
-moz-padding-start: 6px;
color: GrayText;
}
.dbg-results-line-number {
background: #e2e2e2;
min-width: 40px;
-moz-border-end: 1px solid #b4c4d3;
-moz-padding-end: 4px;
padding-top: 2px;
text-align: end;
color: #8c8c8c;
}
.dbg-results-line-contents {
-moz-padding-start: 4px;
padding-top: 1px;
padding-bottom: 1px;
}
.dbg-results-line-contents-string {
padding: 1px;
}
.dbg-results-line-contents-string[match=true] {
background: rgba(255,255,0,0.5);
padding: 0;
border: 1px solid #aaa;
border-radius: 4px;
cursor: pointer;
}
.dbg-results-line-contents-string[match=true][focusing] {
transition: transform 0.3s ease-in-out;
}
.dbg-results-line-contents-string[match=true][focused] {
transition-duration: 0.1s;
transform: scale(1.75, 1.75);
}
/* Toolbar controls */
.devtools-sidebar-tabs > tabs > tab {
min-height: 25px !important;
padding: 0 !important;
}
#resumption-panel-desc {
width: 200px;
}
#resumption-order-panel {
-moz-margin-start: -8px;
}
#resume {
list-style-image: url("chrome://browser/skin/devtools/debugger-pause.png");
-moz-image-region: rect(0px,16px,16px,0px);
transition: background 0.15s ease-in-out;
}
#resume[checked] {
background: none;
list-style-image: url("chrome://browser/skin/devtools/debugger-play.png");
-moz-image-region: rect(0px,32px,16px,16px);
}
#resume ~ toolbarbutton {
transition: opacity 0.15s ease-in-out;
}
#resume:not([checked]) ~ toolbarbutton {
opacity: 0.5;
}
#step-over {
list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png");
}
#step-in {
list-style-image: url("chrome://browser/skin/devtools/debugger-step-in.png");
}
#step-out {
list-style-image: url("chrome://browser/skin/devtools/debugger-step-out.png");
}
#debugger-controls > toolbarbutton,
#sources-controls > toolbarbutton {
margin: 0;
box-shadow: none;
border-radius: 0;
border-width: 0;
-moz-border-end-width: 1px;
outline-offset: -3px;
}
#debugger-controls > toolbarbutton:last-of-type,
#sources-controls > toolbarbutton:last-of-type {
-moz-border-end-width: 0;
}
#debugger-controls,
#sources-controls {
box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset,
0 0 0 1px hsla(210,16%,76%,.15) inset,
0 1px 0 hsla(210,16%,76%,.15);
border: 1px solid hsla(210,8%,5%,.45);
border-radius: 3px;
margin: 0 3px;
}
#instruments-pane-toggle {
background: none;
box-shadow: none;
border: none;
list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
-moz-image-region: rect(0px,16px,16px,0px);
}
#instruments-pane-toggle[pane-collapsed] {
list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
}
#instruments-pane-toggle:active {
-moz-image-region: rect(0px,32px,16px,16px);
}
/* Horizontal vs. vertical layout */
#vertical-layout-panes-container {
min-height: 35vh;
max-height: 80vh;
}
#body[layout=vertical] #sources-pane > tabs {
-moz-border-end: none;
}
#body[layout=vertical] #instruments-pane {
margin: 0 !important;
/* To prevent all the margin hacks to hide the sidebar. */
}
#body[layout=vertical] .side-menu-widget-container,
#body[layout=vertical] .side-menu-widget-empty-notice-container {
box-shadow: none !important;
}
#body[layout=vertical] .side-menu-widget-item-arrow {
background-image: none !important;
}
#body[layout=vertical] .side-menu-widget-group,
#body[layout=vertical] .side-menu-widget-item {
-moz-margin-end: 0;
}