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

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

Issue 2758703002: [WIP] MD Bookmarks Drag and Drop. (Closed)
Patch Set: 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/folder_node.html
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.html b/chrome/browser/resources/md_bookmarks/folder_node.html
index 997da21c99d0f0b04cc56d7ab7467f072401e0c7..539150485b242d1e92b1b81700ff60cfa1443600 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.html
+++ b/chrome/browser/resources/md_bookmarks/folder_node.html
@@ -14,6 +14,7 @@
:host {
--padding-start-per-depth: 36px;
display: block;
+ position: relative;
}
.v-centered {
@@ -38,6 +39,10 @@
height: 40px;
}
+ :host(.drag-on) #container {
+ background-color: rgba(66, 133, 244, 0.16);
+ }
+
#folder-label {
-webkit-padding-end: 8px;
color: var(--secondary-text-color);
@@ -79,7 +84,8 @@
}
</style>
- <div id="container" class="v-centered" on-tap="selectFolder_">
+ <div id="container" class="v-centered" on-tap="selectFolder_"
+ draggable="[[!isRootFolder_(depth)]]">
<template is="dom-if" if="[[hasChildFolder_(item_.children)]]">
<paper-icon-button id="arrow" icon="cr:arrow-drop-down"
is-open$="[[!isClosed_]]" on-tap="toggleFolder_">
« no previous file with comments | « chrome/browser/resources/md_bookmarks/dnd_manager.js ('k') | chrome/browser/resources/md_bookmarks/folder_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698