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

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

Issue 2088093004: Add a footer about other forms of history to the MD history page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/resources/md_history/side_bar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/side_bar.html
diff --git a/chrome/browser/resources/md_history/side_bar.html b/chrome/browser/resources/md_history/side_bar.html
index 37bdc02db0d55a2a3659593ffa17cdc5492d52c8..ea474e8fdf8323eccc6a5edc324816601ce2f614 100644
--- a/chrome/browser/resources/md_history/side_bar.html
+++ b/chrome/browser/resources/md_history/side_bar.html
@@ -11,6 +11,7 @@
<style include="shared-style">
:host {
display: block;
+ height: 100%;
padding-top: 5px;
width: var(--side-bar-width);
}
@@ -41,7 +42,7 @@
}
paper-item {
- -webkit-padding-start: 25px;
+ -webkit-padding-start: 24px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
@@ -56,6 +57,26 @@
-webkit-user-select: none;
color: #5a5a5a;
}
+
+ #footer {
+ /* This compensates the 120px by which app-drawer protrudes under
+ * the viewport. */
+ bottom: 120px;
+ color: var(--paper-grey-600);
+ position: absolute;
+ width: var(--side-bar-width);
+ }
+
+ #footer-text {
+ -webkit-padding-end: 16px;
+ -webkit-padding-start: 24px;
+ margin: 24px 0;
+ }
+
+ #footer a {
+ color: var(--google-blue-700);
+ text-decoration: none;
+ }
</style>
<app-drawer id="drawer" tabindex="0" on-focus="onDrawerFocus_" swipe-open
@@ -76,6 +97,10 @@
<paper-item on-tap="onClearBrowsingDataTap_" id="clear-browsing-data">
$i18n{clearBrowsingData}
</paper-item>
+ <div id="footer" hidden="[[!showFooter]]">
+ <div class="separator"></div>
+ <div id="footer-text">$i18nRaw{sidebarFooter}</div>
+ </div>
</iron-selector>
</app-drawer>
</template>
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/resources/md_history/side_bar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698