/* ***** 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>
 *
 * 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://navigator/content/navigator.css");
@import url("chrome://communicator/skin/");
@import url("chrome://communicator/skin/sidebar/sidebar.css");
@import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");

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

/* ::::: primary toolbar buttons ::::: */

.toolbarbutton-1 {
  list-style-image: url("chrome://navigator/skin/icons/btn1.gif");
  min-width: 0px;
}

#back-button {
  -moz-image-region: rect(0 41px 38px 0);
}

#back-button[buttonover="true"] {
  -moz-image-region: rect(0 83px 38px 42px);
}

#back-button[buttondown="true"] {
  -moz-image-region: rect(0 125px 38px 84px);
}

#back-button[disabled="true"] {
  -moz-image-region: rect(0 167px 38px 126px) !important;
}

#forward-button {
  -moz-image-region: rect(39px 41px 77px 0);
}

#forward-button[buttonover="true"] {
  -moz-image-region: rect(39px 83px 77px 42px);
}

#forward-button[buttondown="true"] {
  -moz-image-region: rect(39px 125px 77px 84px);
}

#forward-button[disabled="true"] {
  -moz-image-region: rect(39px 167px 77px 126px) !important;
}

#reload-button {
  -moz-image-region: rect(78px 41px 116px 0);
}
  
#reload-button:hover {
  -moz-image-region: rect(78px 83px 116px 42px);
}

#reload-button:hover:active {
  -moz-image-region: rect(78px 125px 116px 84px);
}

#reload-button[disabled="true"] {
  -moz-image-region: rect(78px 167px 116px 126px) !important;
}

#stop-button {
  -moz-image-region: rect(117px 41px 155px 0);
} 

#stop-button:hover {
  -moz-image-region: rect(117px 83px 155px 42px);
} 

#stop-button:hover:active {
  -moz-image-region: rect(117px 125px 155px 84px);
} 

#stop-button[disabled="true"] {
  -moz-image-region: rect(117px 167px 155px 126px) !important;
} 

#print-button {
  list-style-image: url("chrome://communicator/skin/icons/btn1.gif");
  -moz-image-region: rect(0 49px 33px 0);
}

#print-button[buttonover="true"] {
  -moz-image-region: rect(0 99px 33px 50px);
}

#print-button[buttondown="true"] {
  -moz-image-region: rect(0 149px 33px 100px);
}

#print-button[disabled="true"] {
  -moz-image-region: rect(0 199px 33px 150px) !important;
}

#fullscreen-exit-button {
  list-style-image: none;
}

#fullscreen-exit-button > .toolbarbutton-text {
  display: -moz-box;
}

/* Hides text below the above buttons */
.toolbarbutton-1 > stack > .toolbarbutton-menubutton-button 
  > .toolbarbutton-text,
.toolbarbutton-1 > .toolbarbutton-text {
  display: none;
}

/* ::::: special menubutton dropmarkers ::::: */

/* ..... dropmarker box ..... */

#back-button > .toolbarbutton-menubutton-stack
    > .toolbarbutton-menubutton-dropmarker,
#forward-button > .toolbarbutton-menubutton-stack
    > .toolbarbutton-menubutton-dropmarker
{
  margin: 30px 0px 0px 34px;
}

#print-button > .toolbarbutton-menubutton-stack
    > .toolbarbutton-menubutton-dropmarker
{
  margin: 20px 0px 0px 40px;
}

#reload-button {
  margin-right: 3px; /* balance out extra dropmarker space  */
}

/* ::::: nav-bar - the navigator primary toolbar ::::: */

.toolbar-primary-icon {
  display: none;
}

.toolbar-primary-holder {
  -moz-box-align: start;
  background-image: url("chrome://communicator/skin/toolbar/prtb-bg-noline.gif");
}

#nav-bar-buttons {
  margin-left: 3px;
}

/* ::::: navbar-inner - the grooved area around the urlbar ::::: */

#nav-bar-inner {
  -moz-box-align: center;
  margin: 7px 0px 0px 5px;
  border: 2px solid;
  -moz-border-top-colors: #A2AFBD #EBF4FF;
  -moz-border-right-colors: #D1D9E0 #A2AFBD;
  -moz-border-bottom-colors: #CFD7DE #939EAA;
  -moz-border-left-colors: #9FABB9 #D2DAE1;
  -moz-border-radius: 3px;
  padding: 0px 3px;
  min-width: 0px;
}

/* ::::: urlbar - the url textbox ::::: */

#urlbar {
  margin: 2px 6px 2px 3px;
  border: 3px solid;
  -moz-border-top-colors: #A2AFBD #000000 #A7BACA;
  -moz-border-right-colors: #D2DAE1 #000000 #768C9F;
  -moz-border-bottom-colors: #D2DAE1 #000000 #768C9F;
  -moz-border-left-colors: #A5ACB5 #000000 #A7BACA;
  background: url("chrome://navigator/skin/toolbar/urlbar-mid.gif") #EDF5F7 bottom repeat-x;
}

/* ::::: page proxy icon ::::: */

#page-proxy-deck,
#page-proxy-button,
#page-proxy-favicon {
  width: 16px;
  height: 16px;
}

#page-proxy-deck {
  cursor: grab;
  margin-right: 4px;
}

#page-proxy-button {
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); 
} 

#page-proxy-favicon {
  list-style-image: none;
} 

#page-proxy-button[pageproxystate="invalid"] {
  cursor: default;
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item-dis.gif"); 
}

/* ::::: autocomplete ::::: */

.autocomplete-outlinerbody:-moz-outliner-cell-text(value) {
  padding-left: 15px;
}

.autocomplete-outlinerbody:-moz-outliner-cell-text(comment) {
  color: #555566;
}

.autocomplete-search-box {
  border-top: 2px groove #DDE3EB;
  background-color: #DDE3EB;
}

.autocomplete-result-popup[nomatch="true"] > .autocomplete-search-box {
  border-top: 1px solid #E4EAEF;
}

.autocomplete-search-engine {
  padding: 2px;
}

.autocomplete-search-engine[menuactive="true"] {
  background-color: #9499AC;
  color: #FFFFFF;
}

.autocomplete-search-engine-img {
  margin-right: 4px;
}

.autocomplete-history-dropmarker {
  margin: 0px 3px 0px 0px;
  list-style-image: url("chrome://navigator/skin/toolbar/ubhist-arrow.gif");
}

.autocomplete-history-dropmarker[open="true"] {
  list-style-image: url("chrome://navigator/skin/toolbar/ubhist-arrow-act.gif");
}

/* ::::: go and searchbuttons ::::: */

#go-button,
#search-button {
  margin: 0px 4px 0px 0px;
  min-width: 0px;
  font: message-box;
  font-weight: bold;
}

#search-button {
  list-style-image: url("chrome://communicator/skin/icons/search.gif");
}

/* ::::: navigator throbber ::::: */

#throbber-box {
  background: none; /* override bg used to cover toolbar line */
}

/* ::::: personal toolbar ::::: */

#PersonalToolbar {
  background: url("chrome://global/skin/toolbar/tb-mid.gif") #C7D0D9 repeat-x top;
}

#PersonalToolbar > toolbargrippy,
#PersonalToolbar > .toolbar-holder {
  border-top: 1px solid #CED6DD;
  border-right: 1px solid #95A0AD;
  border-bottom: 1px solid #95A0AD;
  border-left: 1px solid #DAE3ED;
}

#PersonalToolbar > toolbargrippy:hover:active {
  border-color: #67737E;
}

#home-button {
  list-style-image: url("chrome://communicator/skin/bookmarks/home.gif");
}

#home-button > .toolbarbutton-icon {
  width: 22px;
  height: 17px;
}

/* ::::: content area ::::: */

#content {
  border-bottom: 1px solid #C7D0D9;
}

#status-bar {
  border-top: none;
}
