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

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

Issue 2022003002: [MD History] Add search for synced devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@land_icons
Patch Set: address nits Created 4 years, 6 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/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
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-button/paper-butt on.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-checkbox/paper-ch eckbox.html">
7 <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-light.html">
8 <link rel="import" href="chrome://resources/html/icon.html"> 8 <link rel="import" href="chrome://resources/html/icon.html">
9 <link rel="import" href="chrome://resources/html/util.html"> 9 <link rel="import" href="chrome://resources/html/util.html">
10 <link rel="import" href="chrome://history/constants.html"> 10 <link rel="import" href="chrome://history/constants.html">
11 <link rel="import" href="chrome://history/shared_style.html"> 11 <link rel="import" href="chrome://history/shared_style.html">
12 12
13 <dom-module id="history-item"> 13 <dom-module id="history-item">
14 <template> 14 <template>
15 <style include="shared-style"> 15 <style include="shared-style">
16 :host { 16 :host {
17 @apply(--layout-center); 17 @apply(--layout-center);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 #menu-button { 92 #menu-button {
93 -webkit-margin-end: 12px; 93 -webkit-margin-end: 12px;
94 -webkit-margin-start: 2px; 94 -webkit-margin-start: 2px;
95 color: #969696; 95 color: #969696;
96 height: 36px; 96 height: 36px;
97 min-width: 36px; 97 min-width: 36px;
98 width: 36px; 98 width: 36px;
99 } 99 }
100 100
101 #menu-button iron-icon {
102 height: 20px;
103 width: 20px;
104 }
105
101 #bookmark-star { 106 #bookmark-star {
102 --iron-icon-height: 16px;
103 --iron-icon-width: 16px;
104 -webkit-margin-end: 10px; 107 -webkit-margin-end: 10px;
105 -webkit-margin-start: 20px; 108 -webkit-margin-start: 20px;
106 color: rgb(68, 136, 255); 109 color: rgb(68, 136, 255);
110 height: 16px;
107 min-width: 16px; 111 min-width: 16px;
108 visibility: hidden; 112 visibility: hidden;
113 width: 16px;
109 } 114 }
110 115
111 :host([starred]) #bookmark-star { 116 :host([starred]) #bookmark-star {
112 visibility: visible; 117 visibility: visible;
113 } 118 }
114 119
115 #time-gap-separator { 120 #time-gap-separator {
116 -webkit-border-start: 1px solid #888; 121 -webkit-border-start: 1px solid #888;
117 -webkit-margin-start: 77px; 122 -webkit-margin-start: 77px;
118 height: 15px; 123 height: 15px;
119 } 124 }
120 </style> 125 </style>
121 <div id="main-container"> 126 <div id="main-container">
122 <div id="date-accessed" class="card-title"> 127 <div id="date-accessed" class="card-title">
123 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] 128 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]]
124 </div> 129 </div>
125 <div id="item-container"> 130 <div id="item-container">
126 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 131 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
127 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> 132 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]">
128 </paper-checkbox> 133 </paper-checkbox>
129 <span id="time-accessed">[[item.readableTimestamp]]</span> 134 <span id="time-accessed">[[item.readableTimestamp]]</span>
130 <div class="website-icon" id="icon"></div> 135 <div class="website-icon" id="icon"></div>
131 <div id="title-and-domain"> 136 <div id="title-and-domain">
132 <a href="[[item.url]]" id="title" class="website-title"></a> 137 <a href="[[item.url]]" id="title" class="website-title"></a>
133 <span id="domain">[[item.domain]]</span> 138 <span id="domain">[[item.domain]]</span>
134 </div> 139 </div>
135 <iron-icon icon="cr:star" id="bookmark-star"></iron-icon> 140 <iron-icon icon="cr:star" id="bookmark-star"></iron-icon>
136 <paper-icon-button icon="cr:more-vert" id="menu-button" 141 <button is="paper-icon-button-light" id="menu-button"
137 on-tap="onMenuButtonTap_"> 142 on-tap="onMenuButtonTap_">
138 </paper-icon-button> 143 <iron-icon icon="cr:more-vert"></iron-icon>
144 </button>
139 </div> 145 </div>
140 <template is="dom-if" if="[[hasTimeGap]]"> 146 <template is="dom-if" if="[[hasTimeGap]]">
141 <div id="time-gap-separator"></div> 147 <div id="time-gap-separator"></div>
142 </template> 148 </template>
143 </div> 149 </div>
144 </template> 150 </template>
145 <script src="chrome://history/history_item.js"></script> 151 <script src="chrome://history/history_item.js"></script>
146 </dom-module> 152 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698