It's possible by creating a chrome/userContent.css
file in the profile directory. Browser Toolbox can be used to inspect the DevTools elements, similar to how DevTools inspects a webpage.
Mozilla's documentation on userContent.css
is a bit outdated, so a newer guide like the one from Dedoimedo can be helpful. In particular, toolkit.legacyUserProfileCustomizations.stylesheets
needs to be enabled in about:config
.
/* Tab contents */
@-moz-document url-prefix("chrome://devtools/content/") {
.computed-property-view {
justify-content: space-between;
column-gap: 20px;
}
.computed-property-name-container {
width: auto !important;
}
.computed-property-value-container {
flex: 0 0 auto !important;;
padding-right: 5px;
}
.computed-property-value {
padding-inline-start: 0 !important;;
}
}
To change the tab bar itself you'd put styles in @-moz-document url-prefix("about:devtools-toolbox")