gecko-dev/browser/base/skin/browser.css

791 lines
21 KiB
CSS

/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
* Jason Kersey (kerz@netscape.com)
* Pierre Chanial (chanial@noos.fr)
* Dean Tessman (dean_tessman@hotmail.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
@import url("chrome://global/skin/");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#PersonalToolbar {
min-height: 26px;
}
/* ::::: bookmark buttons ::::: */
toolbarbutton.bookmark-item {
margin: 0;
min-width: 0;
max-width: 13em;
padding: 2px 3px;
color: -moz-DialogText !important;
}
toolbarbutton.bookmark-item:hover:active,
toolbarbutton.bookmark-item[open="true"] {
padding: 3px 2px 1px 4px;
}
.bookmark-item > .toolbarbutton-icon {
width: 16px;
height: 16px;
}
/* Prevent [mode="icons"] from hiding the label */
.bookmark-item > .toolbarbutton-text {
display: -moz-box !important;
}
.bookmark-item > .toolbarbutton-menu-dropmarker {
display: none;
}
.toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
width: 32px;
height: 32px;
background: url("chrome://browser/skin/Bookmarks-folder.png") no-repeat;
}
.bookmarks-toolbar-customize {
display: none;
max-width: 15em !important;
}
toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-customize {
display: -moz-box;
}
toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-overflow-items {
visibility: hidden;
}
toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
visibility: hidden;
}
/* ::::: bookmark menus ::::: */
menu.bookmark-item,
menuitem.bookmark-item {
min-width: 0;
max-width: 26em;
border-top: 1px solid transparent !important;
border-bottom: 1px solid transparent !important;
padding: 1px 3px 1px 2px;
margin-top: -1px;
}
.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
width: 16px;
height: 16px;
}
/* ..... drag and drop styles ..... */
.bookmark-item[dragover-left="true"] {
-moz-border-left-colors: #000000;
}
.bookmark-item[dragover-right="true"] {
-moz-border-right-colors: #000000;
}
.bookmark-item[dragover-top="true"] {
-moz-border-top-colors: #000000;
}
.bookmark-item[dragover-bottom="true"] {
-moz-border-bottom-colors: #000000;
}
/* ::::: bookmark items ::::: */
.bookmark-item {
list-style-image: url("chrome://global/skin/icons/folder-item.png") !important;
-moz-image-region: rect(0px, 16px, 16px, 0px)
}
.bookmark-item[container="true"] {
-moz-image-region: rect(0px, 32px, 16px, 16px) !important;
}
.bookmark-item[open="true"],
.bookmark-item[container="true"][open="true"] {
-moz-image-region: rect(16px, 32px, 32px, 16px) !important;
}
/* ::::: primary toolbar buttons ::::: */
.toolbarbutton-1 {
-moz-box-orient: vertical;
min-width: 0px;
list-style-image: url("chrome://browser/skin/Toolbar.png");
}
toolbarbutton:not([disabled="true"]):hover,
menubutton:not([disabled="true"]):hover,
toolbarbutton:not([disabled="true"]):hover:active,
menubutton:not([disabled="true"]):hover:active {
color: ButtonText !important;
}
.toolbarbutton-menubutton-stack,
.toolbarbutton-menubutton-button,
.toolbarbutton-menubutton-stack:hover,
.toolbarbutton-menubutton-button:hover,
.toolbarbutton-menubutton-stack:hover:active,
.toolbarbutton-menubutton-button:hover:active {
margin: 0 !important;
display: -moz-box;
}
toolbar[mode="icons"] .toolbarbutton-text {
display: none;
}
toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
toolbar[mode="text"] .toolbarbutton-icon {
display: none;
}
toolbar[mode="text"] .toolbarbutton-text {
padding: 0 !important;
margin: 3px 5px !important;
}
#back-button {
-moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button");
-moz-image-region: rect(0px 32px 32px 0px);
}
#back-button[buttonover="true"] {
-moz-image-region: rect(32px 32px 64px 0px);
}
#back-button[disabled="true"] {
-moz-image-region: rect(64px 32px 96px 0px);
}
#forward-button {
-moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button");
-moz-image-region: rect(0px 64px 32px 32px);
}
#forward-button[buttonover="true"] {
-moz-image-region: rect(32px 64px 64px 32px);
}
#forward-button[disabled="true"] {
-moz-image-region: rect(64px 64px 96px 32px) !important;
}
#reload-button {
-moz-image-region: rect(0px 128px 32px 96px);
}
#reload-button:hover {
-moz-image-region: rect(32px 128px 64px 96px);
}
#reload-button[disabled="true"] {
-moz-image-region: rect(64px 128px 96px 96px) !important;
}
#stop-button {
-moz-image-region: rect(0px 96px 32px 64px);
}
#stop-button:hover {
-moz-image-region: rect(32px 96px 64px 64px);
}
#stop-button[disabled="true"] {
-moz-image-region: rect(64px 96px 96px 64px) !important;
}
#home-button {
-moz-image-region: rect(0px 160px 32px 128px);
}
#home-button:hover {
-moz-image-region: rect(32px 160px 64px 128px);
}
#home-button[disabled="true"] {
-moz-image-region: rect(64px 160px 96px 128px) !important;
}
#print-button {
-moz-image-region: rect(0px 288px 32px 256px);
}
#print-button:hover {
-moz-image-region: rect(32px 288px 64px 256px);
}
#print-button[disabled="true"] {
-moz-image-region: rect(64px 288px 96px 256px);
}
#new-tab-button {
-moz-image-region: rect(0px 320px 32px 288px);
}
#new-tab-button:hover,
#new-tab-button[checked="true"] {
-moz-image-region: rect(32px 320px 64px 288px);
}
#new-tab-button[disabled="true"] {
-moz-image-region: rect(64px 320px 96px 288px);
}
#new-window-button {
-moz-image-region: rect(0px 352px 32px 320px);
}
#new-window-button:hover,
#new-window-button[checked="true"] {
-moz-image-region: rect(32px 352px 64px 320px);
}
#new-window-button[disabled="true"] {
-moz-image-region: rect(64px 352px 96px 320px);
}
#downloads-button {
-moz-image-region: rect(0px 192px 32px 160px);
}
#downloads-button:hover,
#downloads-button[checked="true"] {
-moz-image-region: rect(32px 192px 64px 160px);
}
#downloads-button[disabled="true"] {
-moz-image-region: rect(64px 192px 96px 160px);
}
#bookmarks-button {
-moz-image-region: rect(0px 256px 32px 224px);
}
#bookmarks-button:hover,
#bookmarks-button[checked="true"] {
-moz-image-region: rect(32px 256px 64px 224px);
}
#bookmarks-button[disabled="true"] {
-moz-image-region: rect(64px 256px 96px 224px);
}
#history-button {
-moz-image-region: rect(0px 224px 32px 192px);
}
#history-button:hover,
#history-button[checked="true"] {
-moz-image-region: rect(32px 224px 64px 192px);
}
#history-button[disabled="true"] {
-moz-image-region: rect(64px 224px 96px 192px);
}
#mail-button {
-moz-image-region: rect(0px 224px 32px 192px);
}
#mail-button:hover,
#mail-button[checked="true"] {
-moz-image-region: rect(32px 224px 64px 192px);
}
#mail-button[disabled="true"] {
-moz-image-region: rect(64px 224px 96px 192px);
}
#cut-button {
-moz-image-region: rect(0px 384px 32px 352px);
}
#cut-button:hover,
#cut-button[checked="true"] {
-moz-image-region: rect(32px 384px 64px 352px);
}
#cut-button[disabled="true"] {
-moz-image-region: rect(64px 384px 96px 352px);
}
#copy-button {
-moz-image-region: rect(0px 416px 32px 384px);
}
#copy-button:hover,
#copy-button[checked="true"] {
-moz-image-region: rect(32px 416px 64px 384px);
}
#copy-button[disabled="true"] {
-moz-image-region: rect(64px 416px 96px 384px);
}
#paste-button {
-moz-image-region: rect(0px 448px 32px 416px);
}
#paste-button:hover,
#paste-button[checked="true"] {
-moz-image-region: rect(32px 448px 64px 416px);
}
#paste-button[disabled="true"] {
-moz-image-region: rect(64px 448px 96px 416px);
}
/* ::::: small primary toolbar buttons ::::: */
toolbar[iconsize="small"] .toolbarbutton-1 {
list-style-image: url("chrome://browser/skin/Toolbar-small.png");
}
toolbar[iconsize="small"] #back-button {
-moz-image-region: rect(0px 20px 20px 0px);
}
toolbar[iconsize="small"] #back-button[buttonover="true"] {
-moz-image-region: rect(20px 20px 40px 0px);
}
toolbar[iconsize="small"] #back-button[disabled="true"] {
-moz-image-region: rect(40px 20px 60px 0px);
}
toolbar[iconsize="small"] #forward-button {
-moz-image-region: rect(0px 40px 20px 20px);
}
toolbar[iconsize="small"] #forward-button[buttonover="true"] {
-moz-image-region: rect(20px 40px 40px 20px);
}
toolbar[iconsize="small"] #forward-button[disabled="true"] {
-moz-image-region: rect(40px 40px 60px 20px) !important;
}
toolbar[iconsize="small"] #reload-button {
-moz-image-region: rect(0px 80px 20px 60px);
}
toolbar[iconsize="small"] #reload-button:hover {
-moz-image-region: rect(20px 80px 40px 60px);
}
toolbar[iconsize="small"] #reload-button[disabled="true"] {
-moz-image-region: rect(40px 80px 60px 60px) !important;
}
toolbar[iconsize="small"] #stop-button {
-moz-image-region: rect(0px 60px 20px 40px);
}
toolbar[iconsize="small"] #stop-button:hover {
-moz-image-region: rect(20px 60px 40px 40px);
}
toolbar[iconsize="small"] #stop-button[disabled="true"] {
-moz-image-region: rect(40px 60px 60px 40px) !important;
}
toolbar[iconsize="small"] #home-button {
-moz-image-region: rect(0px 100px 20px 80px);
}
toolbar[iconsize="small"] #home-button:hover {
-moz-image-region: rect(20px 100px 40px 80px);
}
toolbar[iconsize="small"] #print-button {
-moz-image-region: rect(0px 180px 20px 160px);
}
toolbar[iconsize="small"] #print-button:hover {
-moz-image-region: rect(20px 180px 40px 160px);
}
toolbar[iconsize="small"] #print-button[disabled="true"] {
-moz-image-region: rect(40px 180px 60px 160px);
}
toolbar[iconsize="small"] #downloads-button {
-moz-image-region: rect(0px 120px 20px 100px);
}
toolbar[iconsize="small"] #downloads-button:hover,
toolbar[iconsize="small"] #downloads-button[checked="true"] {
-moz-image-region: rect(20px 120px 40px 100px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
-moz-image-region: rect(40px 120px 60px 100px) !important;
}
toolbar[iconsize="small"] #new-tab-button {
-moz-image-region: rect(0px 200px 20px 180px);
}
toolbar[iconsize="small"] #new-tab-button:hover,
toolbar[iconsize="small"] #new-tab-button[checked="true"] {
-moz-image-region: rect(20px 200px 40px 180px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
-moz-image-region: rect(40px 200px 60px 180px) !important;
}
toolbar[iconsize="small"] #new-window-button {
-moz-image-region: rect(0px 220px 20px 200px);
}
toolbar[iconsize="small"] #new-window-button:hover,
toolbar[iconsize="small"] #new-window-button[checked="true"] {
-moz-image-region: rect(20px 220px 40px 200px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
-moz-image-region: rect(40px 220px 60px 200px) !important;
}
toolbar[iconsize="small"] #bookmarks-button {
-moz-image-region: rect(0px 160px 20px 140px);
}
toolbar[iconsize="small"] #bookmarks-button:hover,
toolbar[iconsize="small"] #bookmarks-button[checked="true"] {
-moz-image-region: rect(20px 160px 40px 140px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
-moz-image-region: rect(40px 160px 60px 140px) !important;
}
toolbar[iconsize="small"] #history-button {
-moz-image-region: rect(0px 140px 20px 120px);
}
toolbar[iconsize="small"] #history-button:hover,
toolbar[iconsize="small"] #history-button[checked="true"] {
-moz-image-region: rect(20px 140px 40px 120px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
-moz-image-region: rect(40px 140px 60px 120px) !important;
}
toolbar[iconsize="small"] #mail-button {
-moz-image-region: rect(0px 140px 20px 120px);
}
toolbar[iconsize="small"] #mail-button:hover,
toolbar[iconsize="small"] #mail-button[checked="true"] {
-moz-image-region: rect(20px 140px 40px 120px);
}
toolbar[iconsize="small"] #mail-button[disabled="true"] {
-moz-image-region: rect(40px 140px 60px 120px) !important;
}
toolbar[iconsize="small"] #cut-button {
-moz-image-region: rect(0px 240px 20px 220px);
}
toolbar[iconsize="small"] #cut-button:hover,
toolbar[iconsize="small"] #cut-button[checked="true"] {
-moz-image-region: rect(20px 240px 40px 220px);
}
toolbar[iconsize="small"] #cut-button[disabled="true"] {
-moz-image-region: rect(40px 240px 60px 220px) !important;
}
toolbar[iconsize="small"] #copy-button {
-moz-image-region: rect(0px 260px 20px 240px);
}
toolbar[iconsize="small"] #copy-button:hover,
toolbar[iconsize="small"] #copy-button[checked="true"] {
-moz-image-region: rect(20px 260px 40px 240px);
}
toolbar[iconsize="small"] #copy-button[disabled="true"] {
-moz-image-region: rect(40px 260px 60px 240px) !important;
}
toolbar[iconsize="small"] #paste-button {
-moz-image-region: rect(0px 280px 20px 260px);
}
toolbar[iconsize="small"] #paste-button:hover,
toolbar[iconsize="small"] #paste-button[checked="true"] {
-moz-image-region: rect(20px 280px 40px 260px);
}
toolbar[iconsize="small"] #paste-button[disabled="true"] {
-moz-image-region: rect(40px 280px 60px 260px) !important;
}
/* Smaller padding on small toolbar buttons */
toolbar[iconsize="small"] .toolbarbutton-1 {
padding: 2px;
}
toolbar[iconsize="small"] .toolbarbutton-1:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[open="true"] {
padding: 3px 1px 1px 3px;
}
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"][open="true"] {
padding: 2px;
}
toolbar[iconsize="small"] .toolbarbutton-1[checked="true"] {
padding: 3px 1px 1px 3px !important;
}
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover:active {
padding: 0;
}
/* ::::: fullscreen window controls ::::: */
#window-controls {
-moz-box-align: center;
padding: 0 2px 0 4px;
border-left: 2px solid;
-moz-border-left-colors: ThreeDHighlight ThreeDShadow;
}
#minimize-button {
list-style-image: url("chrome://global/skin/icons/Minimize.gif");
}
#restore-button {
list-style-image: url("chrome://global/skin/icons/Restore.gif");
}
#close-button {
list-style-image: url("chrome://global/skin/icons/Close.gif");
}
/* ::::: nav-bar-inner ::::: */
#urlbar {
margin: 2px 3px;
}
#search-bar {
width: 12em;
}
/* ::::: page proxy icon ::::: */
#page-proxy-deck,
#page-proxy-favicon,
#page-proxy-button {
width: 16px;
height: 16px;
}
#page-proxy-deck {
cursor: -moz-grab;
margin: 2px 3px;
}
#page-proxy-favicon {
list-style-image: none;
}
#page-proxy-button {
list-style-image: url("chrome://global/skin/icons/folder-item.png") !important;
-moz-image-region: rect(0px, 16px, 16px, 0px);}
#page-proxy-button[pageproxystate="invalid"] {
cursor: default;
-moz-image-region: rect(32px, 16px, 48px, 0px) !important;
}
statusbarpanel#statusbar-display {
padding-left: 0;
}
/* ::::: search-bar ::::: */
#search-proxy-button {
margin-top: 2px;
margin-bottom: 1px;
}
.search-proxy-button-image {
margin: 0px;
list-style-image: url("chrome://browser/skin/Search-bar.png");
}
.search-proxy-button-dropmarker {
margin-left: 12px;
margin-top: 8px;
list-style-image: url("chrome://browser/skin/search-arrow.gif");
}
#__PhoenixFindInPage {
list-style-image: url("chrome://browser/skin/Search-bar.png");
}
/* ::::: autocomplete ::::: */
.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
color: #555566;
}
/* ::::: go button ::::: */
#go-button,
#go-container {
-moz-appearance: none;
background-color: transparent;
margin: 0;
padding: 0;
min-width: 0;
list-style-image: url("chrome://browser/skin/Go.png");
-moz-image-region: rect(0px, 20px, 20px, 0px);
}
#go-button {
-moz-appearance: toolbarbutton;
border-width: 1px !important;
-moz-border-top-colors: transparent;
-moz-border-right-colors: transparent;
-moz-border-bottom-colors: transparent;
-moz-border-left-colors: transparent;
-moz-appearance: toolbarbutton;
}
#go-button:hover {
-moz-border-top-colors: ThreeDHighlight;
-moz-border-right-colors: ThreeDShadow;
-moz-border-bottom-colors: ThreeDShadow;
-moz-border-left-colors: ThreeDHighlight;
-moz-image-region: rect(0px, 40px, 20px, 20px);
}
#go-button:hover:active {
-moz-border-top-colors: ThreeDShadow;
-moz-border-right-colors: ThreeDHighlight;
-moz-border-bottom-colors: ThreeDHighlight;
-moz-border-left-colors: ThreeDShadow;
}
#go-button[disabled="true"] {
-moz-image-region: rect(0px, 60px, 20px, 40px);
border-color: transparent;
}
#go-button > .button-box > .button-text {
margin-left: 5px !important;
}
#go-button > .button-box {
border: none;
}
#sidebar {
background-color: Window;
}
/* ::::: content area ::::: */
#status-bar {
border-top: none;
}
#security-button {
display: none;
}
#security-button[level="high"] {
list-style-image: url("chrome://browser/skin/Secure.png");
display: -moz-box;
}
#security-button[level="low"] {
list-style-image: url("chrome://browser/skin/Secure.png");
display: -moz-box;
}
#security-button[level="broken"] {
list-style-image: url("chrome://browser/skin/Security-broken.png");
display: -moz-box;
}
#page-report-button {
display: none;
}
#page-report-button[blocked] {
display: -moz-box;
list-style-image: url("chrome://browser/skin/Info.png");
padding: 0px 3px 0px 3px;
}
#page-theme-button {
display: none;
}
#page-theme-button[themes] {
display: -moz-box;
list-style-image: url("chrome://browser/skin/page-themes.png");
padding: 0px 3px 0px 3px;
}
/* ::::: throbber ::::: */
#navigator-throbber {
-moz-appearance: none;
-moz-user-focus: ignore;
margin: 0 !important;
border: none !important;
padding: 0px !important;
min-width: 0;
background-color: transparent;
list-style-image: url("chrome://browser/skin/Throbber.png");
}
#navigator-throbber[busy="true"] {
list-style-image: url("chrome://browser/skin/Throbber.gif");
}
toolbar[iconsize="small"] #navigator-throbber,
toolbar[mode="text"] #navigator-throbber {
list-style-image: url("chrome://browser/skin/Throbber-small.png");
}
toolbar[iconsize="small"] #navigator-throbber[busy="true"],
toolbar[mode="text"] #navigator-throbber[busy="true"] {
list-style-image: url("chrome://browser/skin/Throbber-small.gif");
}
.tabs-closebutton {
list-style-image: url("chrome://global/skin/icons/close-button.gif");
}
#content .tabs-closebutton {
list-style-image: url("chrome://browser/skin/Close-tab.png");
-moz-image-region: rect(0px, 18px, 14px, 0px);
}
#content .tabs-closebutton:hover {
-moz-image-region: rect(0px, 36px, 14px, 18px);
}
toolbarbutton.chevron {
list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
}
toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
display: none;
}
toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
display: -moz-box;
}
toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-text {
display: none;
}
#sidebar-throbber[loading="true"] {
list-style-image: url(chrome://global/skin/icons/Loading.gif);
}