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

Side by Side 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: Replaced with correct file names and links 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 unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
7
8 <dom-module id="history-item">
9 <template>
10 <style>
11 :host([starred]) #bookmark {
tsergeant 2016/01/25 00:12:43 Move this down below #bookmark so the two states a
yingran 2016/01/27 00:30:35 Done.
12 visibility: visible;
13 }
14
15 #main-container {
16 @apply(--layout-center);
17 @apply(--layout-horizontal);
18 min-height: 40px;
19 }
20
21 paper-checkbox {
22 --paper-checkbox-checked-color: #48f;
23 --paper-checkbox-size: 16px;
24 --paper-checkbox-unchecked-color: #969696;
25 height: 16px;
26 margin: 0 16px 0 20px;
27 padding: 2px;
28 width: 16px;
29 }
30
31 #time {
32 color: #646464;
33 min-width: 96px;
34 }
35
36 #title {
37 color: #333;
38 overflow: hidden;
39 text-decoration: none;
40 text-overflow: ellipsis;
41 white-space: nowrap;
42 }
43
44 #title:hover {
45 text-decoration: underline;
46 }
47
48 #domain {
49 @apply(--layout-flex);
50 -webkit-margin-start: 16px;
51 color: #969696;
52 white-space: nowrap;
53 }
54
55 iron-icon {
56 --iron-icon-height: 16px;
57 --iron-icon-width: 16px;
58 }
59
60 #website-icon {
61 -webkit-margin-end: 16px;
62 height: 16px;
63 min-width: 16px;
64 }
65
66 #menu-button {
67 -webkit-margin-end: 12px;
68 -webkit-margin-start: 2px;
69 color: #969696;
70 height: 36px;
71 min-width: 36px;
72 width: 36px;
73 }
74
75 #bookmark {
76 -webkit-margin-end: 10px;
77 -webkit-margin-start: 20px;
78 color: #48f;
79 min-width: 16px;
80 visibility: hidden;
81 }
82 </style>
83 <div id="main-container">
84 <paper-checkbox id="checkbox" on-tap="checkboxSelected"
tsergeant 2016/01/25 00:12:43 checkboxSelected -> onCheckboxSelected_
yingran 2016/01/27 00:30:35 Done.
85 checked="{{selected}}">
86 </paper-checkbox>
87 <span id="time">{{timeAccessed}}</span>
88 <div id="website-icon"></div>
89 <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a>
90 <span id="domain">{{websiteDomain}}</span>
91 <iron-icon icon="star" id="bookmark"></iron-icon>
92 <paper-icon-button icon="more-vert" id="menu-button" on-tap="openMenu">
tsergeant 2016/01/25 00:12:43 openMenu -> onMenuButtonTap_
yingran 2016/01/27 00:30:35 Done.
93 </paper-icon-button>
94 </div>
95 </template>
96 <script src="chrome://history/history_item.js"></script>
97
98 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698