From 1bd0f2057f65e2fff721cbff69f18debeeb43b18 Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Fri, 18 Aug 2000 06:13:32 +0000 Subject: [PATCH] 46613... --- .../communicator/bookmarks/bookmarks.css | 227 ++++++++++-------- .../bookmarks/resources/bm-panel.xul | 2 +- .../bookmarks/resources/bookmarks.xul | 2 +- 3 files changed, 128 insertions(+), 103 deletions(-) diff --git a/themes/classic/communicator/bookmarks/bookmarks.css b/themes/classic/communicator/bookmarks/bookmarks.css index f899df53238e..9a459ccb2dc4 100644 --- a/themes/classic/communicator/bookmarks/bookmarks.css +++ b/themes/classic/communicator/bookmarks/bookmarks.css @@ -18,126 +18,151 @@ * Rights Reserved. * * Contributor(s): + * Ben Goodger */ -#homebutton - { - list-style-image : url("chrome://communicator/skin/bookmarks/home.gif"); - } +/** + * XXX - need to split tree rules out into their own file to + * be included by bm window/panel to help with startup time + * and bloat. + **/ + +/** + * Home button + **/ + #homebutton + { + list-style-image : url("chrome://communicator/skin/bookmarks/home.gif"); + } + + #homebutton:hover + { + list-style-image : url("chrome://communicator/skin/bookmarks/home-hover.gif"); + } + + #homebutton:hover:active + { + list-style-image : url("chrome://communicator/skin/bookmarks/home-active.gif"); + } + +/** + * Personal toolbar items + **/ + .bookmarkitem + { + list-style-image : url("chrome://communicator/skin/bookmarks/location.gif"); + } -#homebutton:hover - { - list-style-image : url("chrome://communicator/skin/bookmarks/home-hover.gif"); - } - -#homebutton:hover:active - { - list-style-image : url("chrome://communicator/skin/bookmarks/home-active.gif"); - } + .bookmarkfolder + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); + } + .bookmarkfolder > .menubutton-toolbar-single-internal-box > .menubutton-toolbar-single-dropmarker + { + display : none; + } + + .bookmarkfolder[open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); + } -.bookmarkitem - { - list-style-image : url("chrome://communicator/skin/bookmarks/location.gif"); - } +/** + * Bookmarks tree items + **/ + .treecell-bookmark + { + list-style-image : inherit; + } -.bookmarkfolder - { - list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); - } + .treeitem-bookmark + { + list-style-image : url("chrome://communicator/skin/bookmarks/location.gif"); + } + + .treeitem-bookmark[container="true"][open="true"][loading="true"] + { + list-style-image : url("resource:/res/rdf/loading.gif") ! important ; + } -.bookmarkfolder > .menubutton-toolbar-single-internal-box > .menubutton-toolbar-single-dropmarker - { - display: none; - } - -.bookmarkfolder[open="true"] - { - list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); - } + .treeitem-bookmark[status="new"] + { + list-style-image : url("resource:/res/rdf/loading.gif") ! important ; + } -treeitem[container="true"][open="true"][loading="true"] > treerow > .treecell-bookmark -{ - list-style-image: url("resource:/res/rdf/loading.gif") ! important ; -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#Folder"], + .treeitem-bookmark[container="true"][open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); + } -treeitem[status="new"] > treerow > .treecell-bookmark -{ - list-style-image: url("resource:/res/rdf/loading.gif") ! important ; -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#Folder"][open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#Folder"] > treerow > .treecell-bookmark, -treeitem[container="true"][open="true"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); -} + .treeitem-bookmark[container="true"][open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#Folder"][open="true"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); + } -treeitem[container="true"][open="true"] > treerow > .treecell-bookmark { - list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"][open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#BookmarkSeparator"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/location.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"][open="true"] > > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#IEFavorite"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/iefavorite.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#BookmarkSeparator"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/location.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#Bookmark"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/location.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#IEFavorite"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/iefavorite.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"][open="true"] + { + list-style-image : url("resource:/res/rdf/folder-open.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#Bookmark"] > treerow > .treecell-bookmark -{ - list-style-image: url("chrome://communicator/skin/bookmarks/location.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"] + { + list-style-image : url("resource:/res/rdf/folder-closed.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"][open="true"] > treerow > .treecell-bookmark -{ - list-style-image: url("resource:/res/rdf/folder-open.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#FileSystemObject"] + { + list-style-image : url("resource:/res/rdf/article.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"] > treerow > .treecell-bookmark -{ - list-style-image: url("resource:/res/rdf/folder-closed.gif"); -} + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#IEFavoriteFolder"], + .treeitem-bookmark[type="http://home.netscape.com/NC-rdf#IEFavoriteFolder"][open="true"] + { + list-style-image : url("chrome://communicator/skin/bookmarks/iefolder.gif"); + } -treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"] > treerow > .treecell-bookmark -{ - list-style-image: url("resource:/res/rdf/article.gif"); -} +/** + * Bookmarks tree + **/ + .bookmarks-panel-tree, .bookmarks-panel-tree > .tree-container-treerows + { + border : none; + } -treeitem > treerow > .treecell-bookmark { - list-style-image:url("chrome://communicator/skin/bookmarks/location.gif"); -} - -.bookmarks-panel-tree, .bookmarks-panel-tree > .tree-container-treerows - { - border : none; - } - -treeitem[type="http://home.netscape.com/NC-rdf#IEFavoriteFolder"] > treerow > .treecell-bookmark, -treeitem[type="http://home.netscape.com/NC-rdf#IEFavoriteFolder"][open="true"] > treerow > .treecell-bookmark - { - list-style-image : url("chrome://communicator/skin/bookmarks/iefolder.gif"); - } - -#bookmarksTree - { - border-top : none; - } \ No newline at end of file + #bookmarksTree + { + border-top : none; + } \ No newline at end of file diff --git a/xpfe/components/bookmarks/resources/bm-panel.xul b/xpfe/components/bookmarks/resources/bm-panel.xul index ca028d17a418..54b9d5ded800 100644 --- a/xpfe/components/bookmarks/resources/bm-panel.xul +++ b/xpfe/components/bookmarks/resources/bm-panel.xul @@ -71,7 +71,7 @@ - diff --git a/xpfe/components/bookmarks/resources/bookmarks.xul b/xpfe/components/bookmarks/resources/bookmarks.xul index 82e6d5439bb4..b83e9dad243f 100644 --- a/xpfe/components/bookmarks/resources/bookmarks.xul +++ b/xpfe/components/bookmarks/resources/bookmarks.xul @@ -219,7 +219,7 @@ -