Skip to content

Commit

Permalink
Firefox: Added disabled style for toolbar button that grayscales it. …
Browse files Browse the repository at this point in the history
…(I believe that this is only necessary on Linux.)
  • Loading branch information
adam-p committed Mar 5, 2013
1 parent 3d21a5f commit 4343867
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/firefox/chrome/skin/toolbar.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#toolbarButton-markdown_here, #composeToolbarButton-markdown_here, #formatToolbarButton-markdown_here {
list-style-image: url("resource://markdown_here_common/images/icon24.png");
/* Disable grayscaling of icon */
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
}

#toolbarButton-markdown_here[disabled="true"],
#composeToolbarButton-markdown_here[disabled="true"],
#formatToolbarButton-markdown_here[disabled="true"] {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
}

toolbar[iconsize="small"] #toolbarButton-markdown_here,
Expand Down

0 comments on commit 4343867

Please sign in to comment.