X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fnetmonitor.css;h=9a8bbf133429773ba4e257e3ac43e08ab9eceaa6;hp=810cf2d2d0e7b0da86cba709452bf1295a3a8609;hb=c4460289dd1725d56322647e95f117e93f1e8941;hpb=05e71693d17f86b92ca00526ff75d20bc0cb5004;ds=sidebyside diff --git a/LCARStrek/browser/devtools/netmonitor.css b/LCARStrek/browser/devtools/netmonitor.css index 810cf2d2..9a8bbf13 100644 --- a/LCARStrek/browser/devtools/netmonitor.css +++ b/LCARStrek/browser/devtools/netmonitor.css @@ -24,29 +24,115 @@ window { #requests-menu-toolbar { } +#requests-menu-toolbar > .toolbar-box > .toolbar-startcap, +#requests-menu-toolbar > .toolbar-box > .toolbar-endcap { + display: none; +} + .requests-menu-header { text-align: center; } +.requests-menu-header:first-child { + -moz-padding-start: 4px; + -moz-margin-start: 4px; +} + .requests-menu-subitem { - padding: 0 4px; + padding: 4px; } -.requests-menu-header:not(:last-of-type), +.requests-menu-header:not(:last-child), .requests-menu-subitem:not(:last-child) { -moz-border-end: 1px solid #9C9CFF; } +.requests-menu-header-button, +#requests-menu-status-button { + background-color: transparent; + border-radius: 0; + min-width: 10px; + margin: 0; + transition: background-color 0.1s ease-in-out; +} + +.requests-menu-header-button > .button-box, +#requests-menu-status-button > .button-box { + border-radius: 0; +} + +.requests-menu-header-button:hover { + background-color: #FFCF00; +} + +.requests-menu-header-button:hover:active { + background-color: #FF9F00; +} + +.requests-menu-header-button:not(:active)[sorted] { + background-color: #008484; +} + +.requests-menu-header-button:not(:active)[sorted=ascending] { + background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3)); + background-size: 100% 1px; + background-repeat: no-repeat; +} + +.requests-menu-header-button:not(:active)[sorted=descending] { + background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3)); + background-size: 100% 1px; + background-repeat: no-repeat; + background-position: bottom; +} + +#requests-menu-status-button { + border: none; +} + +#requests-menu-status-button > .button-box { + padding: 0; +} + +/* Network requests table: specific column dimensions */ + .requests-menu-status-and-method { width: 8em; } .requests-menu-status { - background-color: #A09090; width: 10px; height: 10px; - -moz-margin-start: 4px; - -moz-margin-end: 2px; + margin: 0px 2px; +} + +.requests-menu-method { + text-align: center; + font-weight: 600; +} + +.requests-menu-file { + width: 16em; +} + +.requests-menu-domain { + width: 16em; +} + +.requests-menu-type { + text-align: center; + width: 4em; +} + +.requests-menu-size { + text-align: center; + width: 8em; +} + +/* Network requests table: status codes */ + +.requests-menu-status { + background-color: #A09090; border-radius: 20px; border: 1px solid #000000; transition: background-color 0.5s ease-in-out; @@ -72,58 +158,68 @@ window { background-color: #6000CF; } -.requests-menu-method { - text-align: center; - font-weight: 600; -} +/* Network requests table: waterfall header */ -.requests-menu-file { - width: 16em; +#requests-menu-waterfall-label { + -moz-padding-start: 8px; + -moz-padding-end: 8px; } -.requests-menu-domain { - width: 16em; +.requests-menu-timings-division { + width: 100px; + padding-top: 1px; + -moz-padding-start: 4px; + -moz-border-start: 1px dotted #000000; + font-size: 90%; + pointer-events: none; } -.requests-menu-type { - text-align: center; - width: 4em; +.requests-menu-timings-division:not(:first-child) { + -moz-margin-start: -100px !important; /* Don't affect layout. */ } -.requests-menu-size { - text-align: center; - width: 8em; +.requests-menu-timings-division:-moz-locale-dir(ltr) { + transform-origin: left center; } -.requests-menu-header.requests-menu-waterfall { - -moz-padding-start: 8px; - -moz-padding-end: 8px; - text-align: center; +.requests-menu-timings-division:-moz-locale-dir(rtl) { + transform-origin: right center; } -/* Network request waterfall */ +/* Network requests table: waterfall items */ .requests-menu-subitem.requests-menu-waterfall { -moz-padding-start: 4px; -moz-padding-end: 4px; - background-size: 5px; - background-image: - -moz-linear-gradient(left, - transparent 25%, - rgba(156,156,255,0.1) 25%, - rgba(156,156,255,0.1) 75%, - transparent 75%); + background-repeat: repeat-y; /* Background created on a in js. */ + margin-top: -1px; /* Compensate borders. */ + margin-bottom: -1px; } -.requests-menu-timings { +.requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) { + background-position: right center; +} + +.requests-menu-timings:-moz-locale-dir(ltr) { + transform-origin: left center; +} + +.requests-menu-timings:-moz-locale-dir(rtl) { + transform-origin: right center; +} + +.requests-menu-timings-total:-moz-locale-dir(ltr) { transform-origin: left center; } +.requests-menu-timings-total:-moz-locale-dir(rtl) { + transform-origin: right center; +} + .requests-menu-timings-total { -moz-padding-start: 8px; font-size: 85%; font-weight: 600; - transform-origin: left center; } .requests-menu-timings-cap { @@ -134,16 +230,33 @@ window { .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.end { +.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-cap.end:-moz-locale-dir(ltr) { + border-radius: 0 4px 4px 0; + transform-origin: left center; +} + +.requests-menu-timings-cap.end:-moz-locale-dir(rtl) { + border-radius: 4px 0 0 4px; + transform-origin: right center; +} + .requests-menu-timings-box { height: 10px; border-top: 1px solid #FFCF00; @@ -184,6 +297,10 @@ window { background: rgba(255,159,0,0.1); } +.side-menu-widget-item-contents { + padding: 0px 4px; +} + /* Network request details */ #details-pane { @@ -266,3 +383,58 @@ window { #timings-tabpanel .requests-menu-timings-total { transition: transform 0.2s ease-out; } + +/* Responsive sidebar */ +@media (max-width: 700px) { + #requests-menu-toolbar { + height: 24px; + } + + .requests-menu-header-button { + min-height: 23px; /* Remaining 1px comes from border of the button. */ + } + + #details-pane { + max-width: none; + margin: 0 !important; + /* To prevent all the margin hacks to hide the sidebar. */ + } + + .requests-menu-status-and-method { + width: 14vw; + } + + .requests-menu-file, + .requests-menu-domain { + width: 30vw; + min-width: 10em; + } + + .requests-menu-type { + width: 8vw; + } + + .requests-menu-size { + width: 16vw; + border-width: 0 !important; + box-shadow: none !important; + /* The "Timeline" header is not visible anymore, and thus the + right border and box-shadow of "Size" column should be hidden. */ + } +} + +@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. */ + } +}