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

Unified Diff: chrome/browser/resources/md_history/history-item.html

Issue 1574063003: MD History: Add basic material design history cards and history items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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-item.html
diff --git a/chrome/browser/resources/md_history/history-item.html b/chrome/browser/resources/md_history/history-item.html
new file mode 100644
index 0000000000000000000000000000000000000000..fccb754c5adee92bd92259d12d5e9f33dd6085b7
--- /dev/null
+++ b/chrome/browser/resources/md_history/history-item.html
@@ -0,0 +1,96 @@
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-checkbox.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
+
+<dom-module id="history-item">
+ <template>
+ <style>
+ :host([starred]) #bookmark {
+ visibility: visible;
+ }
+
+ #main-container {
+ @apply(--layout-center);
+ @apply(--layout-horizontal);
+ min-height: 40px;
+ }
+
+ paper-checkbox {
+ --paper-checkbox-checked-color: #48f;
+ --paper-checkbox-size: 16px;
+ --paper-checkbox-unchecked-color: #969696;
+ height: 16px;
+ margin: 0 16px 0 20px;
+ padding: 2px;
+ width: 16px;
+ }
+
+ #time {
+ color: #646464;
+ min-width: 96px;
+ }
+
+ #title {
+ color: #333;
+ overflow: hidden;
+ text-decoration: none;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ #title:hover {
+ text-decoration: underline;
+ }
+
+ #domain {
+ @apply(--layout-flex);
+ color: #969696;
+ margin-left: 16px;
+ white-space: nowrap;
+ }
+
+ iron-icon {
+ --iron-icon-height: 16px;
+ --iron-icon-width: 16px;
+ }
+
+ #website-icon {
+ height: 16px;
+ margin-right: 16px;
Dan Beam 2016/01/16 02:54:36 RTL
yingran 2016/01/18 05:40:30 Done.
+ min-width: 16px;
+ }
+
+ paper-icon-button {
+ color: #969696;
+ height: 36px;
+ margin: 0 12px 0 2px;
Dan Beam 2016/01/16 02:54:36 RTL
yingran 2016/01/18 05:40:30 Done.
+ min-width: 36px;
+ width: 36px;
+ }
+
+ #bookmark {
+ color: #48f;
+ margin: 0 10px 0 20px;
Dan Beam 2016/01/16 02:54:36 RTL
yingran 2016/01/18 05:40:30 Done.
+ min-width: 16px;
+ visibility: hidden;
+ }
+ </style>
+ <div id="main-container">
+ <paper-checkbox id="checkbox" on-tap="checkboxSelected"
+ checked="{{selected}}">
Dan Beam 2016/01/16 02:54:36 indent off
yingran 2016/01/18 05:40:30 Done.
+ </paper-checkbox>
+ <span id="time">{{timeAccessed}}</span>
+ <div id="website-icon"></div>
+ <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a>
+ <span id="domain">{{websiteDomain}}</span>
+ <iron-icon icon="star" id="bookmark"></iron-icon>
+ <paper-icon-button icon="more-vert" id="menu-button" on-tap="openMenu">
+ </paper-icon-button>
+ </div>
+ </template>
+ <script src="chrome://history/history-item.js"></script>
+
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698