Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/skin/filters.css

Issue 29356477: Issue 4510 - Filter preferences: replace the built-in findbar widget by our own look-alike (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Addressed comments Created Oct. 12, 2016, 3:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/locale/en-US/filters.dtd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/skin/filters.css
===================================================================
--- a/chrome/skin/filters.css
+++ b/chrome/skin/filters.css
@@ -212,12 +212,55 @@ treechildren::-moz-tree-image(col-enable
-moz-image-region: rect(0px 13px 13px 0px);
}
treechildren::-moz-tree-image(col-slow, slow-true)
{
list-style-image: url(slow.png);
}
-.findbar-highlight
+/* Findbar */
+
+#findbar-closebutton
{
- display: none;
+ list-style-image: url(close.png);
+ -moz-image-region: rect(0px, 14px, 14px, 0px);
}
+
+#findbar-closebutton:hover
+{
+ -moz-image-region: rect(0px, 28px, 14px, 14px);
+}
+
+#findbar-closebutton:active
+{
+ -moz-image-region: rect(0px, 42px, 14px, 28px);
+}
+
+#findbar[data-status="notFound"] > #findbar-textbox
+{
+ /* We cannot change background color because of -moz-appearance but a red */
+ /* shadow works. */
+ box-shadow: 0 0 1.5px 1px red;
+}
+
+#findbar[data-status="notFound"] > #findbar-textbox[focused="true"]
+{
+ box-shadow: 0 0 2px 2px rgba(255, 0, 0, 0.4);
+}
+
+#findbar[data-os="darwin"] > #findbar-case-sensitive[checked="true"]
+{
+ /* Firefox on Mac doesn't indicate checked buttons, do it ourselves */
+ filter: brightness(70%);
+}
+
+.findbar-status
+{
+ font-size: 80%;
+}
+
+#findbar:not([data-status="wrappedStart"]) #findbar-status-wrappedStart,
+#findbar:not([data-status="wrappedEnd"]) #findbar-status-wrappedEnd,
+#findbar:not([data-status="notFound"]) #findbar-status-notFound
+{
+ visibility: hidden;
+}
« no previous file with comments | « chrome/locale/en-US/filters.dtd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld