From: Robert Kaiser Date: Sun, 12 May 2013 22:50:49 +0000 (+0200) Subject: adjust network panel styling for recent changes X-Git-Tag: EarlyBlue-2.18 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=bbbcbed76b6b2c716895d6e196794f26a2a69b07;p=themes.git adjust network panel styling for recent changes --- diff --git a/LCARStrek/browser/devtools/netmonitor.css b/LCARStrek/browser/devtools/netmonitor.css index 810cf2d2..2e6ad813 100644 --- a/LCARStrek/browser/devtools/netmonitor.css +++ b/LCARStrek/browser/devtools/netmonitor.css @@ -24,52 +24,86 @@ 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-status-and-method { - width: 8em; +.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-status { - background-color: #A09090; - width: 10px; - height: 10px; - -moz-margin-start: 4px; - -moz-margin-end: 2px; - border-radius: 20px; - border: 1px solid #000000; - transition: background-color 0.5s ease-in-out; +.requests-menu-header-button > .button-box, +#requests-menu-status-button > .button-box { + border-radius: 0; } -.requests-menu-status[code^="1"] { - background-color: #9C9CFF; +.requests-menu-header-button:hover { + background-color: #FFCF00; } -.requests-menu-status[code^="2"] { +.requests-menu-header-button:hover:active { + background-color: #FF9F00; +} + +.requests-menu-header-button:not(:active)[sorted] { background-color: #008484; } -.requests-menu-status[code^="3"] { - background-color: #FF9F00; +.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-status[code^="4"] { - background-color: #FF0000; +.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[code^="5"] { - background-color: #6000CF; +#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 { + width: 10px; + height: 10px; + margin: 0px 2px; } .requests-menu-method { @@ -95,24 +129,64 @@ window { width: 8em; } -.requests-menu-header.requests-menu-waterfall { +/* 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; +} + +.requests-menu-status[code^="1"] { + background-color: #9C9CFF; +} + +.requests-menu-status[code^="2"] { + background-color: #008484; +} + +.requests-menu-status[code^="3"] { + background-color: #FF9F00; +} + +.requests-menu-status[code^="4"] { + background-color: #FF0000; +} + +.requests-menu-status[code^="5"] { + background-color: #6000CF; +} + +/* Network requests table: waterfall header */ + +#requests-menu-waterfall-label { -moz-padding-start: 8px; -moz-padding-end: 8px; - text-align: center; } -/* Network request waterfall */ +.requests-menu-timings-division { + width: 100px; + padding-top: 1px; + -moz-padding-start: 4px; + -moz-border-start: 1px dotted #000000; + font-size: 90%; + text-align: left; + pointer-events: none; +} + +.requests-menu-timings-division:not(:first-child) { + -moz-margin-start: -100px !important; /* Don't affect layout. */ +} + +/* 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 { @@ -184,6 +258,10 @@ window { background: rgba(255,159,0,0.1); } +.side-menu-widget-item-contents { + padding: 0px 4px; +} + /* Network request details */ #details-pane { @@ -266,3 +344,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. */ + } +} diff --git a/LCARStrek/browser/devtools/toolbox.css b/LCARStrek/browser/devtools/toolbox.css index e5db567c..2fbf6a64 100644 --- a/LCARStrek/browser/devtools/toolbox.css +++ b/LCARStrek/browser/devtools/toolbox.css @@ -179,3 +179,47 @@ window { background-color: #008484; color: #000000; } + +.devtools-tab > spacer { + max-width: 0; + -moz-box-flex: 0; +} + +.devtools-tab > image { + -moz-margin-end: 0; + -moz-margin-start: 0; +} + +#toolbox-tab-options { + min-width: 20px; +} + +#toolbox-tab-options > image { + -moz-margin-end: 3px; +} + + +#options-panel { + /* background-image: url("chrome://browser/skin/newtab/noise.png"); */ +} + +.options-vertical-pane { + margin: 15px; + width: calc(50% - 30px); + min-width: 400px; + -moz-padding-start: 5px; +} + +.options-vertical-pane > label { + padding: 5px 0; + font-size: 1.4rem; +} + +.options-groupbox { + -moz-margin-start: 15px; + padding: 4px; +} + +.options-groupbox > * { + padding: 2px; +}