OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
6 <link rel="import" href="chrome://bookmarks/actions.html"> | 6 <link rel="import" href="chrome://bookmarks/actions.html"> |
7 <link rel="import" href="chrome://bookmarks/icons.html"> | 7 <link rel="import" href="chrome://bookmarks/icons.html"> |
8 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 8 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
9 <link rel="import" href="chrome://bookmarks/store_client.html"> | 9 <link rel="import" href="chrome://bookmarks/store_client.html"> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 overflow: hidden; | 29 overflow: hidden; |
30 text-overflow: ellipsis; | 30 text-overflow: ellipsis; |
31 white-space: nowrap; | 31 white-space: nowrap; |
32 } | 32 } |
33 | 33 |
34 #container { | 34 #container { |
35 -webkit-padding-start: | 35 -webkit-padding-start: |
36 calc(var(--node-depth, 0) * var(--padding-start-per-depth)); | 36 calc(var(--node-depth, 0) * var(--padding-start-per-depth)); |
37 cursor: pointer; | 37 cursor: pointer; |
38 height: 40px; | 38 height: 40px; |
| 39 position: relative; |
39 } | 40 } |
40 | 41 |
41 #folder-label { | 42 #folder-label { |
42 -webkit-padding-end: 8px; | 43 -webkit-padding-end: 8px; |
43 color: var(--secondary-text-color); | 44 color: var(--secondary-text-color); |
44 flex-grow: 1; | 45 flex-grow: 1; |
45 overflow: hidden; | 46 overflow: hidden; |
46 } | 47 } |
47 | 48 |
48 :host([is-selected-folder_]) .menu-label, | 49 :host([is-selected-folder_]) .menu-label, |
(...skipping 23 matching lines...) Expand all Loading... |
72 | 73 |
73 #arrow[is-open] { | 74 #arrow[is-open] { |
74 transform: initial; | 75 transform: initial; |
75 } | 76 } |
76 | 77 |
77 [no-children] { | 78 [no-children] { |
78 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ | 79 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ |
79 } | 80 } |
80 </style> | 81 </style> |
81 | 82 |
82 <div id="container" class="v-centered" on-tap="selectFolder_"> | 83 <div id="container" class="v-centered" on-tap="selectFolder_" |
| 84 draggable="[[!isRootFolder_(depth)]]"> |
83 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> | 85 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> |
84 <paper-icon-button id="arrow" icon="cr:arrow-drop-down" | 86 <paper-icon-button id="arrow" icon="cr:arrow-drop-down" |
85 is-open$="[[!isClosed_]]" on-tap="toggleFolder_"> | 87 is-open$="[[!isClosed_]]" on-tap="toggleFolder_"> |
86 </paper-icon-button> | 88 </paper-icon-button> |
87 </template> | 89 </template> |
88 <div id="folder-label" class="v-centered"> | 90 <div id="folder-label" class="v-centered"> |
89 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" | 91 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" |
90 no-children$="[[!hasChildFolder_(item_.children)]]"> | 92 no-children$="[[!hasChildFolder_(item_.children)]]"> |
91 </iron-icon> | 93 </iron-icon> |
92 <div class="menu-label">[[item_.title]]</div> | 94 <div class="menu-label">[[item_.title]]</div> |
93 </div> | 95 </div> |
94 </div> | 96 </div> |
95 <div id="descendants" hidden$="[[isClosed_]]"> | 97 <div id="descendants" hidden$="[[isClosed_]]"> |
96 <template is="dom-repeat" | 98 <template is="dom-repeat" |
97 items="[[item_.children]]" | 99 items="[[item_.children]]" |
98 as="child" | 100 as="child" |
99 filter="isFolder_"> | 101 filter="isFolder_"> |
100 <bookmarks-folder-node item-id="[[child]]" | 102 <bookmarks-folder-node item-id="[[child]]" |
101 depth="[[getChildDepth_(depth)]]"> | 103 depth="[[getChildDepth_(depth)]]"> |
102 </bookmarks-folder-node> | 104 </bookmarks-folder-node> |
103 </template> | 105 </template> |
104 </div> | 106 </div> |
105 </template> | 107 </template> |
106 <script src="chrome://bookmarks/folder_node.js"></script> | 108 <script src="chrome://bookmarks/folder_node.js"></script> |
107 </dom-module> | 109 </dom-module> |
OLD | NEW |