зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1422257: Make FinderHighlighter not use -moz-border-*-colors. r=Gijs
I was going to use box-shadow to make the same effect we have now, but I got into the intersection logic and I wasn't very excited about rewriting it in terms of shadow offsets, so came up with this, which IMO looks equally good / better. MozReview-Commit-ID: 19xX2zh2tzK --HG-- extra : rebase_source : 371266623aefd1af27e2c4a21cf792cf3fd3ecf4
This commit is contained in:
Родитель
da2beafe7e
Коммит
8aea8ade34
|
@ -41,19 +41,15 @@ const kRGBRE = /^rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*/i;
|
|||
const kModalIdPrefix = "cedee4d0-74c5-4f2d-ab43-4d37c0f9d463";
|
||||
const kModalOutlineId = kModalIdPrefix + "-findbar-modalHighlight-outline";
|
||||
const kOutlineBoxColor = "255,197,53";
|
||||
const kOutlineBoxBorderSize = 2;
|
||||
const kOutlineBoxBorderRadius = 3;
|
||||
const kOutlineBoxBorderSize = 1;
|
||||
const kOutlineBoxBorderRadius = 2;
|
||||
const kModalStyles = {
|
||||
outlineNode: [
|
||||
["background-color", `rgb(${kOutlineBoxColor})`],
|
||||
["background-clip", "padding-box"],
|
||||
["border", `${kOutlineBoxBorderSize}px solid`],
|
||||
["-moz-border-top-colors", `rgba(${kOutlineBoxColor},.1) rgba(${kOutlineBoxColor},.4) rgba(${kOutlineBoxColor},.7)`],
|
||||
["-moz-border-right-colors", `rgba(${kOutlineBoxColor},.1) rgba(${kOutlineBoxColor},.4) rgba(${kOutlineBoxColor},.7)`],
|
||||
["-moz-border-bottom-colors", `rgba(${kOutlineBoxColor},.1) rgba(${kOutlineBoxColor},.4) rgba(${kOutlineBoxColor},.7)`],
|
||||
["-moz-border-left-colors", `rgba(${kOutlineBoxColor},.1) rgba(${kOutlineBoxColor},.4) rgba(${kOutlineBoxColor},.7)`],
|
||||
["border", `${kOutlineBoxBorderSize}px solid rgba(${kOutlineBoxColor},.7)`],
|
||||
["border-radius", `${kOutlineBoxBorderRadius}px`],
|
||||
["box-shadow", `0 ${kOutlineBoxBorderSize}px 0 0 rgba(0,0,0,.1)`],
|
||||
["box-shadow", `0 2px 0 0 rgba(0,0,0,.1)`],
|
||||
["color", "#000"],
|
||||
["display", "-moz-box"],
|
||||
["margin", `-${kOutlineBoxBorderSize}px 0 0 -${kOutlineBoxBorderSize}px !important`],
|
||||
|
|
Загрузка…
Ссылка в новой задаче