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

Side by Side Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html

Issue 2280513002: MD History: promote menu button to show clear browsing data in narrow mode (Closed)
Patch Set: asdf Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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/polymer/v1_0/iron-icon/iron-icon.htm l">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html">
3 <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-tooltip/paper-too ltip.html">
4 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se arch_field.html"> 6 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se arch_field.html">
7 <link rel="import" href="chrome://resources/cr_elements/icons.html">
5 8
6 <dom-module id="cr-toolbar"> 9 <dom-module id="cr-toolbar">
7 <template> 10 <template>
8 <style> 11 <style>
9 :host { 12 :host {
10 --cr-toolbar-field-width: 580px; 13 --cr-toolbar-field-width: 580px;
11 color: #fff; 14 color: #fff;
12 display: flex; 15 display: flex;
13 height: 56px; 16 height: 56px;
14 } 17 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 @apply(--cr-toolbar-right-content-wide); 67 @apply(--cr-toolbar-right-content-wide);
65 } 68 }
66 69
67 :host([narrow_]) #centeredContent { 70 :host([narrow_]) #centeredContent {
68 justify-content: flex-end; 71 justify-content: flex-end;
69 } 72 }
70 73
71 :host([narrow_][showing-search_]) #leftContent { 74 :host([narrow_][showing-search_]) #leftContent {
72 opacity: 0; 75 opacity: 0;
73 } 76 }
77
78 paper-tooltip {
79 --paper-tooltip: {
80 align-items: center;
81 display: flex;
82 font-size: 92.3%;
83 font-weight: 500;
84 padding: 6px 12px 6px 8px;
85 white-space: nowrap;
86 };
87 }
88
89 iron-icon {
90 --iron-icon-height: 20px;
91 --iron-icon-width: 20px;
92 -webkit-margin-start: 12px;
93 }
74 </style> 94 </style>
75 <div id="leftContent"> 95 <div id="leftContent">
76 <template is="dom-if" if="[[showMenu]]"> 96 <template is="dom-if" if="[[showMenu]]">
77 <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_" 97 <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_"
78 title="[[menuLabel]]"> 98 title="[[titleIfNotShowingMenuPromo_(menuLabel,
99 showingMenuPromo_)]]">
79 </paper-icon-button> 100 </paper-icon-button>
101 <template is="dom-if" if="[[showingMenuPromo_]]">
102 <paper-tooltip for="menuButton" position="bottom" offset="20"
103 manual-mode fit-to-visible-bounds>
104 [[menuPromo]]
105 <iron-icon icon="cr:clear" on-tap="onMenuPromoCloseTap_">
tsergeant 2016/08/25 04:51:00 Should this be a paper-icon-button[-light]? Or jus
Dan Beam 2016/09/09 03:12:08 I asked Alan both of those questions: he wanted de
tsergeant 2016/09/09 06:09:39 Happy to go with this for the lightweight button.
Dan Beam 2016/09/16 00:01:24 Done.
106 </iron-icon>
107 </paper-tooltip>
108 </template>
80 </template> 109 </template>
81 <h1>[[pageName]]</h1> 110 <h1>[[pageName]]</h1>
82 </div> 111 </div>
83 112
84 <div id="centeredContent"> 113 <div id="centeredContent">
85 <cr-toolbar-search-field id="search" narrow="[[narrow_]]" 114 <cr-toolbar-search-field id="search" narrow="[[narrow_]]"
86 label="[[searchPrompt]]" clear-label="[[clearLabel]]" 115 label="[[searchPrompt]]" clear-label="[[clearLabel]]"
87 spinner-active="[[spinnerActive]]" 116 spinner-active="[[spinnerActive]]"
88 showing-search="{{showingSearch_}}"> 117 showing-search="{{showingSearch_}}">
89 </cr-toolbar-search-field> 118 </cr-toolbar-search-field>
90 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}"> 119 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}">
91 </iron-media-query> 120 </iron-media-query>
92 </div> 121 </div>
93 122
94 <div id="rightContent"> 123 <div id="rightContent">
95 <content select=".more-actions"></content> 124 <content select=".more-actions"></content>
96 </div> 125 </div>
97 </template> 126 </template>
98 <script src="cr_toolbar.js"></script> 127 <script src="cr_toolbar.js"></script>
99 </dom-module> 128 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698