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

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: closure 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 border-color: rgba(0, 0, 0, 0.14);
23 border-style: solid;
24 border-width: 0 1px;
25 max-width: 960px;
26 min-width: 500px;
27 width: 100%;
28 }
29
30 :host([is-card-start]) #main-container {
31 border-top-width: 1px;
32 margin-top: 20px;
33 }
34
35 :host([is-card-end]) #main-container {
36 border-bottom-width: 2px;
37 }
38
39 #date-accessed {
40 display: none;
41 }
42
43 :host([is-card-start]) #date-accessed {
44 @apply(--layout-center);
45 @apply(--layout-horizontal);
46 -webkit-padding-start: 20px;
47 background: #fafafa;
48 border-bottom: 1px solid rgba(0, 0, 0, 0.14);
49 border-radius: 2px 2px 0 0;
50 color: #333;
51 font-size: 14px;
52 font-weight: 500;
53 height: 48px;
54 }
55
56 #item-container {
13 @apply(--layout-center); 57 @apply(--layout-center);
14 @apply(--layout-horizontal); 58 @apply(--layout-horizontal);
15 min-height: 40px; 59 min-height: 40px;
16 } 60 }
17 61
62 :host([is-card-start]) #item-container {
63 padding-top: 8px;
64 }
65
66 :host([is-card-end]) #item-container {
67 padding-bottom: 8px;
68 }
69
18 #titleAndDomain { 70 #titleAndDomain {
19 @apply(--layout-center); 71 @apply(--layout-center);
20 @apply(--layout-flex); 72 @apply(--layout-flex);
21 @apply(--layout-horizontal); 73 @apply(--layout-horizontal);
22 min-height: 40px; 74 min-height: 40px;
23 overflow: hidden; 75 overflow: hidden;
24 } 76 }
25 77
26 paper-checkbox { 78 paper-checkbox {
27 --paper-checkbox-checked-color: rgb(68, 136, 255); 79 --paper-checkbox-checked-color: rgb(68, 136, 255);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 129 }
78 130
79 #bookmark { 131 #bookmark {
80 -webkit-margin-end: 10px; 132 -webkit-margin-end: 10px;
81 -webkit-margin-start: 20px; 133 -webkit-margin-start: 20px;
82 color: rgb(68, 136, 255); 134 color: rgb(68, 136, 255);
83 min-width: 16px; 135 min-width: 16px;
84 visibility: hidden; 136 visibility: hidden;
85 } 137 }
86 138
87 :host([starred]) #bookmark { 139 #time-gap-separator {
88 visibility: visible; 140 -webkit-border-start: 1px solid #888;
141 -webkit-margin-start: 77px;
142 height: 15px;
89 } 143 }
90 </style> 144 </style>
91 <div id="main-container"> 145 <div id="main-container">
92 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 146 <div id="date-accessed">[[historyDate]]</div>
93 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> 147 <div id="item-container">
94 </paper-checkbox> 148 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
95 <span id="time">{{timeAccessed_}}</span> 149 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]">
96 <div id="website-icon"></div> 150 </paper-checkbox>
97 <div id="titleAndDomain"> 151 <span id="time">{{timeAccessed}}</span>
98 <a href="{{websiteUrl_}}" id="title">{{websiteTitle_}}</a> 152 <div id="website-icon"></div>
99 <span id="domain">{{websiteDomain_}}</span> 153 <div id="titleAndDomain">
154 <a href$="{{websiteUrl}}" id="title">{{websiteTitle}}</a>
155 <span id="domain">{{websiteDomain}}</span>
156 </div>
157 <iron-icon icon="star" id="bookmark"></iron-icon>
158 <paper-icon-button icon="more-vert" id="menu-button"
159 on-tap="onMenuButtonTap_">
160 </paper-icon-button>
100 </div> 161 </div>
101 <iron-icon icon="star" id="bookmark"></iron-icon> 162 <template is="dom-if" if="{{hasTimeGap}}">
102 <paper-icon-button icon="more-vert" id="menu-button" 163 <div id="time-gap-separator"></div>
103 on-tap="onMenuButtonTap_"> 164 </template>
104 </paper-icon-button>
105 </div> 165 </div>
106 </template> 166 </template>
107 <script src="chrome://history/history_item.js"></script> 167 <script src="chrome://history/history_item.js"></script>
108 </dom-module> 168 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_card_manager.js ('k') | chrome/browser/resources/md_history/history_item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698