/* According to:
* https://bugzilla.mozilla.org/show_bug.cgi?id=715472#c17
*/
+:root {
+ --theme-body-background: #000000;
+ --theme-sidebar-background: #000000;
+ --theme-contrast-background: #402800;
+ --theme-contrast-border: #A09090;
+ --theme-contrast-background2: #795900;
+
+/* --theme-tab-toolbar-background: #.252c33; */
+ --theme-toolbar-background: #000000;
+ --theme-hover-background: #FFCF00;
+ --theme-hover-color: #000000;
+ --theme-active-background: #FFCF00;
+ --theme-active-color: #000000;
+ --theme-selection-background: #008484;
+ --theme-selection-color: #000000;
+ --theme-selection-background2: #004242;
+ --theme-selection-color2: #FF9F00;
+ --theme-selection-background-semitransparent: rgba(0, 132, 132, .5);
+ --theme-splitter-color: #9C9CFF;
+ --theme-comment: #A09090;
+
+ --theme-contrastsidebar-background: #A09090;
+ --theme-contrastsidebar-color: #000000;
+ --theme-contrastsidebar-bordercolor: #000000;
+
+ --theme-body-color: #FF9F00;
+ --theme-body-color-alt: #A09090;
+ --theme-content-color1: #FF9F00;
+ --theme-content-color2: #A09090;
+ --theme-content-color3: #FF9F00;
+ --theme-content-disabled: #8050B0;
+
+ --theme-text-blue: #3333FF;
+ --theme-highlight-green: #008484;
+ --theme-highlight-blue: #9C9CFF;
+ --theme-highlight-bluegrey: #A09090;
+ --theme-highlight-purple: #C09070;
+ --theme-highlight-darkpurple: #6000CF;
+ --theme-highlight-lightorange: #FFCF00;
+ --theme-highlight-orange: #FF9F00;
+ --theme-highlight-red: #FF0000;
+ --theme-highlight-pink: #E7ADE7;
+}
+
.theme-body {
- background: #000000;
- color: #FF9F00;
+ background: var(--theme-body-background);
+ color: var(--theme-body-color);
}
.theme-sidebar {
- background: #000000;
- color: #FF9F00;
+ background: var(--theme-sidebar-background);
+ color: var(--theme-content-color1);
}
::-moz-selection {
- background-color: #008484;
- color: #FFCF00;
+ background-color: var(--theme-selection-background);
+ color: var(--theme-selection-color);
}
.theme-bg-darker {
- background-color: rgba(0,0,0,0.5);
+ background: var(--theme-selection-background-semitransparent);
}
.theme-selected,
.CodeMirror-hint-active {
- background: #004242;
- color: #FF9F00; /* Light foreground text */
+ background-color: var(--theme-selection-background2);
+ color: var(--theme-selection-color2);
}
.theme-bg-contrast,
-.variable-or-property:not([overridden])[changed] { /* contrast bg color to attract attention on a container */
- background: #402800; /* Background - Attention */
+.variable-or-property:not([overridden])[changed] {
+ background: var(--theme-contrast-background);
}
.theme-link,
.cm-s-mozilla .cm-link { /* original: blue */
- color: #3333FF;
+ color: var(--theme-text-blue);
}
/*
*/
.theme-link:visited,
.cm-s-mozilla .cm-link:visited,
-.CodeMirror-Tern-type { /* original: blue */
- color: #3333FF;
+.CodeMirror-Tern-type {
+ color: var(--theme-text-blue);
}
.theme-comment,
.cm-s-mozilla .cm-hr,
.cm-s-mozilla .cm-comment,
.variable-or-property .token-undefined,
-.variable-or-property .token-null { /* original: grey */
- color: #A09090;
-}
-
+.variable-or-property .token-null,
.CodeMirror-Tern-completion-unknown:before {
- background-color: #A09090;
+ color: var(--theme-comment);
}
.theme-gutter {
background-color: #000000;
- color: #FF9F00;
+ color: var(--theme-content-color3);
border-color: #9C9CFF;
}
.cm-s-mozilla .cm-number,
.variable-or-property .token-number,
.variable-or-property[return] > .title > .name,
-.variable-or-property[scope] > .title > .name { /* original: green */
- color: #008484;
+.variable-or-property[scope] > .title > .name {
+ color: var(--theme-highlight-green);
}
.CodeMirror-Tern-completion-number:before {
.cm-s-mozilla .cm-def,
.cm-s-mozilla .cm-property,
.cm-s-mozilla .cm-qualifier,
-.variables-view-variable > .title > .name { /* original: blue */
- color: #9C9CFF;
+.variables-view-variable > .title > .name {
+ color: var(--theme-highlight-blue);
}
.CodeMirror-Tern-completion-object:before {
.cm-s-mozilla .cm-unused-line {
text-decoration: line-through;
- -moz-text-decoration-color: #8050B0;
+ text-decoration-color: #8050B0;
}
.cm-s-mozilla .cm-executed-line {
.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,
-.variable-or-property[safe-getter] > .title > .name { /* original: pink/lavender */
- color: #E7ADE7;
+.variable-or-property[safe-getter] > .title > .name {
+ color: var(--theme-highlight-pink);
}
.CodeMirror-Tern-completion-array:before {
- background-color: #E7ADE7;
+ color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */
}
-.theme-fg-color4 { /* original: purple/violet */
- color: #C09070;
+.theme-fg-color4 {
+ color: var(--theme-highlight-purple);
}
.theme-fg-color5,
-.cm-s-mozilla .cm-bracket,
-.cm-s-mozilla .cm-keyword { /* original: Yellow */
- color: #FFCF00;
+.cm-s-mozilla .cm-keyword {
+ color: var(--theme-highlight-lightorange);
}
.theme-fg-color6,
.cm-s-mozilla .cm-string,
.cm-s-mozilla .cm-string-2,
.variable-or-property .token-string,
-.CodeMirror-Tern-farg { /* original: Orange */
- color: #E7ADE7;
+.CodeMirror-Tern-farg {
+ color: var(--theme-highlight-pink); /* -orange? */
}
.CodeMirror-Tern-completion-string:before,
.cm-s-mozilla .cm-error,
.variable-or-property .token-boolean,
.variable-or-property .token-domnode,
-.variable-or-property[exception] > .title > .name { /* original: Red */
- color: #FF0000;
+.variable-or-property[exception] > .title > .name {
+ color: var(--theme-highlight-red);
}
.CodeMirror-Tern-completion-bool:before {
.devtools-toolbar,
.devtools-sidebar-tabs > tabs,
.CodeMirror-dialog { /* General toolbar styling */
+/* color: var(--theme-body-color-alt);
+ background-color: var(--theme-toolbar-background);*/
}
.cm-s-mozilla .cm-variable-2,
.cm-s-mozilla .cm-variable-3,
.cm-s-mozilla .cm-operator,
-.cm-s-mozilla .cm-special { /* theme-body color */
- color: #FF9F00;
+.cm-s-mozilla .cm-special {
+ color: var(--theme-content-color1);
}
.cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor {
}
.cm-s-mozilla .CodeMirror-linenumber { /* line number text */
- color: #A09090;
+ color: var(--theme-content-color2);
}
.cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */
- border-right-color: #A09090;
- background-color: #402800;
+ border-right-color: var(--theme-contrast-border);
+ background-color: var(--theme-contrast-background);
}
.cm-s-markup-view pre {
border-bottom: 0;
}
-.devtools-horizontal-splitter {
-}
-
-.devtools-side-splitter {
-}
-
.devtools-textinput,
.devtools-searchinput {
background-color: #000000;
.CodeMirror-hints,
.CodeMirror-Tern-tooltip {
background-color: #000000;
- color: #FF9F00;
+ color: var(--theme-body-color);
}
/* === BEGIN toolbars.inc.css === */
.devtools-toolbar checkbox {
/* LCARStrek checkbox colors don't work well against toolbar background */
- background-color: #000000;
+ background-color: var(--theme-toolbar-background);
padding: 2px;
}
.devtools-toolbar checkbox .checkbox-check {
.devtools-menulist:-moz-focusring,
.devtools-toolbarbutton:-moz-focusring {
- outline: 1px dotted #008484;
+ outline: 1px dotted var(--theme-selection-color);
}
.devtools-toolbarbutton[standalone] {
}
/* Button States */
-.devtools-toolbarbutton:hover,
-#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover,
-.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover {
+.devtools-toolbarbutton:not([disabled]):hover,
+#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover,
+.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover {
/* background: rgba(0, 0, 0, .3); / Splitters */
}
-.devtools-toolbarbutton:hover:active,
-#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover:active,
-.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover:active {
+.devtools-toolbarbutton:not([disabled]):hover:active,
+#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active,
+.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover:active {
/* background: rgba(0, 0, 0, .4); / Splitters */
}
.devtools-toolbarbutton[checked=true],
#toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
/* background: rgba(29, 79, 115, .7); / Select highlight blue /
- color: #f5f7fa;*/
+ color: var(--theme-selection-color); */
}
.devtools-menulist[open=true],
.devtools-toolbarbutton[checked=true]:hover,
#toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
/* background: rgba(29, 79, 115, .8); / Select highlight blue /
- color: #f5f7fa; */
+ color: var(--theme-selection-color); */
}
.devtools-toolbarbutton[checked=true]:hover {
.devtools-separator + .devtools-toolbarbutton {
}
+/* HTML buttons, similar to toolbar buttons, but work in HTML documents */
+
+.devtools-button {
+ border: 0 solid var(--theme-splitter-color);
+ background: var(--theme-toolbar-background);
+ margin: 0;
+ padding: 0;
+ min-width: 32px;
+ min-height: 18px;
+ /* The icon is absolutely positioned in the button using ::before */
+ position: relative;
+}
+
+.devtools-button[standalone] {
+ min-height: 32px;
+ border-width: 1px;
+}
+
+/* Button States */
+.devtools-button:not([disabled]):hover {
+ background: var(--theme-hover-background);
+ color: var(--theme-hover-color);
+}
+
+.devtools-button:not([disabled]):hover:active {
+ background: var(--theme-active-background);
+ color: var(--theme-active-color);
+}
+
+/* Menu type buttons and checked states */
+.devtools-button[checked] {
+ background: var(--theme-selection-background);
+ color: var(--theme-selection-color);
+}
+
+.devtools-button::before {
+ content: "";
+ display: block;
+ width: 16px;
+ height: 16px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ margin: -8px 0 0 -8px;
+ background-repeat: no-repeat;
+}
+
+@media (min-resolution: 2dppx) {
+ .devtools-button::before {
+ background-size: 32px;
+ }
+}
+
/* Text input */
.devtools-textinput,
}
.devtools-no-search-result {
- border-color: #FF0000 !important;
+ border-color: var(--theme-highlight-red) !important;
}
/* Close button */
.devtools-tab:hover,
.devtools-tab:hover:active {
- background-color: #FFCF00;
- color: #000000;
+ background-color: var(--theme-hover-background);
+ color: var(--theme-hover-color);
}
.devtools-tab[selected] {
- background-color: #008484;
- color: #000000;
+ background-color: var(--theme-selection-background);
+ color: var(--theme-selection-color);
}
.devtools-tab > spacer {
display: none;
}
+.devtools-horizontal-splitter {
+/* border-bottom: 1px solid var(--theme-splitter-color); */
+}
+
+.devtools-side-splitter {
+/* -moz-border-end: 1px solid var(--theme-splitter-color);
+ border-color: var(--theme-splitter-color); / Needed for responsive container at low width. */
+}
+
/* === END toolbars.inc.css === */