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

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

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Address reviewer's comments Created 4 years, 10 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/polymer/v1_0/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.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-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/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-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-checkbox/paper-ch eckbox.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
7 <link rel="import" href="chrome://resources/html/util.html"> 9 <link rel="import" href="chrome://resources/html/util.html">
8 10
9 <dom-module id="history-item"> 11 <dom-module id="history-item">
10 <template> 12 <template>
11 <style> 13 <style>
14 :host {
15 @apply(--layout-center);
16 @apply(--layout-vertical);
17 padding: 0 24px;
18 }
19
12 #main-container { 20 #main-container {
21 background: #fff;
22 max-width: 960px;
23 width: 100%;
24 }
25
26 :host([is-card-start]) #main-container {
27 margin-top: 20px;
28 }
29
30 #date-accessed {
31 display: none;
32 }
33
34 :host([is-card-start]) #date-accessed {
35 @apply(--layout-center);
36 @apply(--layout-horizontal);
37 -webkit-padding-start: 20px;
38 background: #fafafa;
39 border-bottom: 1px solid rgba(0, 0, 0, 0.14);
40 border-radius: 2px 2px 0 0;
41 color: #333;
42 font-size: 14px;
43 font-weight: 500;
44 height: 48px;
45 }
46
47 #item-container {
13 @apply(--layout-center); 48 @apply(--layout-center);
14 @apply(--layout-horizontal); 49 @apply(--layout-horizontal);
15 min-height: 40px; 50 min-height: 40px;
16 } 51 }
17 52
53 :host([is-card-start]) #item-container {
54 padding-top: 8px;
55 }
56
57 :host([is-last-card]) #item-container {
58 padding-bottom: 8px;
59 }
60
18 paper-checkbox { 61 paper-checkbox {
19 --paper-checkbox-checked-color: rgb(68, 136, 255); 62 --paper-checkbox-checked-color: rgb(68, 136, 255);
20 --paper-checkbox-size: 16px; 63 --paper-checkbox-size: 16px;
21 --paper-checkbox-unchecked-color: #969696; 64 --paper-checkbox-unchecked-color: #969696;
22 height: 16px; 65 height: 16px;
23 margin: 0 16px 0 20px; 66 margin: 0 16px 0 20px;
24 padding: 2px; 67 padding: 2px;
25 width: 16px; 68 width: 16px;
26 } 69 }
27 70
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 113 }
71 114
72 #bookmark { 115 #bookmark {
73 -webkit-margin-end: 10px; 116 -webkit-margin-end: 10px;
74 -webkit-margin-start: 20px; 117 -webkit-margin-start: 20px;
75 color: rgb(68, 136, 255); 118 color: rgb(68, 136, 255);
76 min-width: 16px; 119 min-width: 16px;
77 visibility: hidden; 120 visibility: hidden;
78 } 121 }
79 122
80 :host([starred]) #bookmark { 123 #time-gap-separator {
81 visibility: visible; 124 -webkit-border-start: 1px solid #888;
125 -webkit-margin-start: 77px;
126 height: 15px;
82 } 127 }
83 </style> 128 </style>
129
84 <div id="main-container"> 130 <div id="main-container">
85 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 131 <div id="date-accessed">[[historyDate]]</div>
86 checked="{{selected}}"> 132 <div id="item-container">
87 </paper-checkbox> 133 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
88 <span id="time">{{timeAccessed_}}</span> 134 checked="{{selected}}">
89 <div id="website-icon"></div> 135 </paper-checkbox>
90 <a href="{{websiteUrl_}}" id="title">{{websiteTitle_}}</a> 136 <span id="time">{{timeAccessed}}</span>
91 <span id="domain">{{websiteDomain_}}</span> 137 <div id="website-icon"></div>
92 <iron-icon icon="star" id="bookmark"></iron-icon> 138 <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a>
93 <paper-icon-button icon="more-vert" id="menu-button" 139 <span id="domain">{{websiteDomain}}</span>
94 on-tap="onMenuButtonTap_"> 140 <iron-icon icon="star" id="bookmark"></iron-icon>
95 </paper-icon-button> 141 <paper-icon-button icon="more-vert" id="menu-button"
142 on-tap="onMenuButtonTap_">
143 </paper-icon-button>
144 </div>
145 <template is="dom-if" if="{{hasTimeGap}}">
146 <div id="time-gap-separator"></div>
147 </template>
96 </div> 148 </div>
97 </template> 149 </template>
98 <script src="chrome://history/history_item.js"></script> 150 <script src="chrome://history/history_item.js"></script>
99 </dom-module> 151 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698