Skip to content

Commit

Permalink
Add styles for private bookmarks
Browse files Browse the repository at this point in the history
Unfortunately text-decoration-color/style doesn't work with ::-moz-tree-cell-text()
(part 2 for #89)
  • Loading branch information
Infocatcher committed Aug 8, 2013
1 parent fe69013 commit b65c016
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -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\
Expand Down

0 comments on commit b65c016

Please sign in to comment.