/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla 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/MPL/
 *
 * 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)
 *   Kevin Gerich (webmail@kmgerich.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 MPL, 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 MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

@import url("chrome://global/skin/");
@import url("chrome://browser/skin/browser_flock.css");
@import url("chrome://browser/skin/tabs.css");

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

#toolbar-menubar {
	display: none;
}

#main-window {
	-moz-appearance: none;
}

#searchbar[empty="true"] .searchbar-textbox {
  color: GrayText;
}
	
/* ::::: bookmark buttons ::::: */

.bookmark-item[container] {
  list-style-image: url("chrome://global/skin/tree/folder.png");
}

toolbarbutton.bookmark-item:hover
{
  background:url("chrome://browser/skin/bookmark-hover-left.png") no-repeat left center;
  margin-top: 1px;
}

toolbarbutton.bookmark-item:hover:active, toolbarbutton.bookmark-item[open="true"] {
  background:url("chrome://browser/skin/bookmark-open-left.png") no-repeat left center;
  margin-top: 1px;
}

toolbarbutton.bookmark-item > label {
  padding-left: 2px;
}

toolbarbutton.bookmark-item:not([container]) > .toolbarbutton-text {
  padding-right: 7px;
}

toolbarbutton.bookmark-item:not([container]):hover > .toolbarbutton-text,
toolbarbutton.bookmark-item[container]:not([open]):hover > .toolbarbutton-menu-dropmarker,
#find-next:not([disabled]):hover > .toolbarbutton-text, 
#find-previous:not([disabled]):hover > .toolbarbutton-text,
#highlight:not([disabled]):hover > .toolbarbutton-text
{
  background: url("chrome://browser/skin/bookmark-hover-right.png") no-repeat right center;
  color: #fff;
}

#find-next:not([disabled]):hover, 
#find-previous:not([disabled]):hover,
#highlight:not([disabled]):hover
{
  background:url("chrome://browser/skin/bookmark-hover-left.png") no-repeat left center;
}

toolbarbutton.bookmark-item[container]:hover > .toolbarbutton-text,
#FindToolbar > toolbarbutton:not([disabled]):hover > .toolbarbutton-icon 
{
  background: url("chrome://browser/skin/bookmark-hover-mid.png") repeat-x;
  color: #fff;
}

toolbarbutton.bookmark-item:not([container]):hover:active  > .toolbarbutton-text,
toolbarbutton.bookmark-item[open] > .toolbarbutton-menu-dropmarker,
toolbarbutton.bookmark-item[container]:hover:active > .toolbarbutton-menu-dropmarker 
{
  background: url("chrome://browser/skin/bookmark-open-right.png") no-repeat right center;
}

toolbarbutton.bookmark-item[container]:hover:active  > .toolbarbutton-text,
toolbarbutton.bookmark-item[container][open="true"] > .toolbarbutton-text 
{
  background: url("chrome://browser/skin/bookmark-open-mid.png") repeat-x !important;
  color: #fff;
}

toolbarbutton.bookmark-item[type=menu] {
  padding-left: 7px;
}

toolbarbutton.bookmark-item[type=menu] > .toolbarbutton-menu-dropmarker {
  padding-right: 7px;
}

toolbarbutton.bookmark-item {
  margin: 0px;
  padding: 2px 1px 2px 8px;
  min-width: 0;
  max-width: 13em;
  font-weight: bold;
  color: #565656;
  border: none !important;
}

toolbarbutton.bookmark-item-microsummarized {
  max-width: 20em;
}

.bookmark-item > .toolbarbutton-icon {
/*
	margin: 0px;
  display: none !important;
*/
  width: 16px;
  height: 16px;
  padding: 0px;
}

.bookmark-item[container]:hover > .toolbarbutton-icon,
.bookmark-item:hover > .toolbarbutton-icon
{
  background:url("chrome://browser/skin/bookmark-hover-mid.png") repeat-x !important;
}

.bookmark-item[container]:hover:active > .toolbarbutton-icon,
.bookmark-item[container][open="true"] > .toolbarbutton-icon,
.bookmark-item:not([container]):hover:active  > .toolbarbutton-icon
{
  background:url("chrome://browser/skin/bookmark-open-mid.png") repeat-x !important;
}

toolbarbutton.bookmark-item .toolbarbutton-text {
  font-size: 100% !important; 
}

/* Prevent [mode="icons"] from hiding the label */
.bookmark-item > .toolbarbutton-text {
  display: -moz-box !important;
  height: 16px !important;
  padding-top: 1px;
}

/* Image locations for these toolbar icons are overridden in places/browser-places.css in Places-enabled builds.
   Those styles can be merged into these once the pre-Places bookmark system is no longer needed. */
.bookmark-item > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/folderarrow.png");
height: 16px !important;
padding: 5px 5px 4px 3px;
}

.bookmark-item:hover > .toolbarbutton-menu-dropmarker, .bookmark-item[open] > .toolbarbutton-menu-dropmarker  {
list-style-image: url("chrome://browser/skin/bookmarks/folderarrow-hover.png");
}

.bookmark-item[livemark] > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/livemark-folder.png");
padding: 4px 4px 3px 2px;
}

.bookmark-item[livemark]:hover > .toolbarbutton-menu-dropmarker, .bookmark-item[livemark][open] > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/livemark-folder-hover.png");
}

.bookmark-item[livemark] .menuitem-iconic {
list-style-image: url("chrome://browser/skin/bookmarks/livemark-item.png");
}

.toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
  background: url("chrome://browser/skin/bookmarks/Toolbar-bookmarks.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;
}

%ifdef MOZ_PLACES
toolbarpaletteitem[place="toolbar"] .places-toolbar-items {
  display: none;
}
%endif

/* ::::: bookmark menus ::::: */

.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;
}
/* ::::: primary toolbar buttons ::::: */

.toolbarbutton-1 {
  min-width: 0px;
  list-style-image: url("chrome://browser/skin/Toolbar.png");
  -moz-box-orient: vertical;
}

.toolbarbutton-text {
        margin: 0px;
	padding: 0px;
}

.toolbarbutton-menubutton-stack {
  margin: 0px !important;
  padding: 0px;
  -moz-box-orient: horizontal;
}


.toolbarbutton-menubutton-button {
  margin: 0px !important;
  padding: 0px !important;
}

.toolbarbutton-menubutton-stack > .toolbarbutton-menubutton-button {
  -moz-box-orient: vertical;
}
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: 0px !important;
  display: -moz-box;
}



/* ::::: 24px primary toolbar buttons ::::: */

/* these styles can be found in browser_flock.css */

/* ::::: 16px primary toolbar buttons ::::: */



/* ::::: fullscreen window controls ::::: */

#window-controls {
  -moz-box-align: center;
  padding: 0 2px 0 4px;
}

#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: 5px 4px 5px 4px;
  padding: 0px;
  font: icon !important;
}


#urlbar[level="high"] > .autocomplete-textbox-container,
#urlbar[level="low"] > .autocomplete-textbox-container
 {
  /*background: url("chrome://browser/skin/Secure-background.gif") #FFFED8 repeat-x;*/
 /* color: black !important;*/
}

#urlbar[level="high"] > .autocomplete-history-dropmarker,
#urlbar[level="low"] > .autocomplete-history-dropmarker
 {
 /*  background: url("chrome://browser/skin/Secure-background.gif") #FFFED8 repeat-x;*/
}

#urlbar[level="high"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure-urlbar.png");
}
#urlbar[level="low"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure-urlbar.png");
}
#urlbar[level="broken"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure-urlbar-broken.png");
}


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

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

#page-proxy-deck {
  cursor: -moz-grab;
}

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

#page-proxy-favicon:not([src]) {
  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-item.png");
}

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

#page-proxy-button[pageproxystate="invalid"] {
  cursor: default;
  opacity: 0.5;
}


statusbarpanel#statusbar-display {
  padding-left: 0;
}

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

.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
  color: #555566;
}

.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), 
.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) 
{
  color: GrayText;
  font-size: smaller;
}

.autocomplete-treebody::-moz-tree-cell(suggesthint) {
  border-top: 1px solid GrayText;
}

/* ::::: 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;
}

#go-button:hover:active {
  -moz-image-region: rect(0px, 40px, 20px, 20px);
}

#go-button[disabled="true"] {
  -moz-image-region: rect(0px, 60px, 20px, 40px);
}

#go-button > .button-box > .button-text {
  margin-left: 5px !important;
}

#go-button > .button-box {
  border: none;
}

sidebarheader {
	border-bottom: 1px solid #A3A3A3;
        background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
}

#sidebar-box {
  -moz-appearance: dialog;
}

#sidebar-splitter {
	 border-right: 1px solid #8e8e8e;
         border-left: 1px solid #bebebe;
         background-color: #ececec;
} 

#sidebar-title {
  font: icon;
  color: #000;
}

#sidebar-throbber[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.gif");
}	

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

#security-button {
  display: none;
  -moz-box-direction: reverse;
}

#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/Popup-blocked.png");
  padding: 0px 3px 0px 3px;
}

#feed-button, #feed-button > .button-box,
#feed-button:hover:active > .button-box {
  padding: 0px;
  margin: 0px;
  border: 0px; 
  background-color: transparent;
}

#feed-button .button-menu-dropmarker,
#feed-button .button-text {
  display: none;
}

#feed-button {
  -moz-binding: url("chrome://global/content/bindings/button.xml#menu");
  -moz-appearance: none; 
  min-width: 0px; 
  margin-right: 1px !important;
}

#feed-button[feeds] {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
}
#feed-button[chromedir="rtl"][feeds] {
  list-style-image: url("chrome://browser/skin/page-livemarks-rtl.png");
}

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

#navigator-throbber {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  -moz-box-pack: center;
  margin: 0px 1px 0px 1px !important;
  border: none !important;
  padding: 0px !important;
  min-width: 0;
  background-color: transparent;
  list-style-image: url("chrome://browser/skin/navBarThrobberRest.png");
  padding: 8px !important;
  
}

#navigator-throbber[busy="true"] {
  list-style-image: url("chrome://browser/skin/navBarThrobber.gif");
}

toolbar[iconsize="small"] #navigator-throbber,
toolbar[mode="text"] #navigator-throbber {
  list-style-image: url("chrome://browser/skin/navBarThrobberRest.png");
  padding: 4px !important;
}

toolbar[iconsize="small"] #navigator-throbber[busy="true"],
toolbar[mode="text"] #navigator-throbber[busy="true"] {
  list-style-image: url("chrome://browser/skin/navBarThrobber.gif");
}


toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/icons/chevron.png") !important;
}

toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
  display: none;
}

.bookmark-item {
	  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-item.png");
}

.tabs-left {
	display: none !important;
}

/* ::::: close button ::::: */

/*
 this style is done in flock_common/tabs.css)
.tabs-closebutton {
  padding-right: 4px;
  list-style-image: url("chrome://global/skin/icons/closetab.png") !important;
  list-style-image: none;
  border: none;
}

.tabbar-newtab-button {
  padding-bottom: 2px !important;
  border: 1px solid #ff0000;
}
.tabs-closebutton:hover > .toolbarbutton-icon {
	background-image: none !important;
}

.tabs-closebutton:hover:active {
	list-style-image: url("chrome://global/skin/icons/closetab-active.png") !important;
}

*/
tabpanels.plain {
	background-color: #fff !important;
}

%ifdef MOZ_PLACES
#places-bookmark {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
}

#places-subscribe {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
  opacity: 1.0;
}

#places-subscribe[disabled="true"] {
  opacity: 0.3;
}

#bookmarksBarShowPlaces {
  list-style-image: url("chrome://browser/skin/places/placesIcon.png");
}

/* Personal toolbar */
.toolbar-drop-indicator {
  height: 16px;
  width: 5px;
  margin-bottom: -8px;
  position: relative;
  background: url('chrome://browser/skin/places/toolbarDropMarker.png') 50% 50% no-repeat;
}

.toolbar-drop-indicator-bar {
  display: none;
  height: 16px;
  margin-bottom: -16px;
  margin-left: 4px;
  position: relative;
}

.toolbar-drop-indicator-bar[dragging="true"] {
  display: -moz-box;
}

toolbarbutton.bookmark-item[dragover="true"][open="true"] {
  -moz-appearance: none;
  background: Highlight !important;
  color: HighlightText !important;
  list-style-image: url('chrome://browser/skin/places/folderDragOver.png') !important;
  -moz-image-region: rect(0px, 16px, 16px, 0px) !important;
}

.bookmark-item[dragover-into="true"] {
  background: Highlight !important;
  color: HighlightText !important;
}

.bookmark-item[dragover-top="true"] {
  -moz-border-top-colors: #000000;
}

.bookmark-item[dragover-bottom="true"] {
  -moz-border-bottom-colors: #000000;
}
%endif

.tabbar-newtab-button {
  margin: 0px 0px 2px 0px;
}

.tabbrowser-tab > .tab-close-button {
  margin-left: 0px;  margin-right: 0px;
}
