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

Unified Diff: chrome/browser/resources/md_bookmarks/shared_style.html

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: address comments, add test Created 3 years, 9 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: chrome/browser/resources/md_bookmarks/shared_style.html
diff --git a/chrome/browser/resources/md_bookmarks/shared_style.html b/chrome/browser/resources/md_bookmarks/shared_style.html
index da8836705639381499d5b1f68a415c11a4a92008..d4c315c832617ec89faa684ebf69c9d381653dea 100644
--- a/chrome/browser/resources/md_bookmarks/shared_style.html
+++ b/chrome/browser/resources/md_bookmarks/shared_style.html
@@ -32,6 +32,38 @@
height: 32px;
margin: 0;
}
+
+ .drag-above::before,
+ .drag-below::after {
+ background-clip: padding-box;
+ background-color: rgb(66, 133, 244);
tsergeant 2017/03/23 00:28:23 This is #4285F4, which is var(--google-blue-500) a
calamity 2017/03/23 06:12:34 Done.
+ border: 3px solid rgb(66, 133, 244);
+ border-bottom-color: transparent;
+ border-radius: 0;
+ border-top-color: transparent;
+ box-sizing: border-box;
+ content: '';
+ display: block;
+ height: 8px;
+ left: 0;
+ position: absolute;
+ right: 0;
+ z-index: 10;
+ }
+
+ .drag-above::before {
+ top: 0;
+ transform: translateY(-50%);
+ }
+
+ .drag-below::after {
+ bottom: 0;
+ transform: translateY(50%);
+ }
+
+ .drag-on {
+ background-color: rgba(66, 133, 244, 0.16);
+ }
</style>
</template>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698