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/html/icon.html"> | 3 <link rel="import" href="chrome://resources/html/icon.html"> |
4 <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/iron-icon/iron-icon.htm
l"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.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/shared_style.html"> | 7 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
8 <link rel="import" href="chrome://bookmarks/store_client.html"> | 8 <link rel="import" href="chrome://bookmarks/store_client.html"> |
9 | 9 |
10 <dom-module id="bookmarks-item"> | 10 <dom-module id="bookmarks-item"> |
11 <template> | 11 <template> |
12 <style include="shared-style"> | 12 <style include="shared-style"> |
13 :host { | 13 :host { |
14 -webkit-padding-start: 20px; | 14 -webkit-padding-start: 20px; |
15 -webkit-user-select: none; | 15 -webkit-user-select: none; |
16 align-items: center; | 16 align-items: center; |
17 cursor: pointer; | 17 cursor: pointer; |
18 display: flex; | 18 display: flex; |
19 flex-direction: row; | 19 flex-direction: row; |
20 height: 40px; | 20 height: 40px; |
21 position: relative; | 21 position: relative; |
22 } | 22 } |
23 | 23 |
24 :host([is-selected-item_]) { | 24 :host([is-selected-item_]) { |
25 background-color: rgb(225, 235, 253); | 25 background-color: var(--highlight-color); |
26 } | 26 } |
27 | 27 |
28 #website-title { | 28 #website-title { |
29 color: var(--primary-text-color); | 29 color: var(--primary-text-color); |
30 flex: 1; | 30 flex: 1; |
31 overflow: hidden; | 31 overflow: hidden; |
32 text-decoration: none; | 32 text-decoration: none; |
33 text-overflow: ellipsis; | 33 text-overflow: ellipsis; |
34 white-space: nowrap; | 34 white-space: nowrap; |
35 } | 35 } |
36 | 36 |
| 37 #icon-wrapper { |
| 38 -webkit-margin-end: 20px; |
| 39 color: var(--secondary-text-color); |
| 40 display: flex; |
| 41 height: 20px; |
| 42 width: 20px; |
| 43 } |
| 44 |
37 #icon { | 45 #icon { |
38 background-repeat: no-repeat; | 46 background-repeat: no-repeat; |
39 height: 16px; | 47 height: 16px; |
40 margin: 2px; | 48 margin: 2px; |
| 49 width: 16px; |
41 } | 50 } |
42 | 51 |
43 #icon-wrapper { | 52 button.more-vert-button { |
44 -webkit-margin-end: 20px; | |
45 height: 20px; | |
46 width: 20px; | |
47 } | |
48 | |
49 .more-vert-button { | |
50 -webkit-margin-end: 12px; | 53 -webkit-margin-end: 12px; |
51 } | 54 } |
52 | 55 </style> |
53 iron-icon { | |
54 --iron-icon-height: 20px; | |
55 --iron-icon-width: 20px; | |
56 color: var(--secondary-text-color); | |
57 } | |
58 </style> | |
59 <div id="icon-wrapper"> | 56 <div id="icon-wrapper"> |
60 <iron-icon id="folder-icon" icon="cr:folder" | 57 <iron-icon id="folder-icon" icon="cr:folder" hidden$="[[!isFolder_]]"> |
61 hidden$="[[!isFolder_]]"> | |
62 </iron-icon> | 58 </iron-icon> |
63 <div id="icon" hidden$="[[isFolder_]]"></div> | 59 <div id="icon" hidden$="[[isFolder_]]"></div> |
64 </div> | 60 </div> |
65 <div id="website-title"> | 61 <div id="website-title"> |
66 [[item_.title]] | 62 [[item_.title]] |
67 </div> | 63 </div> |
68 <button is="paper-icon-button-light" class="more-vert-button" | 64 <button is="paper-icon-button-light" class="more-vert-button" |
69 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_"> | 65 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_"> |
70 <div></div> | 66 <div></div> |
71 <div></div> | 67 <div></div> |
72 <div></div> | 68 <div></div> |
73 </button> | 69 </button> |
74 </template> | 70 </template> |
75 <script src="chrome://bookmarks/item.js"></script> | 71 <script src="chrome://bookmarks/item.js"></script> |
76 <dom-module> | 72 <dom-module> |
OLD | NEW |