@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

@-moz-document
  /* bookmarks sidebar */ url(chrome://browser/content/bookmarks/bookmarksPanel.xul),
  /* bookmarks manager */ url(chrome://browser/content/places/places.xul),
  /* history sidebar   */ url(chrome://browser/content/history/history-panel.xul),
  /* scrapbook sidebar */ url(chrome://scrapbook/content/scrapbook.xul)
     /* scrapbook is an extension: https://addons.mozilla.org/en-US/firefox/addon/427 */
  
/* a useful list of chrome URIs with explanations: 
   http://cow.neondragon.net/index.php/415-Fun-With-Firefox-Chrome-Urls */

{
/* with thanks to XUL Planet, especially
   http://www.xulplanet.com/tutorials/xultu/treestyle.html */


  /* change font to one that suits small text, if needed */
  treechildren::-moz-tree-cell-text  {
    font-family: "Segoe UI" /*"Tahoma", "Lucida Grande", sans-serif*/ !important;
  }

  /* hide search boxes on bookmarks and history */
/*
  label[value="Search:"], #search-box { display: none !important; }
*/
  /* hide search box on scrapbook */
/*
  #sbSearchToolbar { display: none !important; }
*/  

  /* hide scrapbook's sidebar's other toolbar */
/*
  #sbMainToolbar   { display: none !important; }
*/


  /* base style */
  treechildren::-moz-tree-cell,
  treechildren::-moz-tree-cell-text,
  treechildren::-moz-tree-twisty,
  treechildren::-moz-tree-image,
  treechildren::-moz-tree-row,
  treechildren::-moz-tree-indentation,
  treechildren::-moz-tree-column,
  treechildren::-moz-tree-line,
  treechildren::-moz-tree-separator/*,
  treechildren::-moz-tree-progressmeter,
  treechildren::-moz-tree-drop-feedback,
  treechildren::-moz-tree-checkbox*/
  {
    line-height: 1    !important;
    font-size  : inherit !important;

    padding    : 0    !important;
    margin     : 0    !important;
    border     : none !important;
    outline    : none !important;
/*    background : transparent !important;
*/
    list-style : none !important;

    height     : auto !important; width     : auto !important;
    min-height : 0    !important; min-width : 0    !important;
    max-height : none !important; max-width : none !important;
  }

  /* line art */
  treechildren::-moz-tree-line,
  treechildren::-moz-tree-separator  { border: 1px dotted !important; }
  treechildren::-moz-tree-separator  { border-width: 0 0 1px 0 !important; }

  /* colors (light scheme) */
  treechildren { background: #ffffff !important; }
  treechildren::-moz-tree-row(odd ) { background: #fbfbfb !important; }
  treechildren::-moz-tree-cell-text { color: black !important; }
  treechildren::-moz-tree-line,
  treechildren::-moz-tree-separator  { border-color: silver !important; }

  treechildren::-moz-tree-row(focus, selected, current),
  treechildren::-moz-tree-row(focus, selected, odd),
  treechildren::-moz-tree-row(focus, selected, even)
    { background: #ddefff !important; }
  treechildren::-moz-tree-cell-text(focus, selected, current) { color       : #44b !important; }
  treechildren::-moz-tree-separator(focus, selected, current) { border-color: #44b !important; }


  /* colors (dark scheme) */
/*
  treechildren { background: #2d2d2d !important; }
  treechildren::-moz-tree-row(odd ) { background: #202020 !important; }
  treechildren::-moz-tree-cell-text { color: #dedede !important; }
  treechildren::-moz-tree-line,
  treechildren::-moz-tree-separator  { border-color: #777 !important; }


  treechildren::-moz-tree-row(focus, selected, current),
  treechildren::-moz-tree-row(focus, selected, odd),
  treechildren::-moz-tree-row(focus, selected, even)
    { background: #44b !important; }
  treechildren::-moz-tree-cell-text(focus, selected, current) { color       : #ddefff !important; }
  treechildren::-moz-tree-separator(focus, selected, current) { border-color: #ddefff !important; }
*/


  /* smaller text */
/*
  treechildren::-moz-tree-cell-text { font-size: 80% !important; }
*/
  treechildren::-moz-tree-cell-text { font-size: 9px !important; }
  treechildren::-moz-tree-row       { height: 1em !important; }

  /* arrows next to expandable nodes */
  treechildren::-moz-tree-twisty
  {
    /* two 9x9 arrows */
    list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA\    ABIAAAAJBAMAAADN8WE8AAAALHRFWHRDcmVhdGlvbiBUaW1lAFdlZCAxNCBNYXIgMjA\    wNyAxNDo0NjozNiAtMDYwMD9sNxAAAAAHdElNRQfXAw4UAAKRseFUAAAACXBIWXMAAA\    7CAAAOwgEVKEqAAAAABGdBTUEAALGPC%2FxhBQAAAAlQTFRF985j%2F%2F%2F%2FAAA\    AVCMuXwAAAAF0Uk5TAEDm2GYAAAAwSURBVHjaY2AQYIABQThLCC4opMjAKAgEQJaSAB\    ADCZAYA6OSIkwdmADrZQQRMK0AY4ACQxxE83AAAAAASUVORK5CYII%3D") !important;

    width      : 9px   !important;
    min-height : 9px   !important;
    padding    : 0 1px !important;
  }
  treechildren::-moz-tree-twisty(closed) { -moz-image-region: rect(0 9px 9px 0  ) !important; }
  treechildren::-moz-tree-twisty(open  ) { -moz-image-region: rect(0 9px 9px 9px) !important; }

  /* parents */
  treechildren::-moz-tree-cell { width: 0 !important; }

  /* lines beside children */
  treechildren::-moz-tree-line { padding-right: 2px !important; }
  treechildren::-moz-tree-indentation { width: 8px !important; }

  /* icons (folders, favicons, default document icons) */
  treechildren::-moz-tree-image { width: 0 !important; }

} /* 20090804 */
