Without knowing what you have tried, we have to guess at what you need to answer this question. Do you just need to know what the selectors are? Do you need to be informed as to how to apply the CSS? Are you trying to make an add-on that makes such modifications?
Without more information, here is some general information about the CSS used to style this:
Responsive mode is styled with the CSS in chrome://browser/content/browser.css
and chrome://browser/skin/browser.css
. Both of these are located within the omni.ja (zip archive with filename extension changed to .ja
) file in the browser directory. Within that archive the above files are chrome/browser/content/browser/browser.css, chrome/browser/skin/classic/browser/browser.css, and chrome/browser/skin/classic/aero/browser/browser.css.
The background appears to be a <vbox>
and have class="browserContainer"
with the attribute: responsivemode="true"
.
As of Firefox 36.0.4 the relevant CSS is (from chrome://browser/skin/browser.css
):
.browserContainer[responsivemode] {
background-color: #222;
padding: 0 20px 20px 20px;
}
There are multiple ways that you could go about making changes to this. One way would be to extract the contents of the omni.ja file, make modifications to the appropriate browser.css file then put all the files back into an archive named omni.ja and put that archive in the browser directory in place of the original file. Another method would be to create an add-on that overrides the chrome://browser/skin/browser.css file (this can be done using the override
instruction in the add-on's chrome.manifest file. Yet another method would be for the add-on to directly apply the new style in one of multiple different ways.
However, probably the easiest is to create a [profile directtory]/chrome/userChrome.css file with the CSS you desire to use (you will probably have to create the chrome directory in your profile directory). As an example, the following will result in a red background for the Responsive Design View:
/*
* Edit this file and copy it as userChrome.css into your
* profile-directory/chrome/
*/
/*
* This file can be used to customize the look of Mozilla's user interface
* You should consider using !important on rules which you want to
* override default settings.
*/
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
/* Set default namespace to XUL */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.browserContainer[responsivemode],
vbox[anonid=browserContainer][responsivemode]{
background-color:red !important;
}