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

Unified Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 1963503002: MD WebUI: Add shared cr-toolbar element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_toolbar.html
diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html
index f79d46e7d5854c1ac0c9887f563907dffeb56544..3c4f9dfd2e28163732990dc3b2343dc8adbb4fd7 100644
--- a/chrome/browser/resources/md_history/history_toolbar.html
+++ b/chrome/browser/resources/md_history/history_toolbar.html
@@ -3,23 +3,23 @@
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner.html">
-<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.html">
<link rel="import" href="chrome://history/shared_style.html">
<dom-module id="history-toolbar">
<template>
<style include="shared-style">
:host {
+ --content-max-width: var(--card-max-width);
color: #fff;
height: 56px;
transition: background-color 150ms;
}
:host,
+ cr-toolbar,
#overlay-buttons,
#overlay-wrapper,
- #main-content,
- #button-container,
#toolbar-container {
@apply(--layout-center);
@apply(--layout-horizontal);
@@ -30,45 +30,6 @@
background: rgb(68, 136, 255);
}
- h1 {
- @apply(--layout-flex);
- -webkit-padding-start: 24px;
- font-size: 123%;
- font-weight: 400;
- }
-
- #right-content {
- flex: 1 0 0;
- }
-
- #left-content {
- flex: 1 0 var(--side-bar-width);
- }
-
- #centered-content {
- /** Padding-start gives space on one side, flex-basis gives space on the
- other. */
- -webkit-padding-start: var(--card-padding-side);
- display: flex;
- flex: 1 1 calc(var(--card-max-width) + var(--card-padding-side));
- }
-
- #right-content {
- @apply(--layout-center);
- @apply(--layout-horizontal);
- justify-content: flex-end;
- }
-
- #search-input {
- -webkit-padding-end: 20px;
- }
-
- #searching-spinner {
- height: 20px;
- width: 20px;
- -webkit-padding-end: 10px;
- }
-
#overlay-buttons {
margin: 0 auto;
max-width: var(--card-max-width);
@@ -90,27 +51,11 @@
min-width: 36px;
width: 36px;
}
-
- paper-button {
- pointer-events: auto;
- }
</style>
<div id="toolbar-container">
- <div id="main-content" hidden$="[[itemsSelected_]]">
- <div id="left-content">
- <h1 id="title">$i18n{title}</h1>
- </div>
- <div id="centered-content">
- <div id="right-content">
- <paper-spinner id="searching-spinner" active="[[searching]]">
- </paper-spinner>
- <cr-search-field id="search-input" label="$i18n{search}"
- clear-label="$i18n{clearSearch}">
- </cr-search-field>
- </div>
- </div>
- </div>
-
+ <cr-toolbar id="main-toolbar" page-name="History"
+ hidden$="[[itemsSelected_]]">
+ </cr-toolbar>
<div id="overlay-wrapper" hidden$="[[!itemsSelected_]]">
<div id="overlay-buttons">
<paper-icon-button icon="clear" id="cancel-icon-button"

Powered by Google App Engine
This is Rietveld 408576698