Commit 12112116 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: allow editing custom color palette, move it out of experimental.

NOTRY=true

Review URL: https://codereview.chromium.org/1308563002

git-svn-id: svn://svn.chromium.org/blink/trunk@201008 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 76569929
......@@ -88,12 +88,12 @@
}
.swatch {
width: 16px;
height: 16px;
width: 24px;
height: 24px;
margin: 0;
position: absolute;
top: 148px;
left: 48px;
top: 144px;
left: 47px;
background-image: url(Images/checker.png);
border-radius: 16px;
}
......@@ -190,36 +190,38 @@
position: absolute;
top: 235px;
width: 100%;
padding-right: 24px;
padding: 6px 24px 6px 6px;
display: flex;
flex-wrap: wrap;
}
.spectrum-palette-color {
width: 12px;
height: 12px;
flex: 0 0 12px;
display: inline-block;
border-radius: 2px;
margin-left: 12px;
margin-top: 12px;
margin: 6px;
cursor: pointer;
}
.spectrum-palette-color.empty-color {
border: 1px solid #dadada;
}
.spectrum-palette > .spectrum-palette-color {
transition: transform 100ms cubic-bezier(0, 0, 0.2, 1);
border: 1px solid rgba(0, 0, 0, 0.1);
}
.spectrum-palette > .spectrum-palette-color.empty-color {
border-color: transparent;
}
.spectrum-palette > .spectrum-palette-color:not(.empty-color):hover {
transform: scale(1.15);
}
.spectrum-palette > .toolbar {
margin-left: 5px;
margin-top: 5px;
.add-color-toolbar {
position: absolute;
right: 29px;
bottom: 5px;
}
.spectrum-palette-switcher {
......
......@@ -126,7 +126,6 @@ WebInspector.Main.prototype = {
Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI themes");
Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox JavaScript frames on Timeline", true);
Runtime.experiments.register("colorContrastRatio", "Contrast ratio line in color picker", true);
Runtime.experiments.register("colorPalettes", "Color palettes");
Runtime.experiments.register("customObjectFormatters", "Custom object formatters", true);
Runtime.experiments.register("emptySourceMapAutoStepping", "Empty sourcemap auto-stepping");
Runtime.experiments.register("fileSystemInspection", "FileSystem inspection");
......
......@@ -13,8 +13,8 @@ WebInspector.Tooltip = function(doc)
this._shadowRoot.appendChild(WebInspector.Widget.createStyleElement("ui/tooltip.css"));
this._tooltipElement = this._shadowRoot.createChild("div", "tooltip");
doc.addEventListener("mousemove", this._mouseMove.bind(this), false);
doc.addEventListener("mousedown", this._hide.bind(this), false);
doc.addEventListener("mousemove", this._mouseMove.bind(this), true);
doc.addEventListener("mousedown", this._hide.bind(this), true);
}
WebInspector.Tooltip.Timing = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment