Tuesday, November 22, 2005

Firefox - userChrome.css


/*
* userChrome.css
*
* version 6.1.25
*
* for Mozilla Firefox 1.5+
* on Ubuntu 5.10 GNU/Linux
*
* by Obi Bok
* ----------
* Gmail: obibok
* http://linuxtuneup.blogspot.com
*
* place in ~/.mozilla/firefox/xxxxxxxx.xxxx/chrome/
*/

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");



/* --- TOOLBAR --- */

/* merge 'Stop' and 'Reload' buttons
* 'Stop' must be placed before 'Reload' on toolbar
*/
#stop-button[disabled="true"] { display: none; }
#stop-button:not([disabled="true"]) + #reload-button { display: none; }

/* set URL bar color for high security */
#urlbar[level="high"] > .autocomplete-textbox-container {
background-color: #99FF99 !important;
color: black !important;
}

/* set URL bar color for low security */
#urlbar[level="low"] > .autocomplete-textbox-container {
background-color: #FFFF99 !important;
color: black !important;
}

/* set URL bar color for broken security */
#urlbar[level="broken"] > .autocomplete-textbox-container {
background-color: #FF3366 !important;
color: black !important;
}

/* remove text from 'Go' button */
#go-button .toolbarbutton-text { display: none !important; }



/* --- MESSAGE BAR --- */
/* top bar activated by XPI installs, popups, etc. */

/* set browser message bar margins, padding and colors */
browsermessage {
background-color: #FF0000 !important;
color: #FFFFFF !important;
margin: 0px !important;
padding: 0px !important;
}

/* set browser message bar text margins */
browsermessage .messageText { margin: 0px !important; }

/* set browser message bar 'Options' button margins */
browsermessage .messageButton { margin: 0px -3px 0px 0px !important; }

/* set browser message bar close button margins and padding */
browsermessage .tabs-closebutton {
margin: 0px 0px 0px 0px !important;
padding: 0px !important;
}



/* --- TAB BAR --- */

/* set tab bar margins and padding */
.tabbrowser-tabs {
height: 26px !important; /* set tab height when tab close button is disabled */
margin: 0px 0px -2px 0px !important;
padding: 0px !important;
}

/* set tab borders, margins and padding */
tab {
border: 2px inset !important;
border-color: inherit !important;
margin: 0px !important;
padding: 0px 0px 1px 2px !important; /* set favicon and text placement; must be set the same for active tab */
}

/* disable theme support in tabs to set their background colors */
tab { -moz-appearance: none !important; }

/* set unread tab color
* must be defined before active and visited
*/
tab:not([selected="true"]) { color: #0000FF !important; }

/* set active tab colors, margins and padding */
tab[selected="true"] {
margin: 0px !important;
padding: 0px 0px 1px 2px !important; /* same as set for inactive tab */
background-color: #000000 !important;
color: #FFFFFF !important;
}

/* set visited tab color */
tab[selected="false"] { color: #000000 !important; }

/* set busy tab color */
tab[busy] { color: #808080 !important; }

/* set inactive tab hover backround color */
tab:not([selected="true"]):hover { background-color: #FFFFFF !important; }

/* set tab colors for errors 404 and 403 */
.tab-text[value="404 Not Found"], .tab-text[value="403 Access Denied"] {
background-color: #FF0000 !important;
color: #FFFFFF !important;
}

/* disable theme support in tab progress bar to set its background color */
tab progressmeter, .progress-bar { -moz-appearance: none !important; }

/* set tab progress bar color in unread tabs */
tab:not([selected="true"]) .progress-bar { background-color: #0000FF !important; }

/* set tab progress bar color in active tabs */
tab[selected="true"] .progress-bar { background-color: #000000 !important; }

/* set tab progress bar color in visited tabs */
tab[selected="false"] .progress-bar { background-color: #FFFFFF !important; }

/* set tab bar (and message bar) close button color */
.tabs-closebutton { background-color: inherit !important; }



/* --- FIND TOOLBAR --- */

/* set find toolbar size */
#find-field-container, #find-field { -moz-box-flex: 1 !important; } /* any value >0 works */

/* remove text from 'Find Next' and 'Find Previous' buttons */
#find-next .toolbarbutton-text, #find-previous .toolbarbutton-text { display: none !important; }

/* remove status text from find toolbar */
#find-status { display: none !important; }

/* set find toolbar close button color */
#find-closebutton { background-color: inherit !important; }



/* --- STATUS BAR --- */

/* remove security info button from status bar */
#security-button { display: none !important; }



/* --- FULL SCREEN --- */

/* show menu bar in full screen mode
* useful when navigation buttons are on menu bar
*/
#toolbar-menubar { visibility: visible !important; }

/* show status bar in full screen mode */
#status-bar { visibility: visible !important; }



/* --- OTHER --- */

/* remove 'Show Password' button from Password Manager */
#togglePasswords { display: none; }

No comments: