From b65c016ff0c8ab1f884905a4ef85b8f2b4196510 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Thu, 8 Aug 2013 22:33:44 +0400 Subject: [PATCH] Add styles for private bookmarks Unfortunately text-decoration-color/style doesn't work with ::-moz-tree-cell-text() (part 2 for #89) --- bootstrap.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bootstrap.js b/bootstrap.js index bb485ac..378826f 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -2692,7 +2692,8 @@ var windowsObserver = { var cssStr = '\ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");\n\ @-moz-document url("' + document.documentURI + '") {\n\ - .tabbrowser-tab[' + this.privateAttr + '] {\n\ + .tabbrowser-tab[' + this.privateAttr + '],\n\ + .bookmark-item[scheme="private"] {\n\ text-decoration: underline !important;\n\ ' + prefix + 'text-decoration-color: -moz-nativehyperlinktext !important;\n\ ' + prefix + 'text-decoration-style: dashed !important;\n\ @@ -2710,6 +2711,15 @@ var windowsObserver = { margin: 1px;\n\ }\n\ }\n\ + @-moz-document url("chrome://browser/content/bookmarks/bookmarksPanel.xul"),\n\ + url("chrome://browser/content/places/places.xul"),\n\ + url("chrome://communicator/content/bookmarks/bm-panel.xul"),\n\ + url("chrome://communicator/content/bookmarks/bookmarksManager.xul") {\n\ + treechildren::-moz-tree-cell-text(private) {\n\ + border-bottom: 1px dashed -moz-nativehyperlinktext !important;\n\ + margin-bottom: 1px !important;\n\ + }\n\ + }\n\ @-moz-document url("' + document.documentURI + '"),\n\ url("chrome://global/content/customizeToolbar.xul") {\n\ #' + this.toolbarButtonId + ' {\n\