some devtools improvements
[themes.git] / LCARStrek / browser / devtools / dark-theme.css
index 7193fc78ef571ef56bfddafc3677febfa43095d5..dcd62750a2db03efc8c4365e2fefaf117dbe93e0 100644 (file)
   --theme-sidebar-background: #000000;
   --theme-contrast-background: #402800;
   --theme-contrast-border: #A09090;
   --theme-sidebar-background: #000000;
   --theme-contrast-background: #402800;
   --theme-contrast-border: #A09090;
+  --theme-contrast-background2: #795900;
 
 
-  --theme-tab-toolbar-background: #.252c33;
+/*  --theme-tab-toolbar-background: #.252c33; */
   --theme-toolbar-background: #000000;
   --theme-hover-background: #FFCF00;
   --theme-hover-color: #000000;
   --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: #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-splitter-color: #9C9CFF;
   --theme-comment: #A09090;
 
@@ -62,7 +66,7 @@
 }
 
 .theme-bg-darker {
 }
 
 .theme-bg-darker {
-  background-color: rgba(0,0,0,0.5);
+  background: var(--theme-selection-background-semitransparent);
 }
 
 .theme-selected,
 }
 
 .theme-selected,
@@ -400,15 +404,6 @@ div.CodeMirror span.eval-text {
  border-bottom: 0;
 }
 
  border-bottom: 0;
 }
 
-.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. */
-}
-
 .devtools-textinput,
 .devtools-searchinput {
   background-color: #000000;
 .devtools-textinput,
 .devtools-searchinput {
   background-color: #000000;
@@ -437,7 +432,7 @@ div.CodeMirror span.eval-text {
 
 .devtools-toolbar checkbox {
   /* LCARStrek checkbox colors don't work well against toolbar background */
 
 .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 {
   padding: 2px;
 }
 .devtools-toolbar checkbox .checkbox-check {
@@ -455,7 +450,7 @@ div.CodeMirror span.eval-text {
 
 .devtools-menulist:-moz-focusring,
 .devtools-toolbarbutton:-moz-focusring {
 
 .devtools-menulist:-moz-focusring,
 .devtools-toolbarbutton:-moz-focusring {
-  outline: 1px dotted #008484;
+  outline: 1px dotted var(--theme-selection-color);
 }
 
 .devtools-toolbarbutton[standalone] {
 }
 
 .devtools-toolbarbutton[standalone] {
@@ -488,6 +483,7 @@ div.CodeMirror span.eval-text {
 }
 
 .devtools-toolbar .devtools-toolbarbutton {
 }
 
 .devtools-toolbar .devtools-toolbarbutton {
+  -moz-margin-start: 2px;
 }
 
 .devtools-toolbarbutton > .toolbarbutton-icon {
 }
 
 .devtools-toolbarbutton > .toolbarbutton-icon {
@@ -521,15 +517,15 @@ div.CodeMirror span.eval-text {
 }
 
 /* Button States */
 }
 
 /* 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 */
 }
 
 /*  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 */
 }
 
 /*  background: rgba(0, 0, 0, .4); / Splitters */
 }
 
@@ -537,7 +533,7 @@ div.CodeMirror span.eval-text {
 .devtools-toolbarbutton[checked=true],
 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
 /*  background: rgba(29, 79, 115, .7); / Select highlight blue /
 .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-menulist[open=true],
@@ -548,7 +544,7 @@ div.CodeMirror span.eval-text {
 .devtools-toolbarbutton[checked=true]:hover,
 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
 /*  background: rgba(29, 79, 115, .8); / Select highlight blue /
 .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-toolbarbutton[checked=true]:hover {
@@ -578,6 +574,59 @@ div.CodeMirror span.eval-text {
 .devtools-separator + .devtools-toolbarbutton {
 }
 
 .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,
 /* Text input */
 
 .devtools-textinput,
@@ -620,7 +669,7 @@ div.CodeMirror span.eval-text {
 }
 
 .devtools-no-search-result {
 }
 
 .devtools-no-search-result {
-  border-color: #FF0000 !important;
+  border-color: var(--theme-highlight-red) !important;
 }
 
 /* Close button */
 }
 
 /* Close button */
@@ -906,13 +955,13 @@ div.CodeMirror span.eval-text {
 
 .devtools-tab:hover,
 .devtools-tab:hover:active {
 
 .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] {
 }
 
 .devtools-tab[selected] {
-  background-color: #008484;
-  color: #000000;
+  background-color: var(--theme-selection-background);
+  color: var(--theme-selection-color);
 }
 
 .devtools-tab > spacer {
 }
 
 .devtools-tab > spacer {
@@ -973,4 +1022,13 @@ div.CodeMirror span.eval-text {
   display: none;
 }
 
   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 === */
 /* === END toolbars.inc.css === */