Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/shadowSwatch.css

Issue 2230183004: DevTools: Add shadow-editor swatch/icon before box-shadows and text-shadows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New image swatches.png Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/shadowSwatch.css
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/shadowSwatch.css b/third_party/WebKit/Source/devtools/front_end/ui/shadowSwatch.css
new file mode 100644
index 0000000000000000000000000000000000000000..3a4638a9639f03658cd1764cb179da45fb9940e7
--- /dev/null
+++ b/third_party/WebKit/Source/devtools/front_end/ui/shadowSwatch.css
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2016 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+:host {
+ white-space: nowrap;
+}
+
+.shadow-swatch {
+ position: relative;
+ margin-left: 1px;
+ margin-right: 2px;
+ width: 10px;
+ height: 10px;
+ top: 1px;
+ display: inline-block;
+ -webkit-user-select: none;
+ line-height: 10px;
+ -webkit-mask-image: url(Images/swatches.png);
+ -webkit-mask-size: 190px 10px;
+ -webkit-mask-position: -20px;
+ background-color: #9C27B0;
+}
+
+@media (-webkit-min-device-pixel-ratio: 1.5) {
+.shadow-swatch {
+ -webkit-mask-image: url(Images/swatches_2x.png);
+}
+} /* media */
+
+.shadow-swatch:hover {
+ background-color: #800080;
+}

Powered by Google App Engine
This is Rietveld 408576698