Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> | |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> | |
| 5 <link rel="import" href="chrome://bookmarks/shared_style.html"> | |
| 6 <link rel="stylesheet" href="chrome://resources/css/md_colors.css"> | |
| 7 | |
| 8 <dom-module id="bookmarks-toolbar"> | |
| 9 <template> | |
| 10 <style include="shared-style"> | |
| 11 :host { | |
| 12 width: 100%; | |
|
tsergeant
2016/12/22 04:33:02
This shouldn't be necessary.
angelayang
2016/12/28 00:49:38
Done.
| |
| 13 } | |
| 14 | |
| 15 button.more-actions { | |
| 16 -webkit-margin-end: 12px; | |
|
tsergeant
2016/12/22 04:33:02
Change this to 4px.
When you compare Bookmarks an
angelayang
2016/12/28 00:49:38
Done.
| |
| 17 } | |
| 18 | |
| 19 button.more-vert-button div { | |
| 20 border-color: white; | |
| 21 } | |
| 22 | |
| 23 cr-toolbar { | |
| 24 align-items: center; | |
|
tsergeant
2016/12/22 04:33:02
Delete the align-items and display lines. I think
angelayang
2016/12/28 00:49:38
Done.
| |
| 25 background: var(--md-toolbar-color); | |
| 26 display: flex; | |
| 27 } | |
| 28 | |
| 29 cr-toolbar { | |
|
tsergeant
2016/12/22 04:33:02
Delete this block and the next one. I've fixed cr-
angelayang
2016/12/28 00:49:38
Cool it seems to be in same position as downloads,
| |
| 30 --cr-toolbar-field-end-padding: 0; | |
| 31 --cr-toolbar-field-margin: var(--sidebar-width); | |
| 32 --cr-toolbar-right-content-wide: { | |
| 33 position: absolute; | |
| 34 right: 0; | |
| 35 }; | |
| 36 } | |
| 37 | |
| 38 :host-context([dir=rtl]) cr-toolbar { | |
| 39 --cr-toolbar-right-content-wide: { | |
| 40 position: absolute; | |
| 41 left: 0; | |
| 42 }; | |
| 43 } | |
| 44 </style> | |
| 45 <dialog is="cr-action-menu" id="dropdown"> | |
| 46 <button class="dropdown-item" on-tap="onBulkEditTap_"> | |
| 47 $i18n{menuBulkEdit} | |
| 48 </button> | |
| 49 <button class="dropdown-item" on-tap="onSortTap_"> | |
| 50 $i18n{menuSort} | |
| 51 </button> | |
| 52 <hr> | |
| 53 <button class="dropdown-item" on-tap="onAddBookmarkTap_"> | |
| 54 $i18n{menuAddBookmark} | |
| 55 </button> | |
| 56 <button class="dropdown-item" on-tap="onAddFolderTap_"> | |
| 57 $i18n{menuAddFolder} | |
| 58 </button> | |
| 59 <hr> | |
| 60 <button class="dropdown-item" on-tap="onImportTap_"> | |
| 61 $i18n{menuImport} | |
| 62 </button> | |
| 63 <button class="dropdown-item" on-tap="onExportTap_"> | |
| 64 $i18n{menuExport} | |
| 65 </button> | |
| 66 </dialog> | |
| 67 <cr-toolbar page-name="$i18n{title}" | |
| 68 clear-label="$i18n{clearSearch}" | |
| 69 search-prompt="$i18n{searchPrompt}"> | |
| 70 <button is="paper-icon-button-light" class="more-actions more-vert-button" | |
| 71 on-tap="onMenuButtonOpenTap_"> | |
| 72 <div></div> | |
| 73 <div></div> | |
| 74 <div></div> | |
| 75 </button> | |
| 76 </cr-toolbar> | |
| 77 </template> | |
| 78 <script src="chrome://bookmarks/toolbar.js"></script> | |
| 79 </dom-module> | |
| OLD | NEW |