some devtools improvements
[themes.git] / LCARStrek / browser / devtools / netmonitor.css
index f52af8ad5df9675c3bfe684a56f92ed83bcea49f..f73ddf94d4c2a2c7cebbe66056d203c579c5d827 100644 (file)
@@ -7,20 +7,36 @@ window {
   padding: 0;
 }
 
-#body {
-  background-color: #000000;
-}
-
-/* Network requests table */
+/* === BEGIN netmonitor.inc.css === */
 
 #requests-menu-empty-notice {
-  background-color: #A09090;
-  border-radius: 8px;
+  margin: 0;
   padding: 12px;
-  font-size: 110%;
-  color: #000000;
+  font-size: 120%;
 }
 
+#notice-perf-message {
+  margin-top: 2px;
+}
+
+#requests-menu-perf-notice-button {
+  min-width: 30px;
+  min-height: 26px;
+  margin: 0;
+  list-style-image: url("profiler-stopwatch.svg");
+}
+
+#requests-menu-perf-notice-button .button-text {
+  display: none;
+}
+
+#requests-menu-reload-notice-button {
+  min-height: 26px;
+  margin: 0;
+}
+
+/* Network requests table */
+
 #requests-menu-toolbar {
 }
 
@@ -43,6 +59,10 @@ window {
   -moz-border-end: 1px solid #9C9CFF;
 }
 
+.requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
+.requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
+}
+
 .requests-menu-header-button,
 #requests-menu-status-button {
   background-color: transparent;
@@ -97,7 +117,7 @@ window {
 /* Network requests table: specific column dimensions */
 
 .requests-menu-status-and-method {
-  width: 8em;
+  width: 12em;
 }
 
 .requests-menu-status {
@@ -111,12 +131,57 @@ window {
   font-weight: 600;
 }
 
+.requests-menu-icon-and-file {
+  width: 20vw;
+  min-width: 4em;
+}
+
+.requests-menu-icon {
+  background: #FFCF00;
+  width: calc(1em + 4px);
+  height: calc(1em + 4px);
+  margin: -4px 0px;
+  -moz-margin-end: 4px;
+}
+
+.requests-menu-icon {
+  outline: 1px solid #A09090;
+}
+
 .requests-menu-file {
-  width: 16em;
+  text-align: start;
+}
+
+.requests-menu-security-and-domain {
+  width: 14vw;
+  min-width: 10em;
+}
+
+.requests-security-state-icon {
+  -moz-margin-end: 4px;
+  -moz-image-region:rect(0px, 16px, 16px, 0px);
+}
+
+.requests-security-state-icon:hover {
+  -moz-image-region: rect(0px, 32px, 16px, 16px);
+}
+
+.requests-security-state-icon:active {
+  -moz-image-region: rect(0px, 48px, 16px, 32px);
+}
+
+.security-state-insecure {
+  list-style-image: url("chrome://browser/skin/identity-icons-generic.png");
 }
 
-.requests-menu-domain {
-  width: 16em;
+.security-state-secure {
+  cursor: pointer;
+  list-style-image: url("chrome://browser/skin/identity-icons-https.png");
+}
+
+.security-state-broken {
+  cursor: pointer;
+  list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-active.png");
 }
 
 .requests-menu-type {
@@ -129,10 +194,16 @@ window {
   width: 8em;
 }
 
+.requests-menu-transferred {
+  text-align: center;
+  width: 8em;
+}
+
 /* Network requests table: status codes */
 
-.requests-menu-status {
+box.requests-menu-status {
   background-color: #A09090;
+  width: 10px;
   -moz-margin-start: 5px;
   -moz-margin-end: 5px;
   border-radius: 20px;
@@ -140,24 +211,45 @@ window {
   transition: background-color 0.5s ease-in-out;
 }
 
-.requests-menu-status[code^="1"] {
-  background-color: #9C9CFF;
+label.requests-menu-status-code {
+  -moz-margin-start: 3px !important;
+  width: 3em;
+  -moz-margin-end: -3em !important;
 }
 
-.requests-menu-status[code^="2"] {
-  background-color: #008484;
+box.requests-menu-status:not([code]) {
+  background-color: #A09090; /* dark grey */
 }
 
-.requests-menu-status[code^="3"] {
-  background-color: #FF9F00;
+box.requests-menu-status[code^="1"] {
+  background-color: #9C9CFF; /* light blue */
 }
 
-.requests-menu-status[code^="4"] {
-  background-color: #FF0000;
+box.requests-menu-status[code^="2"] {
+  background-color: #008484; /* green */
 }
 
-.requests-menu-status[code^="5"] {
-  background-color: #6000CF;
+/* 3xx are triangles */
+box.requests-menu-status[code^="3"] {
+  background-color: transparent;
+  width: 0;
+  height: 0;
+  border-left: 5px solid transparent;
+  border-right: 5px solid transparent;
+  border-bottom: 10px solid #FF9F00; /* light orange */
+  border-radius: 0;
+}
+
+/* 4xx and 5xx are squares - error codes */
+box.requests-menu-status[code^="4"] {
+  background-color: #FF0000; /* red */
+  border-radius: 0; /* squares */
+}
+
+box.requests-menu-status[code^="5"] {
+  background-color: #6000CF; /* pink? */
+  border-radius: 0;
+  transform: rotate(45deg);
 }
 
 /* Network requests table: waterfall header */
@@ -177,6 +269,7 @@ window {
 }
 
 .requests-menu-timings-division:not(:first-child) {
+  -moz-border-start: 1px dotted;
   -moz-margin-start: -100px !important; /* Don't affect layout. */
 }
 
@@ -188,14 +281,30 @@ window {
   transform-origin: right center;
 }
 
+.requests-menu-timings-division[division-scale=millisecond] {
+  -moz-border-start-color: var(--theme-body-color) !important;
+}
+
+.requests-menu-timings-division[division-scale=second] {
+  -moz-border-start-color: var(--theme-body-color) !important;
+  font-weight: 600;
+}
+
+.requests-menu-timings-division[division-scale=minute] {
+  -moz-border-start-color: var(--theme-body-color) !important;
+  font-weight: 600;
+}
+
 /* Network requests table: waterfall items */
 
 .requests-menu-subitem.requests-menu-waterfall {
-  -moz-padding-start: 4px;
+  -moz-padding-start: 0px;
   -moz-padding-end: 4px;
-  background-repeat: repeat-y; /* Background created on a <canvas> in js. */
-  margin-top: -1px; /* Compensate borders. */
-  margin-bottom: -1px;
+  /* Background created on a <canvas> in js. */
+  /* @see browser/devtools/netmonitor/netmonitor-view.js */
+  background-image: -moz-element(#waterfall-background);
+  background-repeat: repeat-y;
+  background-position: -1px center;
 }
 
 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
@@ -219,104 +328,65 @@ window {
 }
 
 .requests-menu-timings-total {
-  -moz-padding-start: 8px;
+  -moz-padding-start: 4px;
   font-size: 85%;
   font-weight: 600;
 }
 
-.requests-menu-timings-cap {
-  width: 4px;
-  height: 10px;
-  border: 1px solid #FFCF00;
-}
-
-.requests-menu-timings-cap.start {
-  -moz-border-end: none;
-}
-
-.requests-menu-timings-cap.end {
-  -moz-border-start: none;
-}
-
-.requests-menu-timings-cap.start:-moz-locale-dir(ltr) {
-  border-radius: 4px 0 0 4px;
-  transform-origin: right center;
-}
-
-.requests-menu-timings-cap.start:-moz-locale-dir(rtl) {
-  -moz-border-start: none;
-  border-radius: 0 4px 4px 0;
-  transform-origin: left center;
+.requests-menu-timings-box {
+  height: 9px;
 }
 
-.requests-menu-timings-cap.end:-moz-locale-dir(ltr) {
-  border-radius: 0 4px 4px 0;
-  transform-origin: left center;
+.requests-menu-timings-box.blocked {
+  background-color: #FF0000; /* red */
 }
 
-.requests-menu-timings-cap.end:-moz-locale-dir(rtl) {
-  border-radius: 4px 0 0 4px;
-  transform-origin: right center;
+.requests-menu-timings-box.dns {
+  background-color: #E7ADE7; /* pink */
 }
 
-.requests-menu-timings-box {
-  height: 10px;
-  border-top: 1px solid #FFCF00;
-  border-bottom: 1px solid #FFCF00;
+.requests-menu-timings-box.connect {
+  background-color: #FF9F00; /* orange */
 }
 
-.requests-menu-timings-box.blocked,
-.requests-menu-timings-cap.blocked {
-  background-color: #FF0000;
+.requests-menu-timings-box.send {
+  background-color: #FFCF00; /* light blue */
 }
 
-.requests-menu-timings-box.dns,
-.requests-menu-timings-cap.dns {
-  background-color: #6000CF;
+.requests-menu-timings-box.wait {
+  background-color: #9C9CFF; /* blue grey */
 }
 
-.requests-menu-timings-box.connect,
-.requests-menu-timings-cap.connect {
-  background-color: #FF9F00;
+.requests-menu-timings-box.receive {
+  background-color: #A09090; /* green */
 }
 
-.requests-menu-timings-box.send,
-.requests-menu-timings-cap.send {
-  background-color: #FFCF00;
-}
+/* SideMenuWidget */
 
-.requests-menu-timings-box.wait,
-.requests-menu-timings-cap.wait {
-  background-color: #9C9CFF;
+.side-menu-widget-item-contents {
+  padding: 0px;
 }
 
-.requests-menu-timings-box.receive,
-.requests-menu-timings-cap.receive {
-  background-color: #A09090;
+.side-menu-widget-container {
+  box-shadow: none !important;
 }
 
-/* SideMenuWidget */
-
-.side-menu-widget-item:nth-child(even) {
+.side-menu-widget-item:not(.selected)[odd] {
   background: rgba(255,159,0,0.1);
 }
 
-.side-menu-widget-item-contents {
-  padding: 0;
-}
-
 /* Network request details */
 
-#details-pane {
-  background-color: #000000;
-  max-width: 500px;
-}
-
 #details-pane-toggle {
   list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
   -moz-image-region: rect(0px,16px,16px,0px);
 }
 
+#details-pane-toggle > .toolbarbutton-icon {
+  width: 16px;
+  height: 16px;
+}
+
 #details-pane-toggle[pane-collapsed] {
   list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
 }
@@ -326,13 +396,30 @@ window {
   -moz-image-region: rect(0px,32px,16px,16px);
 }
 
+@media (min-resolution: 2dppx) {
+  #details-pane-toggle {
+    list-style-image: url("chrome://browser/skin/devtools/debugger-collapse@2x.png");
+    -moz-image-region: rect(0px,32px,32px,0px);
+  }
+
+  #details-pane-toggle[pane-collapsed] {
+    list-style-image: url("chrome://browser/skin/devtools/debugger-expand@2x.png");
+  }
+
+  #details-pane-toggle:active {
+    -moz-image-region: rect(0px,64px,32px,32px);
+  }
+}
+
 /* Network request details tabpanels */
 
 .tabpanel-content {
-  background-color: #000000;
-  color: #FF9F00;
+  background-color: var(--theme-toolbar-background);
+  color: var(--theme-body-color);
 }
 
+/* Summary tabpanel */
+
 .tabpanel-summary-container {
   padding: 1px;
 }
@@ -341,12 +428,10 @@ window {
   -moz-padding-start: 4px;
   -moz-padding-end: 3px;
   font-weight: 600;
-  color: #9C9CFF;
 }
 
 .tabpanel-summary-value {
   -moz-padding-start: 3px;
-  font-family: "Liberation Mono", Consolas, "Courier New", monospace;
 }
 
 /* Headers tabpanel */
@@ -360,13 +445,27 @@ window {
   padding-top: 2px;
 }
 
+#headers-summary-resend {
+  margin: 0 6px;
+/*  min-height: 20px;*/
+}
+
+#toggle-raw-headers {
+  margin-top: -10px;
+  -moz-margin-end: 6px;
+}
+
+.raw-response-textarea {
+  height: 50vh;
+}
+
 /* Response tabpanel */
 
 #response-content-info-header {
-  background-color: #A09090;
-  color: #000000;
   margin: 0;
-  padding: 5px 8px;
+  padding: 3px 8px;
+  background-color: var(--theme-highlight-red);
+  color: var(--theme-selection-color);
 }
 
 #response-content-image-box {
@@ -380,6 +479,17 @@ window {
   margin-bottom: 10px;
 }
 
+/* Preview tabpanel */
+
+#preview-tabpanel {
+  background: #fff;
+}
+
+#response-preview {
+  display: -moz-box;
+  -moz-box-flex: 1;
+}
+
 /* Timings tabpanel */
 
 #timings-tabpanel .tabpanel-summary-label {
@@ -389,17 +499,51 @@ window {
 #timings-tabpanel .requests-menu-timings-box {
   transition: transform 0.2s ease-out;
   min-width: 1px;
+  border: none;
 }
 
 #timings-tabpanel .requests-menu-timings-total {
   transition: transform 0.2s ease-out;
 }
 
+/* Security tabpanel */
+
+.security-info-section {
+  -moz-padding-start: 1em;
+}
+
+#security-tabpanel {
+  overflow: auto;
+}
+
+#security-error-message {
+  white-space: pre-wrap;
+}
+
+/* Custom request form */
+
+#custom-pane {
+  padding: 0.6em 0.5em;
+}
+
+.custom-header {
+  font-size: 1.1em;
+}
+
+.custom-section {
+  margin-top: 0.5em;
+}
+
+#custom-method-value {
+  width: 4.5em;
+}
+
 /* Footer */
 
 #requests-menu-footer {
   border-top: 1px solid #9C9CFF;
   padding-top: 3px;
+  background-color: var(--theme-toolbar-background);
 }
 
 .requests-menu-footer-button,
@@ -408,8 +552,8 @@ window {
   margin: 0;
   -moz-margin-end: 3px;
   border: none;
-  padding: 0px 1.5vw;
-/*  color: #fff;*/
+  padding: 0px 1vw;
+/*  color: var(--theme-body-color);*/
 }
 
 .requests-menu-footer-spacer {
@@ -436,6 +580,117 @@ window {
   font-weight: 600;
 }
 
+/* Performance analysis buttons */
+
+#requests-menu-network-summary-button {
+  list-style-image: url("profiler-stopwatch.svg");
+  -moz-padding-end: 0;
+  cursor: pointer;
+}
+
+#requests-menu-network-summary-label {
+  -moz-padding-start: 0;
+  cursor: pointer;
+}
+
+#requests-menu-network-summary-label:hover {
+  text-decoration: underline;
+}
+
+/* Performance analysis view */
+
+#network-statistics-toolbar {
+  /* Make the toolbar invisible, it only hold the back button */
+  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
+  background-color: #000000;
+}
+
+#network-statistics-back-button {
+  min-width: 4em;
+  min-height: 100vh;
+}
+
+#network-statistics-view-splitter {
+  cursor: default;
+  pointer-events: none;
+}
+
+#network-statistics-charts {
+  min-height: 1px;
+  background-color: var(--theme-toolbar-background);
+}
+
+#network-statistics-charts .pie-chart-container {
+  -moz-margin-start: 3vw;
+  -moz-margin-end: 1vw;
+}
+
+#network-statistics-charts .table-chart-container {
+  -moz-margin-start: 1vw;
+  -moz-margin-end: 3vw;
+}
+
+.chart-colored-blob[name=html] {
+  fill: var(--theme-highlight-bluegrey);
+  background: var(--theme-highlight-bluegrey);
+}
+
+.chart-colored-blob[name=css] {
+  fill: var(--theme-highlight-blue);
+  background: var(--theme-highlight-blue);
+}
+
+.chart-colored-blob[name=js] {
+  fill: var(--theme-highlight-lightorange);
+  background: var(--theme-highlight-lightorange);
+}
+
+.chart-colored-blob[name=xhr] {
+  fill: var(--theme-highlight-orange);
+  background: var(--theme-highlight-orange);
+}
+
+.chart-colored-blob[name=fonts] {
+  fill: var(--theme-highlight-darkpurple);
+  background: var(--theme-highlight-darkpurple);
+}
+
+.chart-colored-blob[name=images] {
+  fill: var(--theme-highlight-pink);
+  background: var(--theme-highlight-pink);
+}
+
+.chart-colored-blob[name=media] {
+  fill: var(--theme-highlight-green);
+  background: var(--theme-highlight-green);
+}
+
+.chart-colored-blob[name=flash] {
+  fill: var(--theme-highlight-red);
+  background: var(--theme-highlight-red);
+}
+
+.table-chart-row-label[name=cached] {
+  display: none;
+}
+
+.table-chart-row-label[name=count] {
+  width: 3em;
+  text-align: end;
+}
+
+.table-chart-row-label[name=label] {
+  width: 7em;
+}
+
+.table-chart-row-label[name=size] {
+  width: 7em;
+}
+
+.table-chart-row-label[name=time] {
+  width: 7em;
+}
+
 /* Responsive sidebar */
 @media (max-width: 700px) {
   #requests-menu-toolbar {
@@ -443,16 +698,10 @@ window {
   }
 
   .requests-menu-header-button {
-    min-height: 23px; /* Remaining 1px comes from border of the toolbar. */
-  }
-
-  .requests-menu-footer-button,
-  .requests-menu-footer-label {
-    padding: 0px 2vw;
+    min-height: 24px;
   }
 
   #details-pane {
-    max-width: none;
     margin: 0 !important;
     /* To prevent all the margin hacks to hide the sidebar. */
   }
@@ -461,8 +710,8 @@ window {
     width: 16vw;
   }
 
-  .requests-menu-file,
-  .requests-menu-domain {
+  .requests-menu-icon-and-file,
+  .requests-menu-security-and-domain {
     width: 30vw;
   }
 
@@ -479,18 +728,4 @@ window {
   }
 }
 
-@media (min-width: 701px) {
-  #network-table[type-overflows] .requests-menu-domain {
-    border-width: 0 !important;
-    box-shadow: none !important;
-    /* The "Type" header is not visible anymore, and thus the
-       right border and box-shadow of "Domain" column should be hidden. */
-  }
-
-  #network-table[domain-overflows] .requests-menu-file {
-    border-width: 0 !important;
-    box-shadow: none !important;
-    /* The "Domain" header is not visible anymore, and thus the
-       right border and box-shadow of "File" column should be hidden. */
-  }
-}
+/* === END netmonitor.inc.css === */