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

Delta Between Two Patch Sets: 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
Left Patch Set: Removed outdated CSS rule Created Oct. 11, 2016, 9:21 a.m.
Right Patch Set: Addressed comments Created Oct. 12, 2016, 3:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « chrome/locale/en-US/filters.dtd ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #findbar-closebutton:hover 228 #findbar-closebutton:hover
229 { 229 {
230 -moz-image-region: rect(0px, 28px, 14px, 14px); 230 -moz-image-region: rect(0px, 28px, 14px, 14px);
231 } 231 }
232 232
233 #findbar-closebutton:active 233 #findbar-closebutton:active
234 { 234 {
235 -moz-image-region: rect(0px, 42px, 14px, 28px); 235 -moz-image-region: rect(0px, 42px, 14px, 28px);
236 } 236 }
237 237
238 #findbar-textbox[status="notFound"] 238 #findbar[data-status="notFound"] > #findbar-textbox
239 { 239 {
240 /* We cannot change background color because of -moz-appearance but a red */ 240 /* We cannot change background color because of -moz-appearance but a red */
241 /* shadow works. */ 241 /* shadow works. */
242 filter: drop-shadow(0 0 4px red); 242 box-shadow: 0 0 1.5px 1px red;
Thomas Greiner 2016/10/12 14:03:14 Detail: This looks quite strange due to the border
Wladimir Palant 2016/10/12 15:22:00 I considered just marking the field as invalid ins
Thomas Greiner 2016/10/12 17:18:10 It's a pity that we can't just mark it as invalid,
Wladimir Palant 2016/10/12 17:53:30 Or we simply set `-moz-appearance: none` or drop `
243 }
244
245 #findbar[data-status="notFound"] > #findbar-textbox[focused="true"]
246 {
247 box-shadow: 0 0 2px 2px rgba(255, 0, 0, 0.4);
243 } 248 }
244 249
245 #findbar[data-os="darwin"] > #findbar-case-sensitive[checked="true"] 250 #findbar[data-os="darwin"] > #findbar-case-sensitive[checked="true"]
246 { 251 {
247 /* Firefox on Mac doesn't indicate checked buttons, do it ourselves */ 252 /* Firefox on Mac doesn't indicate checked buttons, do it ourselves */
248 filter: brightness(70%); 253 filter: brightness(70%);
249 } 254 }
250 255
251 .findbar-status 256 .findbar-status
252 { 257 {
253 font-size: 80%; 258 font-size: 80%;
254 } 259 }
255 260
256 .findbar-status[hidden="true"] 261 #findbar:not([data-status="wrappedStart"]) #findbar-status-wrappedStart,
257 { 262 #findbar:not([data-status="wrappedEnd"]) #findbar-status-wrappedEnd,
258 /* Make sure these elements always occupy the necessary space */ 263 #findbar:not([data-status="notFound"]) #findbar-status-notFound
259 display: -moz-box; 264 {
Thomas Greiner 2016/10/12 14:03:14 Sounds like it behaves the same way as `flex="1"`
Wladimir Palant 2016/10/12 15:22:00 This is merely overriding display:none that hidden
260 visibility: hidden; 265 visibility: hidden;
261 } 266 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld