X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fdark-theme.css;h=0d34733637be4fb911d9cd5a47e5b89f701e44d0;hp=1a859273686736281f09cad077075d2ed31925d0;hb=6f5a7408a1bd6d680d581fdf88469481da91aa72;hpb=93c91f62d8a75f3af43e52e373405ebf37fc196c diff --git a/LCARStrek/browser/devtools/dark-theme.css b/LCARStrek/browser/devtools/dark-theme.css index 1a859273..0d347336 100644 --- a/LCARStrek/browser/devtools/dark-theme.css +++ b/LCARStrek/browser/devtools/dark-theme.css @@ -6,19 +6,60 @@ /* According to: * https://bugzilla.mozilla.org/show_bug.cgi?id=715472#c17 */ +:root { + --theme-body-background: #000000; + --theme-sidebar-background: #000000; + --theme-contrast-background: #402800; + --theme-contrast-border: #A09090; + --theme-contrast-background2: #795900; + +/* --theme-tab-toolbar-background: #.252c33; */ + --theme-toolbar-background: #000000; + --theme-hover-background: #FFCF00; + --theme-hover-color: #000000; + --theme-selection-background: #008484; + --theme-selection-color: #000000; + --theme-selection-background2: #004242; + --theme-selection-color2: #FF9F00; + --theme-splitter-color: #9C9CFF; + --theme-comment: #A09090; + + --theme-contrastsidebar-background: #A09090; + --theme-contrastsidebar-color: #000000; + --theme-contrastsidebar-bordercolor: #000000; + + --theme-body-color: #FF9F00; + --theme-body-color-alt: #A09090; + --theme-content-color1: #FF9F00; + --theme-content-color2: #A09090; + --theme-content-color3: #FF9F00; + --theme-content-disabled: #8050B0; + + --theme-text-blue: #3333FF; + --theme-highlight-green: #008484; + --theme-highlight-blue: #9C9CFF; + --theme-highlight-bluegrey: #A09090; + --theme-highlight-purple: #C09070; + --theme-highlight-darkpurple: #6000CF; + --theme-highlight-lightorange: #FFCF00; + --theme-highlight-orange: #FF9F00; + --theme-highlight-red: #FF0000; + --theme-highlight-pink: #E7ADE7; +} + .theme-body { - background: #000000; - color: #FF9F00; + background: var(--theme-body-background); + color: var(--theme-body-color); } .theme-sidebar { - background: #000000; - color: #FF9F00; + background: var(--theme-sidebar-background); + color: var(--theme-content-color1); } ::-moz-selection { - background-color: #008484; - color: #FFCF00; + background-color: var(--theme-selection-background); + color: var(--theme-selection-color); } .theme-bg-darker { @@ -27,18 +68,18 @@ .theme-selected, .CodeMirror-hint-active { - background: #004242; - color: #FF9F00; /* Light foreground text */ + background-color: var(--theme-selection-background2); + color: var(--theme-selection-color2); } .theme-bg-contrast, -.variable-or-property:not([overridden])[changed] { /* contrast bg color to attract attention on a container */ - background: #402800; +.variable-or-property:not([overridden])[changed] { + background: var(--theme-contrast-background); } .theme-link, .cm-s-mozilla .cm-link { /* original: blue */ - color: #3333FF; + color: var(--theme-text-blue); } /* @@ -47,8 +88,8 @@ */ .theme-link:visited, .cm-s-mozilla .cm-link:visited, -.CodeMirror-Tern-type { /* original: blue */ - color: #3333FF; +.CodeMirror-Tern-type { + color: var(--theme-text-blue); } .theme-comment, @@ -56,17 +97,14 @@ .cm-s-mozilla .cm-hr, .cm-s-mozilla .cm-comment, .variable-or-property .token-undefined, -.variable-or-property .token-null { /* original: grey */ - color: #A09090; -} - +.variable-or-property .token-null, .CodeMirror-Tern-completion-unknown:before { - background-color: #A09090; + color: var(--theme-comment); } .theme-gutter { background-color: #000000; - color: #FF9F00; + color: var(--theme-content-color3); border-color: #9C9CFF; } @@ -78,8 +116,8 @@ .cm-s-mozilla .cm-number, .variable-or-property .token-number, .variable-or-property[return] > .title > .name, -.variable-or-property[scope] > .title > .name { /* original: green */ - color: #008484; +.variable-or-property[scope] > .title > .name { + color: var(--theme-highlight-green); } .CodeMirror-Tern-completion-number:before { @@ -92,8 +130,8 @@ .cm-s-mozilla .cm-def, .cm-s-mozilla .cm-property, .cm-s-mozilla .cm-qualifier, -.variables-view-variable > .title > .name { /* original: blue */ - color: #9C9CFF; +.variables-view-variable > .title > .name { + color: var(--theme-highlight-blue); } .CodeMirror-Tern-completion-object:before { @@ -102,7 +140,7 @@ .cm-s-mozilla .cm-unused-line { text-decoration: line-through; - -moz-text-decoration-color: #8050B0; + text-decoration-color: #8050B0; } .cm-s-mozilla .cm-executed-line { @@ -113,31 +151,31 @@ .cm-s-mozilla .cm-builtin, .cm-s-mozilla .cm-tag, .cm-s-mozilla .cm-header, +.cm-s-mozilla .cm-bracket, .variables-view-property > .title > .name, -.variable-or-property[safe-getter] > .title > .name { /* original: pink/lavender */ - color: #E7ADE7; +.variable-or-property[safe-getter] > .title > .name { + color: var(--theme-highlight-pink); } .CodeMirror-Tern-completion-array:before { - background-color: #E7ADE7; + color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */ } -.theme-fg-color4 { /* original: purple/violet */ - color: #C09070; +.theme-fg-color4 { + color: var(--theme-highlight-purple); } .theme-fg-color5, -.cm-s-mozilla .cm-bracket, -.cm-s-mozilla .cm-keyword { /* original: Yellow */ - color: #FFCF00; +.cm-s-mozilla .cm-keyword { + color: var(--theme-highlight-lightorange); } .theme-fg-color6, .cm-s-mozilla .cm-string, .cm-s-mozilla .cm-string-2, .variable-or-property .token-string, -.CodeMirror-Tern-farg { /* original: Orange */ - color: #E7ADE7; +.CodeMirror-Tern-farg { + color: var(--theme-highlight-pink); /* -orange? */ } .CodeMirror-Tern-completion-string:before, @@ -151,8 +189,8 @@ .cm-s-mozilla .cm-error, .variable-or-property .token-boolean, .variable-or-property .token-domnode, -.variable-or-property[exception] > .title > .name { /* original: Red */ - color: #FF0000; +.variable-or-property[exception] > .title > .name { + color: var(--theme-highlight-red); } .CodeMirror-Tern-completion-bool:before { @@ -167,6 +205,8 @@ .devtools-toolbar, .devtools-sidebar-tabs > tabs, .CodeMirror-dialog { /* General toolbar styling */ +/* color: var(--theme-body-color-alt); + background-color: var(--theme-toolbar-background);*/ } @@ -175,7 +215,8 @@ } .ruleview-colorswatch, -.computedview-colorswatch { +.computedview-colorswatch, +.ruleview-bezierswatch { /* box-shadow: 0 0 0 1px #818181; */ } @@ -199,8 +240,8 @@ .cm-s-mozilla .cm-variable-2, .cm-s-mozilla .cm-variable-3, .cm-s-mozilla .cm-operator, -.cm-s-mozilla .cm-special { /* theme-body color */ - color: #FF9F00; +.cm-s-mozilla .cm-special { + color: var(--theme-content-color1); } .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor { @@ -250,12 +291,12 @@ div.CodeMirror span.eval-text { } .cm-s-mozilla .CodeMirror-linenumber { /* line number text */ - color: #A09090; + color: var(--theme-content-color2); } .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */ - border-right-color: #A09090; - background-color: #402800; + border-right-color: var(--theme-contrast-border); + background-color: var(--theme-contrast-background); } .cm-s-markup-view pre { @@ -285,6 +326,10 @@ div.CodeMirror span.eval-text { background-position: -14px -14px; } +.theme-twisty[invisible] { + visibility: hidden; +} + .theme-checkbox { display: inline-block; border: 0; @@ -357,9 +402,12 @@ div.CodeMirror span.eval-text { } .devtools-horizontal-splitter { +/* border-bottom: 1px solid var(--theme-splitter-color); */ } .devtools-side-splitter { +/* -moz-border-end: 1px solid var(--theme-splitter-color); + border-color: var(--theme-splitter-color); / Needed for responsive container at low width. */ } .devtools-textinput, @@ -375,106 +423,160 @@ div.CodeMirror span.eval-text { .CodeMirror-hints, .CodeMirror-Tern-tooltip { background-color: #000000; - color: #FF9F00; + color: var(--theme-body-color); } /* === BEGIN toolbars.inc.css === */ +/* Toolbars */ +.devtools-toolbar, +.devtools-sidebar-tabs > tabs { +} + .devtools-toolbar { } -/* LCARStrek checkbox colors don't work well against toolbar background */ -.devtools-toolbar > checkbox { - background-color: #000000; +.devtools-toolbar checkbox { + /* LCARStrek checkbox colors don't work well against toolbar background */ + background-color: var(--theme-toolbar-background); padding: 2px; } +.devtools-toolbar checkbox .checkbox-check { +} +.devtools-toolbar checkbox .checkbox-label-box { +} +.devtools-toolbar checkbox .checkbox-label-box .checkbox-label { +} + +/* Toolbar buttons */ +.devtools-menulist, +.devtools-toolbarbutton { +/* transition: background 0.05s ease-in-out; */ +} -devtools-menulist:-moz-focusring, +.devtools-menulist:-moz-focusring, .devtools-toolbarbutton:-moz-focusring { - outline: 1px dotted #008484; + outline: 1px dotted var(--theme-selection-color); } -.devtools-toolbarbutton > .toolbarbutton-icon { +.devtools-toolbarbutton[standalone] { +} +.devtools-toolbarbutton[label][standalone] { } -.devtools-toolbarbutton:not([label]) { +.devtools-toolbarbutton:not([label]), +.devtools-toolbarbutton[text-as-image] { min-width: 20px; } +#toolbox-buttons .devtools-toolbarbutton[text-as-image] { + -moz-padding-start: 5px; + -moz-padding-end: 5px; + min-width: inherit; +} + +/* Command buttons with menupopups should be styled slightly differently - + no background color and a bit more narrow */ +#toolbox-buttons .devtools-toolbarbutton:not([text-as-image]):not(:hover):not([open=true]) { + background: transparent; +} +#toolbox-buttons .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker { + padding: 0 2px; +} + .devtools-toolbarbutton:not([label]) > .toolbarbutton-text { display: none; } -.devtools-toolbarbutton > .toolbarbutton-menubutton-button { - /*-moz-box-orient: horizontal;*/ +.devtools-toolbar .devtools-toolbarbutton { } -.devtools-menulist, -.devtools-toolbarbutton { +.devtools-toolbarbutton > .toolbarbutton-icon { } -.devtools-toolbarbutton:not([checked]):hover:active { +.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { +/* -moz-box-orient: horizontal; */ } -.devtools-menulist[open=true], -.devtools-toolbarbutton[open=true], -.devtools-toolbarbutton[checked] { +.devtools-toolbarbutton[type=menu-button] { } -.devtools-toolbarbutton[checked] { +.devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon { } -.devtools-toolbarbutton[checked]:hover:active { +.devtools-menulist > .menulist-dropmarker { } -.devtools-option-toolbarbutton { - list-style-image: url("chrome://browser/skin/devtools/tool-options-tbutton.svg"); -/* background: none; - border: none; */ +.devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker, +.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker { } -.devtools-option-toolbarbutton:hover, -.devtools-option-toolbarbutton[open=true] { - list-style-image: url("chrome://browser/skin/devtools/tool-options.svg"); +.devtools-menulist, +.devtools-toolbarbutton { } -.devtools-menulist > .menulist-label-box { - text-align: center; +/* Text-only buttons */ +.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]), +#toolbox-buttons .devtools-toolbarbutton[text-as-image] { +/* background-color: rgba(0, 0, 0, .2); / Splitter */ } -.devtools-menulist > .menulist-dropmarker { +/* Button States */ +.devtools-toolbarbutton:hover, +#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover, +.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover { +/* background: rgba(0, 0, 0, .3); / Splitters */ } -.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { +.devtools-toolbarbutton:hover:active, +#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover:active, +.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover:active { +/* background: rgba(0, 0, 0, .4); / Splitters */ } -.devtools-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button { +/* Menu type buttons and checked states */ +.devtools-toolbarbutton[checked=true], +#toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { +/* background: rgba(29, 79, 115, .7); / Select highlight blue / + color: var(--theme-selection-color); */ } -.devtools-toolbarbutton[type=menu-button] { - padding: 0 1px; - -moz-box-align: stretch; +.devtools-menulist[open=true], +.devtools-toolbarbutton[open=true], +.devtools-toolbarbutton[open=true]:hover, +.devtools-toolbarbutton[open=true]:hover:active, +.devtools-toolbarbutton[checked=true], +.devtools-toolbarbutton[checked=true]:hover, +#toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { +/* background: rgba(29, 79, 115, .8); / Select highlight blue / + color: var(--theme-selection-color); */ } -.devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker, -.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker { - -moz-box-align: center; +.devtools-toolbarbutton[checked=true]:hover { +} + +.devtools-option-toolbarbutton { + list-style-image: url("chrome://browser/skin/devtools/tool-options-tbutton.svg"); +/* background: none; + border: none; */ +} + +.devtools-option-toolbarbutton:hover, +.devtools-option-toolbarbutton[open=true] { + list-style-image: url("chrome://browser/skin/devtools/tool-options.svg"); } /* Toolbar button groups */ .devtools-toolbarbutton-group > .devtools-toolbarbutton { } -.devtools-toolbarbutton-group > .devtools-toolbarbutton:last-of-type { +.devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child { } -.devtools-toolbarbutton-group { -/* - margin: 0 2px; - -moz-padding-end: 2px; - border-left: 3px solid #000000; - border-right: 3px solid #000000; -*/ +.devtools-toolbarbutton-group + .devtools-toolbarbutton { +} + +.devtools-separator + .devtools-toolbarbutton { } /* Text input */ @@ -491,8 +593,9 @@ devtools-menulist:-moz-focusring, } .devtools-searchinput { -/* padding-top: 3px; - padding-bottom: 3px;*/ +/* margin-top: 1px; + margin-bottom: 1px; + padding: 0;*/ -moz-padding-start: 22px; -moz-padding-end: 12px; background-position: 8px center; @@ -518,7 +621,7 @@ devtools-menulist:-moz-focusring, } .devtools-no-search-result { - border-color: #FF0000 !important; + border-color: var(--theme-highlight-red) !important; } /* Close button */ @@ -583,20 +686,7 @@ devtools-menulist:-moz-focusring, -moz-border-end-width: 0; } -.devtools-sidebar-tabs > tabs > tab:first-of-type { - -moz-margin-start: 0; -} - -.devtools-sidebar-tabs > tabs > tab { -} - -.devtools-sidebar-tabs > tabs > tab:not(:last-of-type) { -} - -.devtools-sidebar-tabs:-moz-locale-dir(rtl) > tabs > tab { -} - -.devtools-sidebar-tabs > tabs > tab { +.devtools-sidebar-tabs > tabs > tab:first-child { } .devtools-sidebar-tabs > tabs > tab:hover { @@ -614,12 +704,7 @@ devtools-menulist:-moz-focusring, .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active { } -.devtools-sidebar-tabs > tabs > tab[selected] { -} - -.devtools-sidebar-tabs > tabs > tab[selected]:hover { -} - +.devtools-sidebar-tabs > tabs > tab[selected], .devtools-sidebar-tabs > tabs > tab[selected]:hover:active { } @@ -667,15 +752,20 @@ devtools-menulist:-moz-focusring, #toolbox-dock-side:hover { } -#toolbox-controls-separator { +.devtools-separator { + margin: 0 2px; width: 2px; } -#toolbox-buttons:empty + #toolbox-controls-separator, -#toolbox-controls-separator[invisible] { +#toolbox-buttons:empty + .devtools-separator, +.devtools-separator[invisible] { visibility: hidden; } +#toolbox-controls-separator { + margin: 0; +} + /* Command buttons */ .command-button { @@ -698,7 +788,8 @@ devtools-menulist:-moz-focusring, .command-button:hover > image, .command-button:hover:active > image, -.command-button[checked=true] > image { +.command-button[checked=true] > image, +.command-button[open=true] > image { background-position: -16px center; } @@ -726,6 +817,10 @@ devtools-menulist:-moz-focusring, background-image: url("chrome://browser/skin/devtools/command-pick.png"); } +#command-button-frames > image { + background-image: url("chrome://browser/skin/devtools/command-frames.png"); +} + #command-button-splitconsole > image { background-image: url("chrome://browser/skin/devtools/command-console.png"); } @@ -759,6 +854,10 @@ devtools-menulist:-moz-focusring, background-image: url("chrome://browser/skin/devtools/command-pick@2x.png"); } + #command-button-frames > image { + background-image: url("chrome://browser/skin/devtools/command-frames@2x.png"); + } + #command-button-splitconsole > image { background-image: url("chrome://browser/skin/devtools/command-console@2x.png"); } @@ -808,13 +907,13 @@ devtools-menulist:-moz-focusring, .devtools-tab:hover, .devtools-tab:hover:active { - background-color: #FFCF00; - color: #000000; + background-color: var(--theme-hover-background); + color: var(--theme-hover-color); } .devtools-tab[selected] { - background-color: #008484; - color: #000000; + background-color: var(--theme-selection-background); + color: var(--theme-selection-color); } .devtools-tab > spacer {