| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 | 2 |
| 3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 4 <link rel="import" href="chrome://resources/html/icon.html"> | 4 <link rel="import" href="chrome://resources/html/icon.html"> |
| 5 <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/iron-icon/iron-icon.htm
l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 7 <link rel="import" href="chrome://bookmarks/actions.html"> | 7 <link rel="import" href="chrome://bookmarks/actions.html"> |
| 8 <link rel="import" href="chrome://bookmarks/mouse_focus_behavior.html"> |
| 8 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 9 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| 9 <link rel="import" href="chrome://bookmarks/store_client.html"> | 10 <link rel="import" href="chrome://bookmarks/store_client.html"> |
| 10 | 11 |
| 11 <dom-module id="bookmarks-item"> | 12 <dom-module id="bookmarks-item"> |
| 12 <template> | 13 <template> |
| 13 <style include="shared-style"> | 14 <style include="shared-style"> |
| 14 :host { | 15 :host { |
| 15 display: block; | 16 display: block; |
| 16 flex-direction: row; | 17 flex-direction: row; |
| 17 position: relative; | 18 position: relative; |
| 18 } | 19 } |
| 19 | 20 |
| 20 #url { | 21 #url { |
| 21 -webkit-padding-start: 20px; | 22 -webkit-padding-start: 20px; |
| 22 -webkit-user-select: none; | 23 -webkit-user-select: none; |
| 23 align-items: center; | 24 align-items: center; |
| 24 color: inherit; | 25 color: inherit; |
| 25 display: flex; | 26 display: flex; |
| 26 height: 40px; | 27 height: 40px; |
| 27 text-decoration: none; | 28 text-decoration: none; |
| 28 } | 29 } |
| 29 | 30 |
| 30 :host([mouse-focus_]) { | |
| 31 outline: none; | |
| 32 } | |
| 33 | |
| 34 :host([is-selected-item_]) { | 31 :host([is-selected-item_]) { |
| 35 background-color: var(--highlight-color); | 32 background-color: var(--highlight-color); |
| 36 } | 33 } |
| 37 | 34 |
| 38 #website-title { | 35 #website-title { |
| 39 flex: 1; | 36 flex: 1; |
| 40 overflow: hidden; | 37 overflow: hidden; |
| 41 text-decoration: none; | 38 text-decoration: none; |
| 42 text-overflow: ellipsis; | 39 text-overflow: ellipsis; |
| 43 white-space: nowrap; | 40 white-space: nowrap; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 66 <div id="icon-wrapper"> | 63 <div id="icon-wrapper"> |
| 67 <iron-icon id="folder-icon" icon="cr:folder" hidden$="[[!isFolder_]]"> | 64 <iron-icon id="folder-icon" icon="cr:folder" hidden$="[[!isFolder_]]"> |
| 68 </iron-icon> | 65 </iron-icon> |
| 69 <div id="icon" hidden$="[[isFolder_]]"></div> | 66 <div id="icon" hidden$="[[isFolder_]]"></div> |
| 70 </div> | 67 </div> |
| 71 <div id="website-title"> | 68 <div id="website-title"> |
| 72 [[item_.title]] | 69 [[item_.title]] |
| 73 </div> | 70 </div> |
| 74 <button is="paper-icon-button-light" class="more-vert-button" | 71 <button is="paper-icon-button-light" class="more-vert-button" |
| 75 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_" | 72 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_" |
| 76 tabindex$="[[ironListTabIndex]]" on-focus="onItemBlur_"> | 73 tabindex$="[[ironListTabIndex]]" on-focus="clearMouseFocus"> |
| 77 <div></div> | 74 <div></div> |
| 78 <div></div> | 75 <div></div> |
| 79 <div></div> | 76 <div></div> |
| 80 </button> | 77 </button> |
| 81 </div> | 78 </div> |
| 82 </template> | 79 </template> |
| 83 <script src="chrome://bookmarks/item.js"></script> | 80 <script src="chrome://bookmarks/item.js"></script> |
| 84 <dom-module> | 81 <dom-module> |
| OLD | NEW |