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

Side by Side Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 2268073002: MD History: Remove usage of iron-flex-layout from MD History (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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-flex-layout/iron-f lex-layout.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 3 <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-tabs/paper-tab.ht ml"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht ml">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml">
7 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 6 <link rel="import" href="chrome://resources/cr_elements/icons.html">
8 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> 7 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml">
9 <link rel="import" href="chrome://history/icons.html"> 8 <link rel="import" href="chrome://history/icons.html">
10 <link rel="import" href="chrome://history/shared_style.html"> 9 <link rel="import" href="chrome://history/shared_style.html">
11 10
12 <dom-module id="history-toolbar"> 11 <dom-module id="history-toolbar">
13 <template> 12 <template>
14 <style include="shared-style"> 13 <style include="shared-style">
15 :host { 14 :host {
16 color: #fff; 15 color: #fff;
17 display: block; 16 display: block;
18 transition: background-color 150ms; 17 transition: background-color 150ms;
19 width: 100%; 18 width: 100%;
20 } 19 }
21 20
22 cr-toolbar, 21 cr-toolbar,
23 #overlay-buttons, 22 #overlay-buttons,
24 #overlay-wrapper, 23 #overlay-wrapper,
25 #toolbar-container { 24 #toolbar-container {
26 @apply(--layout-center); 25 align-items: center;
27 @apply(--layout-horizontal); 26 display: flex;
28 width: 100%; 27 width: 100%;
29 } 28 }
30 29
31 :host([items-selected_]) { 30 :host([items-selected_]) {
32 background: rgb(68, 136, 255); 31 background: rgb(68, 136, 255);
33 } 32 }
34 33
35 #toolbar-container { 34 #toolbar-container {
36 height: var(--toolbar-height); 35 height: var(--toolbar-height);
37 } 36 }
(...skipping 14 matching lines...) Expand all
52 margin: 0 auto; 51 margin: 0 auto;
53 max-width: var(--card-max-width); 52 max-width: var(--card-max-width);
54 padding: 0 var(--card-padding-side); 53 padding: 0 var(--card-padding-side);
55 } 54 }
56 55
57 paper-button { 56 paper-button {
58 font-weight: 500; 57 font-weight: 500;
59 } 58 }
60 59
61 #number-selected { 60 #number-selected {
62 @apply(--layout-flex); 61 flex: 1;
63 } 62 }
64 63
65 #cancel-icon-button { 64 #cancel-icon-button {
66 -webkit-margin-end: 24px; 65 -webkit-margin-end: 24px;
67 -webkit-margin-start: 2px; 66 -webkit-margin-start: 2px;
68 height: 36px; 67 height: 36px;
69 min-width: 36px; 68 min-width: 36px;
70 width: 36px; 69 width: 36px;
71 } 70 }
72 71
73 #grouped-nav-container paper-icon-button { 72 #grouped-nav-container paper-icon-button {
74 --paper-icon-button-ink-color: rgba(255, 255, 255, 0.4); 73 --paper-icon-button-ink-color: rgba(255, 255, 255, 0.4);
75 -webkit-margin-start: 24px; 74 -webkit-margin-start: 24px;
76 flex: 0 0 auto; 75 flex: 0 0 auto;
77 } 76 }
78 77
79 paper-tab { 78 paper-tab {
80 --paper-tab-ink: rgba(255, 255, 255, 0.4); 79 --paper-tab-ink: rgba(255, 255, 255, 0.4);
81 font-size: 13px; 80 font-size: 13px;
82 text-transform: uppercase; 81 text-transform: uppercase;
83 } 82 }
84 83
85 paper-tabs { 84 paper-tabs {
86 --paper-tabs-selection-bar-color: var(--google-blue-500); 85 --paper-tabs-selection-bar-color: var(--google-blue-500);
87 height: calc(var(--toolbar-grouped-height) - var(--toolbar-height)); 86 height: calc(var(--toolbar-grouped-height) - var(--toolbar-height));
88 min-width: 300px; 87 min-width: 300px;
89 } 88 }
90 89
91 #grouped-buttons-container { 90 #grouped-buttons-container {
92 @apply(--layout-center); 91 align-items: center;
93 @apply(--layout-horizontal); 92 display: flex;
94 } 93 }
95 94
96 #grouped-range-buttons { 95 #grouped-range-buttons {
97 -webkit-margin-start: 32px; 96 -webkit-margin-start: 32px;
98 } 97 }
99 98
100 #grouped-nav-container { 99 #grouped-nav-container {
101 @apply(--layout-center);
102 @apply(--layout-end-justified);
103 @apply(--layout-flex);
104 @apply(--layout-horizontal);
105 -webkit-margin-end: 24px; 100 -webkit-margin-end: 24px;
101 align-items: center;
102 display: flex;
103 flex: 1;
104 justify-content: flex-end;
106 overflow: hidden; 105 overflow: hidden;
107 transition: opacity 150ms; 106 transition: opacity 150ms;
108 } 107 }
109 108
110 :host([grouped-range='0']) #grouped-nav-container { 109 :host([grouped-range='0']) #grouped-nav-container {
111 opacity: 0; 110 opacity: 0;
112 pointer-events: none; 111 pointer-events: none;
113 } 112 }
114 113
115 #grouped-date { 114 #grouped-date {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 class="rtl-reversible"></paper-icon-button> 166 class="rtl-reversible"></paper-icon-button>
168 <paper-icon-button icon="cr:chevron-right" 167 <paper-icon-button icon="cr:chevron-right"
169 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" 168 alt="$i18n{rangeNext}" title="$i18n{rangeNext}"
170 class="rtl-reversible"></paper-icon-button> 169 class="rtl-reversible"></paper-icon-button>
171 </div> 170 </div>
172 </div> 171 </div>
173 </template> 172 </template>
174 </template> 173 </template>
175 <script src="chrome://history/history_toolbar.js"></script> 174 <script src="chrome://history/history_toolbar.js"></script>
176 </dom-module> 175 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | chrome/browser/resources/md_history/shared_style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698