X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fdark-theme.css;h=c9ac0938a324aecd047bfe9c8bfd8e3ae269f2c8;hp=98b3d7a4ec0579b51a93d473547ab5fcd6edc3cc;hb=2075203285bc0276d14a434d056cf90131188d44;hpb=8c6555e28fa244bc0231d8176d587cdd086983a8 diff --git a/LCARStrek/browser/devtools/dark-theme.css b/LCARStrek/browser/devtools/dark-theme.css index 98b3d7a4..c9ac0938 100644 --- a/LCARStrek/browser/devtools/dark-theme.css +++ b/LCARStrek/browser/devtools/dark-theme.css @@ -17,6 +17,8 @@ --theme-toolbar-background: #000000; --theme-hover-background: #FFCF00; --theme-hover-color: #000000; + --theme-active-background: #FFCF00; + --theme-active-color: #000000; --theme-selection-background: #008484; --theme-selection-color: #000000; --theme-selection-background2: #004242; @@ -402,15 +404,6 @@ div.CodeMirror span.eval-text { border-bottom: 0; } -.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, .devtools-searchinput { background-color: #000000; @@ -523,15 +516,15 @@ div.CodeMirror span.eval-text { } /* 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 { +.devtools-toolbarbutton:not([disabled]):hover, +#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover, +.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover { /* background: rgba(0, 0, 0, .3); / Splitters */ } -.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 { +.devtools-toolbarbutton:not([disabled]):hover:active, +#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active, +.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover:active { /* background: rgba(0, 0, 0, .4); / Splitters */ } @@ -580,6 +573,59 @@ div.CodeMirror span.eval-text { .devtools-separator + .devtools-toolbarbutton { } +/* HTML buttons, similar to toolbar buttons, but work in HTML documents */ + +.devtools-button { + border: 0 solid var(--theme-splitter-color); + background: var(--theme-toolbar-background); + margin: 0; + padding: 0; + min-width: 32px; + min-height: 18px; + /* The icon is absolutely positioned in the button using ::before */ + position: relative; +} + +.devtools-button[standalone] { + min-height: 32px; + border-width: 1px; +} + +/* Button States */ +.devtools-button:not([disabled]):hover { + background: var(--theme-hover-background); + color: var(--theme-hover-color); +} + +.devtools-button:not([disabled]):hover:active { + background: var(--theme-active-background); + color: var(--theme-active-color); +} + +/* Menu type buttons and checked states */ +.devtools-button[checked] { + background: var(--theme-selection-background); + color: var(--theme-selection-color); +} + +.devtools-button::before { + content: ""; + display: block; + width: 16px; + height: 16px; + position: absolute; + left: 50%; + top: 50%; + margin: -8px 0 0 -8px; + background-repeat: no-repeat; +} + +@media (min-resolution: 2dppx) { + .devtools-button::before { + background-size: 32px; + } +} + /* Text input */ .devtools-textinput, @@ -975,4 +1021,13 @@ div.CodeMirror span.eval-text { display: none; } +.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. */ +} + /* === END toolbars.inc.css === */