X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fwidgets.css;h=0b0a6e77271b17d8d870b9366a971749adfc5854;hb=ed88669caec874222dbeeb427afef95fbd787acb;hp=54f15596c568241477211d1401208e036763c837;hpb=45dc7657b767fde2dc6b5d3ec71379bf5f624007;p=themes.git diff --git a/LCARStrek/browser/devtools/widgets.css b/LCARStrek/browser/devtools/widgets.css index 54f15596..0b0a6e77 100644 --- a/LCARStrek/browser/devtools/widgets.css +++ b/LCARStrek/browser/devtools/widgets.css @@ -18,10 +18,38 @@ transition: margin 0.25s ease-in-out; } +/* Responsive container */ + +.devtools-responsive-container { + -moz-box-orient: horizontal; +} + +@media (max-width: 700px) { + .devtools-responsive-container { + -moz-box-orient: vertical; + } + + .devtools-responsive-container > .devtools-side-splitter { + border: 0; + margin: 0; + min-height: 3px; + height: 3px; + margin-bottom: -3px; + /* In some edge case the cursor is not changed to n-resize */ + cursor: n-resize; + } + + .devtools-responsive-container > .devtools-sidebar-tabs { + min-height: 35vh; + max-height: 75vh; + } +} + /* BreacrumbsWidget */ .breadcrumbs-widget-container { - -moz-margin-end: 3px; + -moz-margin-start: 2px; + -moz-margin-start: 2px; max-height: 25px; /* Set max-height for proper sizing on linux */ height: 25px; /* Set height to prevent starting small waiting for content */ /* A fake 1px-shadow is included in the border-images of the @@ -129,12 +157,12 @@ #breadcrumb-separator-before, #breadcrumb-separator-after:after { - background: #9C9CFF; /* Select Highlight Blue */ + background: #008484; /* Select Highlight Blue */ } #breadcrumb-separator-after, #breadcrumb-separator-before:after { - background: #9C9CFF; /* Toolbars */ + background: #000000; /* Toolbars */ } /* This chevron arrow cannot be replicated easily in CSS, so we are using @@ -154,7 +182,7 @@ width: 25px; height: 25px; transform: translateX(-18px) rotate(45deg); - -moz-box-sizing: border-box; + box-sizing: border-box; } .breadcrumbs-widget-item { @@ -164,6 +192,7 @@ margin: 0; padding: 0 8px 0 20px; border: none; + border-radius: 0; outline: none; color: #FF9F00; } @@ -185,15 +214,21 @@ } .breadcrumbs-widget-item:not([checked]) { - background: -moz-element(#breadcrumb-separator-normal) no-repeat center left; - } - + background-image: -moz-element(#breadcrumb-separator-normal); + background-repeat: no-repeat; + background-position: center left; +} + .breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item { - background: -moz-element(#breadcrumb-separator-after) no-repeat 0 0; + background-image: -moz-element(#breadcrumb-separator-after); + background-repeat: no-repeat; + background-position: 0 0; } .breadcrumbs-widget-item[checked] { - background: -moz-element(#breadcrumb-separator-before) no-repeat 0 0; + background-image: -moz-element(#breadcrumb-separator-before); + background-repeat: no-repeat; + background-position: 0 0; background-color: #008484; /* Select Highlight Blue */ } @@ -231,23 +266,43 @@ color: #FF9F00; /* Foreground (Text) - Light */ } -.theme-dark .breadcrumbs-widget-item-id { +.breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-id, +.breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-tag, +.breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-pseudo-classes, +.breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-classes { + color: #000000 !important; +} + +.breadcrumbs-widget-item { + color: #FFCF00; /* Foreground (Text) - Light */ +} + +.breadcrumbs-widget-item-id { color: #A09090; /* Foreground (Text) - Grey */ } +.breadcrumbs-widget-item-classes { + color: #FF9F00; /* Content (Text) - Light */ +} + .breadcrumbs-widget-item-pseudo-classes { color: #FFCF00; /* Light Orange */ } /* SimpleListWidget */ -.simple-list-widget-item:not(.selected):hover { - background: #FFCF00; - color: #FFCF00; +.simple-list-widget-container { + /* Hack: force hardware acceleration */ + transform: translateZ(1px); } .simple-list-widget-item.selected { - background: #008484; + background-color: #008484; /* Select Highlight Blue */ + color: #FFCF00; /* Light foreground text */ +} + +.simple-list-widget-item:not(.selected):hover { + background-color: #FFCF00; color: #FFCF00; } @@ -350,11 +405,11 @@ background-position: center left; } -.theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { +.side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { background-image: url("itemArrow-ltr.svg"); } -.theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { +.side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { background-image: url("itemArrow-rtl.svg"); } @@ -429,6 +484,12 @@ padding: 2px; } +.variables-view-scope:focus > .title, +.theme-dark .variable-or-property:focus > .title { + background-color: #008484; /* Selection colors */ + color: #FFCF00; +} + .variables-view-scope > .title { background-color: #A09090; color: #000000; @@ -450,10 +511,6 @@ color: inherit !important; } -.variable-or-property > .title > .value { - -moz-box-flex: 1; -} - .variable-or-property > .title > .arrow { -moz-margin-start: 3px; } @@ -517,7 +574,8 @@ } .variable-or-property-non-writable-icon { - background: url("chrome://browser/skin/identity-icons-https.png") no-repeat; + background: url("chrome://browser/skin/devtools/vview-lock.png") no-repeat; + background-size: cover; width: 16px; height: 16px; opacity: 0.5; @@ -525,14 +583,14 @@ @media (min-resolution: 2dppx) { .variable-or-property-non-writable-icon > .title:after { - background-image: url("chrome://browser/skin/identity-icons-https@2x.png"); - background-size: 32px; + background-image: url("chrome://browser/skin/devtools/vview-lock@2x.png"); } } .variable-or-property-frozen-label, .variable-or-property-sealed-label, .variable-or-property-non-extensible-label { + height: 16px; -moz-padding-end: 4px; } @@ -559,8 +617,29 @@ /* Actions first */ +.variables-view-open-inspector { + -moz-box-ordinal-group: 1; +} + +.variables-view-edit, +.variables-view-add-property { + -moz-box-ordinal-group: 2; +} + +.variable-or-property-frozen-label, +.variable-or-property-sealed-label, +.variable-or-property-non-extensible-label, +.variable-or-property-non-writable-icon { + -moz-box-ordinal-group: 3; +} + +.variables-view-delete { + -moz-box-ordinal-group: 4; +} + .variables-view-container[actions-first] .variables-view-delete, -.variables-view-container[actions-first] .variables-view-add-property { +.variables-view-container[actions-first] .variables-view-add-property, +.variables-view-container[actions-first] .variables-view-open-inspector { -moz-box-ordinal-group: 0; } @@ -596,36 +675,88 @@ /* Variables and properties editing */ .variables-view-delete { - list-style-image: url("chrome://browser/skin/devtools/vview-delete.png"); - -moz-image-region: rect(0, 16px, 16px, 0); + background: url("chrome://browser/skin/devtools/vview-delete.png"); + background-size: cover; + width: 16px; + height: 16px; +} + +@media (min-resolution: 2dppx) { + .variables-view-delete { + background-image: url("chrome://browser/skin/devtools/vview-delete@2x.png"); + } } .variables-view-delete:hover { - -moz-image-region: rect(0, 32px, 16px, 16px); + background-position: 32px; } .variables-view-delete:active { - -moz-image-region: rect(0, 48px, 16px, 32px); + background-position: 16px; +} + +.variable-or-property:focus > .title > .variables-view-delete { +/* background-position: 0px; */ } .variables-view-edit { - background: url("chrome://browser/skin/devtools/vview-edit.png") center no-repeat; - width: 20px; + background: url("chrome://browser/skin/devtools/vview-edit.png"); + background-size: cover; + width: 16px; height: 16px; cursor: pointer; } -.variables-view-throbber { - background: url("chrome://global/skin/icons/loading_16.png") center no-repeat; +@media (min-resolution: 2dppx) { + .variables-view-edit { + background-image: url("chrome://browser/skin/devtools/vview-edit@2x.png"); + } +} + +.variables-view-edit:hover { + background-position: 32px; +} + +.variables-view-edit:active { + background-position: 16px; +} + +.variable-or-property:focus > .title > .variables-view-edit { +/* background-position: 0px; */ +} + +.variables-view-open-inspector { + background: url("chrome://browser/skin/devtools/vview-open-inspector.png"); + background-size: cover; width: 16px; height: 16px; + cursor: pointer; } -.element-value-input { +.variables-view-open-inspector:hover { + background-position: 32px; +} + +.variables-view-open-inspector:active { + background-position: 16px; +} + +.variable-or-property:focus > .title > .variables-view-open-inspector { +/* background-position: 0px; */ +} + +/* Variables and properties input boxes */ + +.variable-or-property > .title > .separator + .element-value-input { -moz-margin-start: -2px !important; -moz-margin-end: 2px !important; } +.variable-or-property > .title > .separator[hidden=true] + .element-value-input { + -moz-margin-start: 4px !important; + -moz-margin-end: 2px !important; +} + .element-name-input { -moz-margin-start: -2px !important; -moz-margin-end: 2px !important; @@ -675,6 +806,118 @@ visibility: hidden; } +/* Charts */ + +.generic-chart-container { + /* Hack: force hardware acceleration */ + transform: translateZ(1px); +} + +.generic-chart-container { + color: #A09090; /* Light foreground text */ +} + +.chart-colored-blob { + fill: #9C9CFF; /* Light content text */ + background: #9C9CFF; +} + +/* Charts: Pie */ + +.pie-chart-slice { + stroke-width: 1px; + cursor: pointer; +} + +.pie-chart-slice { + stroke: #A09090; +} + +.pie-chart-slice[largest] { + stroke-width: 2px; + stroke: #9C9CFF; +} + +.pie-chart-label { + text-anchor: middle; + dominant-baseline: middle; + pointer-events: none; +} + +.pie-chart-label { + fill: #000; +} + +.pie-chart-container[slices="1"] > .pie-chart-slice { + stroke-width: 0px; +} + +.pie-chart-slice, +.pie-chart-label { + transition: all 0.1s ease-out; +} + +.pie-chart-slice:not(:hover):not([focused]), +.pie-chart-slice:not(:hover):not([focused]) + .pie-chart-label { + transform: none !important; +} + +/* Charts: Table */ + +.table-chart-title { + padding-bottom: 10px; + font-size: 120%; + font-weight: 600; +} + +.table-chart-row { + margin-top: 1px; + cursor: pointer; +} + +.table-chart-grid:hover > .table-chart-row { + transition: opacity 0.1s ease-in-out; +} + +.table-chart-grid:not(:hover) > .table-chart-row { + transition: opacity 0.2s ease-in-out; +} + +.generic-chart-container:hover > .table-chart-grid:hover > .table-chart-row:not(:hover), +.generic-chart-container:hover ~ .table-chart-container > .table-chart-grid > .table-chart-row:not([focused]) { + opacity: 0.4; +} + +.table-chart-row-box { + width: 8px; + height: 1.5em; + -moz-margin-end: 10px; +} + +.table-chart-row-label { + width: 8em; + -moz-padding-end: 6px; + cursor: inherit; +} + +.table-chart-totals { + margin-top: 8px; + padding-top: 6px; +} + +.table-chart-totals { + border-top: 1px solid #A09090; /* Grey foreground text */ +} + +.table-chart-summary-label { + font-weight: 600; + padding: 1px 0px; +} + +.table-chart-summary-label { + color: #A09090; /* Light foreground text */ +} + /* === BEGIN manifest-editor.inc.css === */ /* Manifest Editor overrides */ @@ -729,8 +972,11 @@ .manifest-editor .variables-view-delete, .manifest-editor .variables-view-delete:hover, .manifest-editor .variables-view-delete:active, +.manifest-editor .variable-or-property:focus .variables-view-delete, +.manifest-editor .variables-view-add-property, .manifest-editor .variables-view-add-property:hover, -.manifest-editor .variables-view-add-property:active { +.manifest-editor .variables-view-add-property:active, +.manifest-editor .variable-or-property:focus .variables-view-add-property { list-style-image: none; -moz-image-region: initial; }