123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- /* 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/. */
- @import url(resource://devtools/client/themes/variables.css);
- @import url(resource://devtools/client/themes/common.css);
- @import url(toolbars.css);
- @import url(tooltips.css);
- body {
- margin: 0;
- }
- .theme-body {
- background: var(--theme-body-background);
- color: var(--theme-body-color);
- }
- .theme-sidebar {
- background: var(--theme-sidebar-background);
- color: var(--theme-content-color1);
- }
- ::-moz-selection {
- background-color: var(--theme-selection-background);
- color: var(--theme-selection-color);
- }
- .theme-bg-darker {
- background-color: var(--theme-selection-background-semitransparent);
- }
- .theme-selected,
- .CodeMirror-hint-active {
- background-color: var(--theme-selection-background);
- color: var(--theme-selection-color);
- }
- .theme-bg-contrast,
- .variable-or-property:not([overridden])[changed] {
- background: var(--theme-contrast-background);
- }
- .theme-link,
- .cm-s-mozilla .cm-link,
- .cm-s-mozilla .cm-keyword {
- color: var(--theme-highlight-green);
- }
- /*
- * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion
- * failures in debug builds.
- */
- .theme-link:visited,
- .cm-s-mozilla .cm-link:visited,
- .CodeMirror-Tern-type {
- color: var(--theme-highlight-blue);
- }
- .theme-comment,
- .cm-s-mozilla .cm-meta,
- .cm-s-mozilla .cm-hr,
- .cm-s-mozilla .cm-comment,
- .variable-or-property .token-undefined,
- .variable-or-property .token-null,
- .CodeMirror-Tern-completion-unknown:before {
- color: var(--theme-comment);
- }
- .theme-gutter {
- background-color: var(--theme-tab-toolbar-background);
- color: var(--theme-content-color3);
- border-color: var(--theme-splitter-color);
- }
- .theme-separator {
- border-color: var(--theme-splitter-color);
- }
- .theme-fg-color1,
- .cm-s-mozilla .cm-number,
- .variable-or-property .token-number,
- .variable-or-property[return] > .title > .name,
- .variable-or-property[scope] > .title > .name {
- color: var(--theme-highlight-red);
- }
- .CodeMirror-Tern-completion-number:before {
- background-color: #5c9966;
- }
- .theme-fg-color2,
- .cm-s-mozilla .cm-attribute,
- .cm-s-mozilla .cm-def,
- .cm-s-mozilla .cm-property,
- .cm-s-mozilla .cm-qualifier,
- .variables-view-variable > .title > .name {
- color: var(--theme-highlight-purple);
- }
- .CodeMirror-Tern-completion-object:before {
- background-color: #3689b2;
- }
- .cm-s-mozilla .cm-unused-line {
- text-decoration: line-through;
- text-decoration-color: #0072ab;
- }
- .cm-s-mozilla .cm-executed-line {
- background-color: #133c26;
- }
- .theme-fg-color3,
- .cm-s-mozilla .cm-builtin,
- .cm-s-mozilla .cm-tag,
- .cm-s-mozilla .cm-header,
- .cm-s-mozilla .cm-bracket,
- .variables-view-property > .title > .name {
- color: var(--theme-highlight-green);
- }
- .CodeMirror-Tern-completion-array:before {
- background-color: var(--theme-highlight-bluegrey);
- }
- .theme-fg-color4 {
- color: var(--theme-highlight-purple);
- }
- .theme-fg-color5 {
- color: var(--theme-highlight-purple);
- }
- .theme-fg-color6,
- .cm-s-mozilla .cm-string,
- .cm-s-mozilla .cm-string-2,
- .variable-or-property .token-string,
- .cm-s-mozilla .cm-variable,
- .CodeMirror-Tern-farg {
- color: var(--theme-highlight-gray);
- }
- .CodeMirror-Tern-completion-string:before,
- .CodeMirror-Tern-completion-fn:before {
- background-color: #b26b47;
- }
- .theme-fg-color7,
- .cm-s-mozilla .cm-atom,
- .cm-s-mozilla .cm-quote,
- .cm-s-mozilla .cm-error,
- .variable-or-property .token-boolean,
- .variable-or-property .token-domnode,
- .variable-or-property[exception] > .title > .name {
- color: var(--theme-highlight-red);
- }
- .CodeMirror-Tern-completion-bool:before {
- background-color: #bf5656;
- }
- .variable-or-property .token-domnode {
- font-weight: bold;
- }
- .theme-toolbar,
- .devtools-toolbar,
- .devtools-sidebar-tabs tabs,
- .devtools-sidebar-alltabs,
- .cm-s-mozilla .CodeMirror-dialog { /* General toolbar styling */
- color: var(--theme-body-color-alt);
- background-color: var(--theme-toolbar-background);
- border-color: var(--theme-splitter-color);
- }
- .theme-fg-contrast { /* To be used for text on theme-bg-contrast */
- color: black;
- }
- .ruleview-swatch,
- .computedview-colorswatch {
- box-shadow: 0 0 0 1px #818181;
- }
- /* CodeMirror specific styles.
- * Best effort to match the existing theme, some of the colors
- * are duplicated here to prevent weirdness in the main theme. */
- .CodeMirror.cm-s-mozilla { /* Inherit platform specific font sizing and styles */
- font-family: inherit;
- font-size: inherit;
- background: transparent;
- }
- .CodeMirror.cm-s-mozilla pre,
- .cm-s-mozilla .cm-variable-2,
- .cm-s-mozilla .cm-variable-3,
- .cm-s-mozilla .cm-operator,
- .cm-s-mozilla .cm-special {
- color: var(--theme-content-color1);
- }
- .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor {
- border-left: solid 1px #fff;
- }
- .cm-s-mozilla.CodeMirror-focused .CodeMirror-selected { /* selected text (focused) */
- background: rgb(185, 215, 253);
- }
- .cm-s-mozilla .CodeMirror-selected { /* selected text (unfocused) */
- background: rgb(176, 176, 176);
- }
- .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */
- background: rgba(185, 215, 253, .15);
- }
- div.cm-s-mozilla span.CodeMirror-matchingbracket { /* highlight brackets */
- outline: solid 1px rgba(255, 255, 255, .25);
- color: white;
- }
- /* Highlight for a line that contains an error. */
- div.CodeMirror div.error-line {
- background: rgba(255,0,0,0.2);
- }
- /* Generic highlighted text */
- div.CodeMirror span.marked-text {
- background: rgba(255,255,0,0.2);
- border: 1px dashed rgba(192,192,0,0.6);
- margin-inline-start: -1px;
- margin-inline-end: -1px;
- }
- /* Highlight for evaluating current statement. */
- div.CodeMirror span.eval-text {
- background-color: #556;
- }
- .cm-s-mozilla .CodeMirror-linenumber { /* line number text */
- color: var(--theme-content-color3);
- }
- .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */
- border-right-color: var(--theme-toolbar-background);
- background-color: var(--theme-sidebar-background);
- }
- .cm-s-markup-view pre {
- line-height: 1.4em;
- min-height: 1.4em;
- }
- /* XUL panel styling (see devtools/client/shared/widgets/tooltip/Tooltip.js) */
- .theme-tooltip-panel .panel-arrowcontent {
- padding: 5px;
- background: rgba(19, 28, 38, .9);
- border-radius: 5px;
- box-shadow: none;
- border: 3px solid #434850;
- }
- /* 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: url("chrome://devtools/skin/tooltip/arrow-vertical-dark.png");
- /* !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: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark.png");
- /* !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: url("chrome://devtools/skin/tooltip/arrow-vertical-dark@2x.png");
- }
- .theme-tooltip-panel .panel-arrow[side="left"],
- .theme-tooltip-panel .panel-arrow[side="right"] {
- list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark@2x.png");
- }
- }
- .theme-tooltip-panel .devtools-tooltip-simple-text {
- color: white;
- border-bottom: 1px solid #434850;
- }
- .theme-tooltip-panel .devtools-tooltip-simple-text:last-child {
- border-bottom: 0;
- }
- .devtools-textinput,
- .devtools-searchinput,
- .devtools-filterinput {
- background-color: rgba(24, 29, 32, 1);
- color: rgba(184, 200, 217, 1);
- }
- .CodeMirror-Tern-fname {
- color: #f7f7f7;
- }
- .CodeMirror-hints,
- .CodeMirror-Tern-tooltip {
- box-shadow: 0 0 4px rgba(255, 255, 255, .3);
- background-color: #0f171f;
- color: var(--theme-body-color);
- }
|