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

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

Issue 1607403004: MD History: Display synced tabs history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Merged but tests not working everything else SEEMS ok 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-flex-layout/iron-f lex-layout.html">
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-icon/iron-icon.htm l">
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/iron-icons/iron-icons.h tml">
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.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
9 <link rel="import" href="chrome://resources/html/util.html"> 9 <link rel="import" href="chrome://resources/html/util.html">
10 10
11 <link rel="import" href="chrome://history/shared_style.html">
11 <dom-module id="history-item"> 12 <dom-module id="history-item">
12 <template> 13 <template>
14 <style include="shared-style"></style>
13 <style> 15 <style>
14 :host { 16 :host {
15 @apply(--layout-center); 17 @apply(--layout-center);
16 @apply(--layout-vertical); 18 @apply(--layout-vertical);
17 padding: 0 24px; 19 padding: 0 24px;
18 } 20 }
19 21
20 #main-container { 22 #main-container {
21 background: #fff; 23 background: #fff;
22 border-color: rgba(0, 0, 0, 0.14); 24 border-color: rgba(0, 0, 0, 0.14);
(...skipping 11 matching lines...) Expand all
34 36
35 :host([is-card-end]) #main-container { 37 :host([is-card-end]) #main-container {
36 border-bottom-width: 2px; 38 border-bottom-width: 2px;
37 } 39 }
38 40
39 #date-accessed { 41 #date-accessed {
40 display: none; 42 display: none;
41 } 43 }
42 44
43 :host([is-card-start]) #date-accessed { 45 :host([is-card-start]) #date-accessed {
44 @apply(--layout-center); 46 display: flex;
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 } 47 }
55 48
56 #item-container { 49 :host([is-card-start]) .item-container {
57 @apply(--layout-center);
58 @apply(--layout-horizontal);
59 min-height: 40px;
60 }
61
62 :host([is-card-start]) #item-container {
63 padding-top: 8px; 50 padding-top: 8px;
64 } 51 }
65 52
66 :host([is-card-end]) #item-container { 53 :host([is-card-end]) .item-container {
67 padding-bottom: 8px; 54 padding-bottom: 8px;
68 } 55 }
69 56
70 #titleAndDomain { 57 #titleAndDomain {
71 @apply(--layout-center); 58 @apply(--layout-center);
72 @apply(--layout-flex); 59 @apply(--layout-flex);
73 @apply(--layout-horizontal); 60 @apply(--layout-horizontal);
74 min-height: 40px; 61 min-height: 40px;
75 overflow: hidden; 62 overflow: hidden;
76 } 63 }
77 64
78 paper-checkbox { 65 paper-checkbox {
79 --paper-checkbox-checked-color: rgb(68, 136, 255); 66 --paper-checkbox-checked-color: rgb(68, 136, 255);
80 --paper-checkbox-size: 16px; 67 --paper-checkbox-size: 16px;
81 --paper-checkbox-unchecked-color: #969696; 68 --paper-checkbox-unchecked-color: #969696;
82 height: 16px; 69 height: 16px;
83 margin: 0 16px 0 20px; 70 margin: 0 16px 0 20px;
84 padding: 2px; 71 padding: 2px;
85 width: 16px; 72 width: 16px;
86 } 73 }
87 74
88 #time { 75 #time {
89 color: #646464; 76 color: #646464;
90 min-width: 96px; 77 min-width: 96px;
91 } 78 }
92 79
93 #title {
94 color: #333;
95 overflow: hidden;
96 text-decoration: none;
97 text-overflow: ellipsis;
98 white-space: nowrap;
99 }
100
101 #title:hover {
102 text-decoration: underline;
103 }
104
105 #domain { 80 #domain {
106 -webkit-margin-start: 16px; 81 -webkit-margin-start: 16px;
107 color: #969696; 82 color: #969696;
108 flex-shrink: 0; 83 flex-shrink: 0;
109 } 84 }
110 85
111 iron-icon { 86 iron-icon {
112 --iron-icon-height: 16px; 87 --iron-icon-height: 16px;
113 --iron-icon-width: 16px; 88 --iron-icon-width: 16px;
114 } 89 }
115 90
116 #website-icon {
117 -webkit-margin-end: 16px;
118 height: 16px;
119 min-width: 16px;
120 }
121
122 #menu-button { 91 #menu-button {
123 -webkit-margin-end: 12px; 92 -webkit-margin-end: 12px;
124 -webkit-margin-start: 2px; 93 -webkit-margin-start: 2px;
125 color: #969696; 94 color: #969696;
126 height: 36px; 95 height: 36px;
127 min-width: 36px; 96 min-width: 36px;
128 width: 36px; 97 width: 36px;
129 } 98 }
130 99
131 #bookmark { 100 #bookmark {
132 -webkit-margin-end: 10px; 101 -webkit-margin-end: 10px;
133 -webkit-margin-start: 20px; 102 -webkit-margin-start: 20px;
134 color: rgb(68, 136, 255); 103 color: rgb(68, 136, 255);
135 min-width: 16px; 104 min-width: 16px;
136 visibility: hidden; 105 visibility: hidden;
137 } 106 }
138 107
139 #time-gap-separator { 108 #time-gap-separator {
140 -webkit-border-start: 1px solid #888; 109 -webkit-border-start: 1px solid #888;
141 -webkit-margin-start: 77px; 110 -webkit-margin-start: 77px;
142 height: 15px; 111 height: 15px;
143 } 112 }
144 </style> 113 </style>
145 <div id="main-container"> 114 <div id="main-container">
146 <div id="date-accessed">[[historyDate]]</div> 115 <div id="date-accessed" class="card-title">[[historyDate]]</div>
147 <div id="item-container"> 116 <div class="item-container">
148 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 117 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
149 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> 118 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]">
150 </paper-checkbox> 119 </paper-checkbox>
151 <span id="time">{{timeAccessed}}</span> 120 <span id="time">{{timeAccessed}}</span>
152 <div id="website-icon"></div> 121 <div class="website-icon" id="icon"></div>
153 <div id="titleAndDomain"> 122 <div id="titleAndDomain">
154 <a href$="{{websiteUrl}}" id="title">{{websiteTitle}}</a> 123 <a href$="{{websiteUrl}}" id="title" class="url">{{websiteTitle}}</a>
155 <span id="domain">{{websiteDomain}}</span> 124 <span id="domain">{{websiteDomain}}</span>
156 </div> 125 </div>
157 <iron-icon icon="star" id="bookmark"></iron-icon> 126 <iron-icon icon="star" id="bookmark"></iron-icon>
158 <paper-icon-button icon="more-vert" id="menu-button" 127 <paper-icon-button icon="more-vert" id="menu-button"
159 on-tap="onMenuButtonTap_"> 128 on-tap="onMenuButtonTap_">
160 </paper-icon-button> 129 </paper-icon-button>
161 </div> 130 </div>
162 <template is="dom-if" if="{{hasTimeGap}}"> 131 <template is="dom-if" if="{{hasTimeGap}}">
163 <div id="time-gap-separator"></div> 132 <div id="time-gap-separator"></div>
164 </template> 133 </template>
165 </div> 134 </div>
166 </template> 135 </template>
167 <script src="chrome://history/history_item.js"></script> 136 <script src="chrome://history/history_item.js"></script>
168 </dom-module> 137 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_card.html ('k') | chrome/browser/resources/md_history/history_item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698