X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fwidgets.css;h=b62f533f741bdb3eb3443af87345e3bbaba971f5;hp=199e106b39eb985c4b7395acf6266527c7f90427;hb=373d8c697472f21b0bee41ef00f5d90ae26bd54d;hpb=c4460289dd1725d56322647e95f117e93f1e8941 diff --git a/LCARStrek/browser/devtools/widgets.css b/LCARStrek/browser/devtools/widgets.css index 199e106b..b62f533f 100644 --- a/LCARStrek/browser/devtools/widgets.css +++ b/LCARStrek/browser/devtools/widgets.css @@ -6,7 +6,6 @@ /* Generic pane helpers */ .generic-toggled-side-pane { - min-width: 50px; -moz-margin-start: 0px !important; /* Unfortunately, transitions don't work properly with locale-aware properties, so both the left and right margins are set via js, while the start margin @@ -25,7 +24,7 @@ breadcrumbs-widget-items, to match toolbar-buttons style. This negative margin compensates the extra row of pixels created by the shadow.*/ - margin: -1px 0; +/* margin: -1px 0;*/ } /* Preloading hack, LTR */ @@ -300,35 +299,48 @@ /* SideMenuWidget */ .side-menu-widget-container { + /* Hack: force hardware acceleration */ + transform: translateZ(1px); + background-color: #000000; color: #FF9F00; } -.side-menu-widget-container[with-arrow=true]:-moz-locale-dir(ltr), -.side-menu-widget-group[with-arrow=true]:-moz-locale-dir(ltr), -.side-menu-widget-item[with-arrow=true]:-moz-locale-dir(ltr) { +/* SideMenuWidget container */ + +.side-menu-widget-container:-moz-locale-dir(ltr), +.side-menu-widget-empty-notice-container:-moz-locale-dir(ltr) { } -.side-menu-widget-container[with-arrow=true]:-moz-locale-dir(rtl), -.side-menu-widget-group[with-arrow=true]:-moz-locale-dir(rtl), -.side-menu-widget-item[with-arrow=true]:-moz-locale-dir(rtl) { +.side-menu-widget-container:-moz-locale-dir(rtl), +.side-menu-widget-empty-notice-container:-moz-locale-dir(rtl)[with-arrows=true]:-moz-locale-dir(rtl) { } +.side-menu-widget-group { + /* To allow visibility of the dark margin shadow. */ +/* -moz-margin-end: 1px; */ +} + +.side-menu-widget-container[with-arrows=true] .side-menu-widget-item { + /* To compensate for the arrow image's dark margin. */ +/* -moz-margin-end: -1px; */ +} + +/* SideMenuWidget groups */ + .side-menu-widget-group-title { - background-color: #A09090; padding: 4px; + + background-color: #A09090; color: #000000; - transition-property: background-color; - transition-duration: 0.3s; } -.side-menu-widget-group:hover > .side-menu-widget-group-title { - background-color: #FFCF00; -} +/* SideMenuWidget items */ .side-menu-widget-item { border-top: 1px solid #9C9CFF; - cursor: pointer; + margin-top: -1px; + margin-bottom: -1px; } .side-menu-widget-item:last-of-type { @@ -355,17 +367,19 @@ background-position: center left, top left; } -.side-menu-widget-item-arrow { - -moz-margin-start: -8px; - width: 8px; -} +/* SideMenuWidget items contents */ .side-menu-widget-item-contents { - padding: 4px; + padding: 2px; } -.side-menu-widget-item label { - cursor: inherit; +.side-menu-widget-item-label { + padding: 4px 0px; +} + +.side-menu-widget-item-arrow { + -moz-margin-start: -8px; + width: 8px; } .side-menu-widget-item-other { @@ -379,34 +393,42 @@ color: #000000; } -.side-menu-widget-item.selected .side-menu-widget-item-other:first-of-type { - border-top: 1px dotted #9C9CFF; - margin-top: 3px; +.side-menu-widget-item-other:first-of-type { +/* border-top-left-radius: 4px; */ } -.side-menu-widget-item-other:first-of-type { - margin-top: 4px; +.side-menu-widget-item-other:not(.selected) > label { + color: #9C9CFF; } -.side-menu-widget-item-other:last-of-type { - margin-bottom: -4px; +/* SideMenuWidget checkboxes */ + +.side-menu-widget-group-checkbox { + margin: 0; + -moz-margin-end: 4px; } -.side-menu-widget-item-other:not(.selected) > label { - color: #9C9CFF; +.side-menu-widget-item-checkbox { + margin: 0; + -moz-margin-start: 4px; + -moz-margin-end: -4px; } +/* SideMenuWidget misc */ + .side-menu-widget-empty-notice-container { - background-color: #000000; padding: 12px; - color: #A09090; + + background-color: #000000; font-weight: 600; + color: #A09090; } /* VariablesView */ -.variables-view-container { - background: #000000; +.variables-view-container:not([empty]) { + /* Hack: force hardware acceleration */ + transform: translateZ(1px); } .variables-view-empty-notice { @@ -419,120 +441,89 @@ color: #000000; } -.variables-view-scope:focus > .title { - background-color: #008484; - color: #000000; -} +/* Generic variables traits */ -.variables-view-scope > .variables-view-element-details:not(:empty) { - margin-top: 1px; - -moz-margin-start: 2px; - -moz-margin-end: 1px; +.variables-view-variable:not(:last-child) { + border-bottom: 1px solid #A09090; } -.variables-view-scope > .variables-view-element-details.enum:not(:empty) { - border-bottom: 1px solid #9C9CFF; +.variables-view-variable > .title > .name { + font-weight: 600; } -/* Generic traits applied to both variables and properties */ +/* Generic variables *and* properties traits */ -.variable-or-property { - transition: background 1s ease-in-out; - color: #FF9F00; -} - -.variable-or-property[changed] { - background: rgba(255, 207, 0, 0.3); - transition-duration: 0.4s; +.variable-or-property:focus > .title > label { + color: inherit !important; } .variable-or-property > .title > .value { - -moz-padding-start: 6px; - -moz-padding-end: 4px; + -moz-box-flex: 1; } -.variable-or-property:focus > .title { - background-color: #008484; - color: #000000; - border-radius: 5px; +.variable-or-property > .title > .arrow { + -moz-margin-start: 3px; } -.variable-or-property[editable] > .title > .value { - cursor: text; +.variable-or-property:not([untitled]) > .variables-view-element-details { + -moz-margin-start: 7px; } -.variable-or-property:not([non-header]) > .variables-view-element-details { - -moz-margin-start: 10px; -} +/* Traits applied when variables or properties are changed or overridden */ -/* Custom variables and properties traits */ - -.variables-view-variable { - -moz-margin-start: 1px; - -moz-margin-end: 1px; - border-bottom: 1px solid #A09090; +.variable-or-property:not([overridden]) { + transition: background 1s ease-in-out, color 1s ease-in-out; } -.variables-view-variable > .title > .name { - font-weight: 600; -} - -.variables-view-variable:not(:focus) > .title > .name { - color: #FF9F00; -} - -.variables-view-property:not(:focus) > .title > .name { - color: #E7ADE7; -} - -/* Token value colors */ - -.variable-or-property:not(:focus) > .title > .token-undefined { - color: #8050B0; +.variable-or-property:not([overridden])[changed] { + color: #000000; + transition-duration: .4s; } -.variable-or-property:not(:focus) > .title > .token-null { - color: #008484; +.variable-or-property[overridden] { + background: rgba(160,144,144,0.0.5); } -.variable-or-property:not(:focus) > .title > .token-boolean { - color: #FFCF00; +.variable-or-property[overridden] .title > label { + /* Cross out the title for this variable and all child properties. */ + font-style: italic; + text-decoration: line-through; + border-bottom: none !important; + color: #A09090; + opacity: 0.7; } -.variable-or-property:not(:focus) > .title > .token-number { - color: #E7ADE7; -} +/* Traits applied when variables or properties are editable */ -.variable-or-property:not(:focus) > .title > .token-string { - color: #9C9CFF; +.variable-or-property[editable] > .title > .value { + cursor: text; } -.variable-or-property:not(:focus) > .title > .token-other { - color: #FF9F00; +.variable-or-property[overridden] .title > .value { + /* Disallow editing this variable and all child properties. */ + pointer-events: none; } -/* Non enumerable, configurable and writable variables and properties */ +/* Custom configurable/enumerable/writable or frozen/sealed/extensible + * variables and properties */ -.variable-or-property[proto] > .title > .name, -.variable-or-property[non-enumerable]:not([self]):not([exception]) > .title > .name { - opacity: 0.5; +.variable-or-property[non-enumerable]:not([self]):not([pseudo-item]) > .title > .name { + opacity: 0.6; } -.variable-or-property[non-configurable] > .title > .name { +.variable-or-property[non-configurable]:not([pseudo-item]) > .title > .name { border-bottom: 1px dashed #9C9CFF; } -.variable-or-property[non-configurable][non-writable] > .title > .name { +.variable-or-property[non-writable]:not([pseudo-item]) > .title > .name { border-bottom: 1px dashed #FF0000; } -.variable-or-property[safe-getter] > .title > .name { +.variable-or-property[safe-getter]:not([pseudo-item]) > .title > .name { border-bottom: 1px dashed #A09090; } -.variable-or-property[non-writable] > .title:after { - content: " "; - display: inline-block; +.variable-or-property-non-writable-icon { background: url("chrome://browser/skin/identity-icons-https.png") no-repeat; width: 16px; height: 16px; @@ -540,14 +531,48 @@ } @media (min-resolution: 2dppx) { - .variable-or-property[non-writable] > .title:after { + .variable-or-property-non-writable-icon > .title:after { background-image: url("chrome://browser/skin/identity-icons-https@2x.png"); background-size: 32px; } } -.variable-or-property[exception]:not(:focus) > .title > .name { - color: #FF0000; +.variable-or-property-frozen-label, +.variable-or-property-sealed-label, +.variable-or-property-non-extensible-label { + -moz-padding-end: 4px; +} + +.variable-or-property:not(:focus) > .title > .variable-or-property-frozen-label, +.variable-or-property:not(:focus) > .title > .variable-or-property-sealed-label, +.variable-or-property:not(:focus) > .title > .variable-or-property-non-extensible-label { + color: #A09090; +} + +/* Aligned values */ + +.variables-view-container[aligned-values] .title > .separator { + -moz-box-flex: 1; +} + +.variables-view-container[aligned-values] .title > .value { + -moz-box-flex: 0; + width: 70vw; +} + +.variables-view-container[aligned-values] .title > .element-value-input { + width: calc(70vw - 10px); +} + +/* Actions first */ + +.variables-view-container[actions-first] .variables-view-delete, +.variables-view-container[actions-first] .variables-view-add-property { + -moz-box-ordinal-group: 0; +} + +.variables-view-container[actions-first] [invisible] { + visibility: hidden; } /* Variables and properties tooltips */ @@ -556,40 +581,42 @@ margin: 0 2px 0 2px; } -.variable-or-property[non-enumerable] > tooltip > label[value=enumerable], -.variable-or-property[non-configurable] > tooltip > label[value=configurable], -.variable-or-property[non-writable] > tooltip > label[value=writable] { +.variable-or-property[non-enumerable] > tooltip > label.enumerable, +.variable-or-property[non-configurable] > tooltip > label.configurable, +.variable-or-property[non-writable] > tooltip > label.writable +.variable-or-property[non-extensible] > tooltip > label.extensible { + color: #A09090; text-decoration: line-through; } -.variable-or-property:not([safe-getter]) > tooltip > label[value=native-getter] { - display: none; +.variable-or-property[overridden] > tooltip > label.overridden { + -moz-padding-start: 4px; + -moz-border-start: 1px dotted #9C9CFF; +} + +.variable-or-property[safe-getter] > tooltip > label.WebIDL { + -moz-padding-start: 4px; + -moz-border-start: 1px dotted #9C9CFF; + color: #008484; } /* Variables and properties editing */ .variables-view-delete { - list-style-image: url("chrome://global/skin/icons/close.png"); + list-style-image: url("chrome://browser/skin/devtools/vview-delete.png"); -moz-image-region: rect(0, 16px, 16px, 0); - opacity: 0; } .variables-view-delete:hover { - opacity: 1; -} - -*:hover > .title > .variables-view-delete:not(:hover), -*:focus > .title > .variables-view-delete:not(:hover) { - opacity: 0.5; - transition: opacity 0.2s ease-in-out; + -moz-image-region: rect(0, 32px, 16px, 16px); } -.variables-view-delete > .toolbarbutton-text { - display: none; +.variables-view-delete:active { + -moz-image-region: rect(0, 48px, 16px, 32px); } .variables-view-edit { - background: url("chrome://browser/skin/tabview/edit-light.png") center no-repeat; + background: url("chrome://browser/skin/devtools/vview-edit.png") center no-repeat; width: 20px; height: 16px; cursor: pointer; @@ -602,20 +629,20 @@ } .element-value-input { - -moz-margin-start: 4px !important; + -moz-margin-start: -2px !important; -moz-margin-end: 2px !important; } .element-name-input { -moz-margin-start: -2px !important; -moz-margin-end: 2px !important; - color: #E7ADE7; font-weight: 600; } .element-value-input, .element-name-input { border: 1px solid #008484 !important; + color: inherit; } /* Variables and properties searching */ @@ -624,7 +651,7 @@ min-height: 24px; } -.variable-or-property[non-match] { +.variable-or-property[unmatched] { border: none; margin: 0; } @@ -634,7 +661,7 @@ .arrow { background: url("chrome://global/skin/tree/twisty-closed.gif") center center no-repeat; width: 9px; - height: 20px; + height: 16px; -moz-margin-start: 5px; -moz-margin-end: 5px; } @@ -644,7 +671,7 @@ } .arrow[open] { - background-image: url("chrome://global/skin/tree/twisty-open.png"); + background-image: url("chrome://global/skin/tree/twisty-open.gif"); } .variables-view-scope > .title > .arrow[open] { @@ -654,3 +681,84 @@ .arrow[invisible] { visibility: hidden; } + +/* === BEGIN manifest-editor.inc.css === */ + +/* Manifest Editor overrides */ + +.variables-view-container.manifest-editor { + background-color: #000000; + padding: 20px 2px; +} + +.manifest-editor .variable-or-property:focus > .title { +/* background-color: #EDEDED; + color: #000; */ + border-radius: 4px; +} + +.manifest-editor .variables-view-property > .title > .name { +/* color: #27406A; */ +} + +.manifest-editor .variable-or-property > .title > label, +.manifest-editor textbox { + font-family: monospace; +} + +.manifest-editor .variable-or-property > .title > .token-string { +/* color: #54BC6A; */ + font-weight: bold; +} + +.manifest-editor .variable-or-property > .title > .token-boolean, +.manifest-editor .variable-or-property > .title > .token-number { +/* color: #009BD4; */ + font-weight: bold; +} + +.manifest-editor .variable-or-property > .title > .token-undefined { +/* color: #bbb; */ +} + +.manifest-editor .variable-or-property > .title > .token-null { +/* color: #999; */ +} + +.manifest-editor .variable-or-property > .title > .token-other { +/* color: #333; */ +} + +.manifest-editor .variables-view-variable { + border-bottom: none; +} + +.manifest-editor .variables-view-delete, +.manifest-editor .variables-view-delete:hover, +.manifest-editor .variables-view-delete:active, +.manifest-editor .variables-view-add-property:hover, +.manifest-editor .variables-view-add-property:active { + list-style-image: none; + -moz-image-region: initial; +} + +.manifest-editor .variables-view-delete::before, +.manifest-editor .variables-view-add-property::before { + width: 11px; + height: 11px; + content: ""; + display: inline-block; + background-size: 11px auto; +} + +.manifest-editor .variables-view-delete::before { + background-image: url("app-manager/remove.svg"); + background-size: 12px auto; +} + +.manifest-editor .variables-view-add-property::before { + background-image: url("app-manager/add.svg"); + -moz-margin-end: 2px; +} + +/* === END manifest-editor.inc.css === */