third and last part of syncing LCARStrek with Firefox 52 browser windows theme changes
[themes.git] / LCARStrek / devtools / toolbars.css
index ea1816d2e7871d0d9d60b9d3d41f96cde2ea63f9..cf3e8d9ca3e5aefeb57503c5b5d1058e24b54ee2 100644 (file)
 /* Toolbars */
 .devtools-toolbar,
 .devtools-sidebar-tabs tabs {
+  padding: 0;
+  border-width: 0;
+/*  border-bottom-width: 1px;*/
+  border-style: solid;
+/*  height: 24px;
+  line-height: 24px;*/
+  box-sizing: border-box;
+  font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
+}
+.devtools-toolbar {
+  height: 24px;
 }
 
 .devtools-toolbar {
 .devtools-toolbar checkbox .checkbox-label-box .checkbox-label {
 }
 
-.devtools-separator {
-  margin: 0 2px;
-  width: 2px;
-  background-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%);
-  background-size: 1px 100%;
-  background-repeat: no-repeat;
-  background-position: 0, 1px, 2px;
-}
-
-/* Toolbar buttons */
-
-.devtools-menulist,
-.devtools-toolbarbutton,
-.devtools-button {
-}
-
-.devtools-menulist,
-.devtools-toolbarbutton {
-}
-
-.devtools-toolbarbutton:not([label]) > .toolbarbutton-icon,
-.devtools-button::before {
-  width: 16px;
-  height: 16px;
-/*  transition: opacity 0.05s ease-in-out;*/
-}
-
-/* HTML buttons */
-.devtools-button {
-  margin: 0;
-  padding: 0;
-  border: none;
-  border-radius: 3px;
-  min-width: 18px;
-  height: 100%;
-  margin-inline-start: 2px;
-  background: var(--theme-toolbar-background);
-  color: var(--theme-body-color);
-  /* The icon is absolutely positioned in the button using ::before */
-  position: relative;
-}
-
-.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;
+/* HTML Checkboxes - a lot copied from global/in-content/common.css */
+/* Hide the actual checkbox */
+input[type="checkbox"] {
+  opacity: 0;
+  width: 0;
+  pointer-events: none;
   position: absolute;
-  left: 50%;
-  top: 50%;
-  margin: -8px 0 0 -8px;
-/*  background-size: cover;
-  background-repeat: no-repeat;*/
-/*  transition: opacity 0.05s ease-in-out;*/
-}
-
-.devtools-button:-moz-focusring {
-  outline: none;
-}
-
-/* Standalone buttons */
-.devtools-button[standalone],
-.devtools-button[data-standalone],
-.devtools-toolbarbutton[standalone],
-.devtools-toolbarbutton[data-standalone] {
-  border: none;
-/*  min-height: 32px; */
-  background-color: var(--theme-button-background);
-  color: var(--theme-button-color);
-  border-radius: 300px;
-}
-
-.devtools-button[standalone]:hover,
-.devtools-button[data-standalone]:hover,
-.devtools-toolbarbutton[standalone]:hover,
-.devtools-toolbarbutton[data-standalone]:hover {
-  background-color: var(--theme-hover-background);
-  color: var(--theme-hover-color);
-}
-
-.devtools-button[standalone]:hover:active,
-.devtools-button[data-standalone]:hover:active,
-.devtools-toolbarbutton[standalone]:hover:active,
-.devtools-toolbarbutton[data-standalone]:hover:active {
-  background-color: var(--theme-active-background);
-  color: var(--theme-active-color);
-}
-
-.devtools-toolbarbutton[standalone], .devtools-toolbarbutton[data-standalone] {
-}
-
-.devtools-toolbarbutton[label][standalone] {
-}
-
-.devtools-menulist,
-.devtools-toolbarbutton,
-.devtools-button {
-  min-height: 18px;
-}
-
-/* Icon button styles */
-.devtools-toolbarbutton:not([label]),
-.devtools-toolbarbutton[text-as-image] {
-  min-width: 16px;
 }
 
-/* Set flex attribute to Toolbox buttons and Picker container so,
-   they don't overlapp with the tab bar */
-#toolbox-buttons {
-  display: flex;
+label > input[type="checkbox"] { /* old placement of checkbox in label, undo above */
+  opacity: 1;
+  width: auto;
+  pointer-events: auto;
+  position: static;
 }
 
-#toolbox-picker-container {
-  display: flex;
-  margin-inline-start: 1px;
+/* Create a box to style as the checkbox */
+input[type="checkbox"] + label::before {
+  display: inline-block;
+  content: "";
+  vertical-align: middle;
 }
 
-.devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
-  display: none;
+.devtools-searchbox + #browser-style-checkbox-label, /* workaround for old placement of checkbox in label */
+input[type="checkbox"] + label {
+  line-height: 0px;
+  color: var(--theme-capped-toolbar-text);
 }
 
-.devtools-toolbar .devtools-toolbarbutton {
+input[type="checkbox"] + label::before {
+  -moz-appearance: none;
+  width: 13px;
+  height: 13px;
+  border-radius: 0;
+  border: 1px solid var(--theme-body-color);
+  margin-inline-end: 3px;
   margin-inline-start: 2px;
-}
-
-.devtools-toolbarbutton > .toolbarbutton-icon {
-}
-
-/* Menu button styles (eg. web console filters) */
-.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
-/*  -moz-box-orient: horizontal; */
-}
-
-.devtools-toolbarbutton[type=menu-button] {
-}
-
-.devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
-}
-
-.devtools-menulist > .menulist-dropmarker {
-}
-
-.devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
-.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
-}
-
-/* Icon-only buttons */
-.devtools-button:empty::before,
-.devtools-toolbarbutton:not([label]):not([disabled]) > image {
-/*  opacity: 0.8;*/
-}
-
-.devtools-button:hover:empty::before,
-.devtools-button[checked]:empty::before,
-.devtools-button[open]:empty::before,
-.devtools-toolbarbutton:not([label]):hover > image,
-.devtools-toolbarbutton:not([label])[checked=true] > image,
-.devtools-toolbarbutton:not([label])[open=true] > image {
-/*  opacity: 1;*/
-}
-
-.devtools-button:disabled,
-.devtools-button[disabled],
-.devtools-toolbarbutton[disabled] {
-/*  opacity: 0.5 !important;*/
-}
-
-.devtools-button[standalone]::before,
-.devtools-button[data-standalone]::before,
-.devtools-button:not([disabled]):hover::before,
-.devtools-button:not([disabled]):hover:active::before,
-.devtools-button[checked]:empty::before,
-.devtools-button[open]:empty::before,
-.devtools-toolbarbutton[standalone] > image,
-.devtools-toolbarbutton[data-standalone] > image,
-.devtools-toolbarbutton:not([disabled]):hover > image,
-.devtools-toolbarbutton:not([disabled]):hover:active > image,
-.devtools-toolbarbutton[checked=true] > image,
-.devtools-toolbarbutton[open=true] > image {
-  filter: var(--checked-icon-filter);
-}
-
-.devtools-button[disabled]::before,
-.devtools-toolbarbutton[disabled] > image {
-  filter: url(images/filters.svg#disabled-icon-state);
-}
-
-/* Icon-and-text buttons */
-.devtools-toolbarbutton.icon-and-text .toolbarbutton-text {
-  margin-inline-start: .5em !important;
-  font-weight: 600;
-}
-
-/* Text-only buttons */
-.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]),
-.devtools-toolbarbutton[data-text-only],
-#toolbox-buttons .devtools-toolbarbutton[text-as-image] {
-/*  background-color: rgba(0, 0, 0, .2); / Splitter */
-}
-
-/* Text-only button states */
-.devtools-button:not(:empty):not([disabled]):hover,
-#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover,
-.devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover {
-/*  background: rgba(0, 0, 0, .3); / Splitters */
-}
-
-.devtools-button:not(:empty):not([disabled]):hover:active,
-#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active,
-.devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover:active {
-/*  background: rgba(0, 0, 0, .4); / Splitters */
-}
-
-.devtools-toolbarbutton:not([disabled])[label][checked=true],
-.devtools-toolbarbutton:not([disabled])[label][open],
-.devtools-button:not(:empty)[checked=true],
-#toolbox-buttons .devtools-toolbarbutton[text-as-image][checked=true] {
-/*  background: rgba(29, 79, 115, .7); / Select highlight blue /
-  color: var(--theme-selection-color); */
-}
-
-.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); */
-}
-
-:root {
-  --clear-icon-url: url("chrome://devtools/skin/images/clear.svg");
-}
-
-.devtools-button.devtools-clear-icon::before {
-  background-image: var(--clear-icon-url);
-}
-
-.devtools-toolbarbutton.devtools-clear-icon {
-  list-style-image: var(--clear-icon-url);
-}
-
-.devtools-option-toolbarbutton {
-  list-style-image: var(--tool-options-image);
-}
-
-.devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child {
-}
-
-.devtools-toolbarbutton-group + .devtools-toolbarbutton {
-}
-
-.devtools-separator + .devtools-toolbarbutton {
-}
-
-/* Text input */
-
-.devtools-textinput,
-.devtools-searchinput,
-.devtools-filterinput {
-/*  -moz-appearance: none;
-  margin: 1 3px;
-  border: 1px solid;
-  border-radius: 2px;
-  padding: 4px 6px;
-  border-color: var(--theme-splitter-color);
-  font: message-box;*/
-  margin-top: 0;
-  margin-bottom: 0;
-}
-
-:root[platform="mac"] .devtools-searchinput,
-:root[platform="mac"] .devtools-textinput {
-/*  border-radius: 20px;*/
-}
-
-.devtools-searchinput,
-.devtools-filterinput {
-/*  margin-top: 1px;
-  margin-bottom: 1px;
-  padding: 0;*/
-  padding-inline-start: 22px;
-  padding-inline-end: 4px;
-  background-position: 8px center;
-  background-size: 11px 11px;
+  background-color: var(--theme-toolbar-background);
+  background-position: center center;
   background-repeat: no-repeat;
-  font-size: inherit;
 }
 
-.devtools-searchinput {
-  background-image: var(--magnifying-glass-image);
+input[type="checkbox"]:not(:disabled) + label:hover::before {
+  border-color: var(--theme-hover-background);
 }
-
-.devtools-filterinput {
-  background-image: url(--filter-image);
+.devtools-searchbox + #browser-style-checkbox-label:hover, /* workaround for old placement of checkbox in label */
+input[type="checkbox"]:not(:disabled) + label:hover {
+  color: var(--theme-hover-background);
 }
-
-.devtools-searchinput:-moz-locale-dir(rtl),
-.devtools-searchinput:dir(rtl),
-.devtools-filterinput:-moz-locale-dir(rtl),
-.devtools-filterinput:dir(rtl) {
-  background-position: calc(100% - 8px) center;
+input[type="checkbox"]:checked + label::before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check");
 }
 
-.devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon,
-.devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
-  visibility: hidden;
+input[type="checkbox"]:checked:disabled + label::before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check-disabled");
 }
-
-.devtools-searchinput .textbox-input::-moz-placeholder,
-.devtools-filterinput .textbox-input::-moz-placeholder {
-  font-style: normal;
+input[type="checkbox"]:checked:not(:disabled) + label:hover::before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check-hover");
 }
-
-/* Searchbox is a div container element for a search input element */
-.devtools-searchbox {
-  display: flex;
-  flex: 1;
-  position: relative;
+input[type="checkbox"]:disabled + label::before {
+  border-color: var(--theme-body-color-inactive);
 }
-
-/* The spacing is accomplished with a padding on the searchbox */
-.devtools-searchbox > .devtools-textinput,
-.devtools-searchbox > .devtools-searchinput {
+input[type="checkbox"]:disabled + label {
+  color: var(--theme-body-color-inactive);
 }
 
-.devtools-textinput:focus,
-.devtools-searchinput:focus,
-.devtools-filterinput:focus {
-  border-color: var(--theme-focus-border-color-textbox);
-/*  box-shadow: var(--theme-focus-box-shadow-textbox);*/
-  transition: all 0.2s ease-in-out;
-  outline: none;
-}
-
-/* Don't add 'double spacing' for inputs that are at beginning / end
-   of a toolbar (since the toolbar has it's own spacing). */
-.devtools-toolbar > .devtools-textinput:first-child,
-.devtools-toolbar > .devtools-searchinput:first-child,
-.devtools-toolbar > .devtools-filterinput:first-child {
-}
-.devtools-toolbar > .devtools-textinput:last-child,
-.devtools-toolbar > .devtools-searchinput:last-child,
-.devtools-toolbar > .devtools-filterinput:last-child {
-}
-.devtools-toolbar > .devtools-searchbox:first-child {
-}
-.devtools-toolbar > .devtools-searchbox:last-child {
-}
-
-.devtools-rule-searchbox {
-  -moz-box-flex: 1;
-  width: 100%;
-  font: inherit;
-}
-
-.devtools-rule-searchbox[filled] {
-  background-color: var(--searchbox-background-color);
-  border-color: var(--searchbox-border-color);
-  padding-inline-end: 23px;
-}
-
-.devtools-style-searchbox-no-match {
-  background-color: var(--searcbox-no-match-background-color) !important;
-  border-color: var(--searcbox-no-match-border-color) !important;
-}
-
-.devtools-searchinput-clear {
-  position: absolute;
-  top: 3.5px;
-  right: 7px;
-  padding: 0;
-  border: 0;
-  width: 16px;
-  height: 16px;
-  background-position: 0 0;
+.devtools-separator {
+  margin: 0 2px;
+  width: 2px;
+  background-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%);
+  background-size: 1px 100%;
   background-repeat: no-repeat;
-  background-color: transparent;
-}
-
-.devtools-searchinput-clear:dir(rtl) {
-  right: unset;
-  left: 7px;
+  background-position: 0, 1px, 2px;
 }
 
-.devtools-searchinput-clear {
-  background-image: url("chrome://devtools/skin/images/search-clear.svg");
-}
+/* HTML toolbars - style them LCARStrek-like */
 
-.devtools-style-searchbox-no-match + .devtools-searchinput-clear {
-  background-image: url("chrome://devtools/skin/images/search-clear-failed.svg") !important;
+div.devtools-toolbar,
+div.devtools-tabbar {
+  background-size: calc(100% - 30px);
+  background-image: linear-gradient(90deg, var(--theme-capped-toolbar-background), var(--theme-capped-toolbar-background));
+  background-repeat: no-repeat;
+  background-position: center center;
+  display: flex;
 }
 
-.devtools-searchinput-clear:hover {
-  background-position: -16px 0;
+div.devtools-toolbar::before,
+div.devtools-toolbar::after,
+div.devtools-tabbar::before,
+div.devtools-tabbar::after {
+  display: flex;
+  content: "";
+  width: 12px;
+  min-height: 16px;
+  background-color: var(--theme-toolbar-caps);
 }
 
-.devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear,
-.devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear {
-  list-style-image: url("chrome://devtools/skin/images/search-clear.svg");
-  -moz-image-region: rect(0, 16px, 16px, 0);
+div.devtools-toolbar::before,
+div.devtools-tabbar::before {
+  border-radius: 8px 0px 0px 8px;
+  border: none;
+  border-inline-end: 3px solid black;
+  margin-inline-end: 2px;
 }
 
-.devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover,
-.devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover {
-  -moz-image-region: rect(0, 32px, 16px, 16px);
+div.devtools-toolbar::after,
+div.devtools-tabbar::after {
+  border-radius: 0px 8px 8px 0px;
+  border: none;
+  border-inline-start: 3px solid black;
+  margin-inline-start: auto; /* originally 2px, but auto makes us able to get flexible free space */
 }
 
 /* In-tools sidebar */
 /*  background-color: var(--theme-splitter-color);*/
 }
 
-/* Throbbers */
-
-.devtools-throbber::before {
-  content: "";
-  display: inline-block;
-  vertical-align: bottom;
-  margin-inline-end: 0.5em;
-  width: 1em;
-  height: 1em;
-  border: 2px solid currentColor;
-  border-right-color: transparent;
-  border-radius: 50%;
-  animation: 1.1s linear throbber-spin infinite;
-}
-
-@keyframes throbber-spin {
-  from {
-    transform: none;
-  }
-  to {
-    transform: rotate(360deg);
-  }
+/* HACK around hardcoded stylings for the HTML-based sidebar tabs */
+.tabs .tabs-menu-item,
+.theme-dark .tabs .tabs-menu-item,
+.theme-light .tabs .tabs-menu-item {
+  margin: 0;
+  margin-inline-end: 3px !important;
+  padding: 0 !important;
+  border-radius: 8px 8px 0 0;
+  border: 0 !important;
+  background-color: var(--theme-button-background);
+}
+.tabs .tabs-menu-item a {
+  color: var(--theme-button-color) !important;
+  padding: 0px 3px !important;
+}
+.tabs .tabs-menu-item.is-active {
+  height: auto !important;
+}
+.tabs .tabs-navigation {
+  height: auto !important;
+  border: 0 !important;
+  border-bottom: 3px solid  var(--theme-body-background) !important;
 }