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

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

Issue 2206363003: [MD History] Use proper shadows for cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_rounding
Patch Set: Created 4 years, 4 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-light.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/browser_service.html"> 10 <link rel="import" href="chrome://history/browser_service.html">
11 <link rel="import" href="chrome://history/constants.html"> 11 <link rel="import" href="chrome://history/constants.html">
12 <link rel="import" href="chrome://history/searched_label.html"> 12 <link rel="import" href="chrome://history/searched_label.html">
13 <link rel="import" href="chrome://history/shared_style.html"> 13 <link rel="import" href="chrome://history/shared_style.html">
14 14
15 <dom-module id="history-item"> 15 <dom-module id="history-item">
16 <template> 16 <template>
17 <style include="shared-style"> 17 <style include="shared-style">
18 :host { 18 :host {
19 display: block; 19 display: block;
20 } 20 }
21 21
22 :host(:not([embedded])) #main-container { 22 :host(:not([embedded])) #main-container {
23 background: #fff; 23 position: relative;
24 border-color: var(--card-border-color);
25 border-style: solid;
26 border-width: 0 1px;
27 } 24 }
28 25
29 :host(:not([embedded])) #sizing-container { 26 :host(:not([embedded])) #sizing-container {
30 @apply(--card-sizing); 27 @apply(--card-sizing);
31 } 28 }
32 29
33 :host([is-first-item]) #main-container { 30 :host([is-first-item]) #main-container {
34 margin-top: var(--first-card-padding-top); 31 margin-top: var(--first-card-padding-top);
35 } 32 }
36 33
37 :host([is-card-start]) #main-container { 34 :host([is-card-start]) #main-container {
38 border-radius: 2px 2px 0 0; 35 border-radius: 2px 2px 0 0;
39 border-top-width: 1px;
40 } 36 }
41 37
42 :host([is-card-end]) #main-container { 38 :host([is-card-end]) #main-container {
43 border-bottom-width: 2px;
44 border-radius: 0 0 2px 2px; 39 border-radius: 0 0 2px 2px;
45 margin-bottom: var(--card-padding-between); 40 margin-bottom: var(--card-padding-between);
46 } 41 }
47 42
48 :host([is-card-start][is-card-end]) #main-container { 43 :host([is-card-start][is-card-end]) #main-container {
49 border-radius: 2px; 44 border-radius: 2px;
50 } 45 }
51 46
52 #date-accessed { 47 #date-accessed {
53 display: none; 48 display: none;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 124
130 :host([starred]) #bookmark-star { 125 :host([starred]) #bookmark-star {
131 visibility: visible; 126 visibility: visible;
132 } 127 }
133 128
134 #time-gap-separator { 129 #time-gap-separator {
135 -webkit-border-start: 1px solid #888; 130 -webkit-border-start: 1px solid #888;
136 -webkit-margin-start: 77px; 131 -webkit-margin-start: 77px;
137 height: 15px; 132 height: 15px;
138 } 133 }
134
135 #background {
136 background: #fff;
137 bottom: -1px; /* Prevents shadow artifacts when zoomed */
138 left: 0;
139 position: absolute;
140 right: 0;
141 top: 0;
142 z-index: -1;
143 }
144
145 :host([is-card-end]) #background {
146 bottom: 0;
147 }
139 </style> 148 </style>
140 149
141 <div id="sizing-container"> 150 <div id="sizing-container">
142 <div id="main-container"> 151 <div id="main-container">
152 <div id="background"></div>
143 <div id="date-accessed" class="card-title"> 153 <div id="date-accessed" class="card-title">
144 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] 154 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]]
145 </div> 155 </div>
146 <div id="item-container"> 156 <div id="item-container">
147 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 157 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
148 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> 158 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]">
149 </paper-checkbox> 159 </paper-checkbox>
150 <span id="time-accessed">[[item.readableTimestamp]]</span> 160 <span id="time-accessed">[[item.readableTimestamp]]</span>
151 <div class="website-icon" id="icon"></div> 161 <div class="website-icon" id="icon"></div>
152 <div id="title-and-domain"> 162 <div id="title-and-domain">
(...skipping 13 matching lines...) Expand all
166 </button> 176 </button>
167 </div> 177 </div>
168 <template is="dom-if" if="[[hasTimeGap]]"> 178 <template is="dom-if" if="[[hasTimeGap]]">
169 <div id="time-gap-separator"></div> 179 <div id="time-gap-separator"></div>
170 </template> 180 </template>
171 </div> 181 </div>
172 </div> 182 </div>
173 </template> 183 </template>
174 <script src="chrome://history/history_item.js"></script> 184 <script src="chrome://history/history_item.js"></script>
175 </dom-module> 185 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698