Chromium Code Reviews| OLD | NEW |
|---|---|
| 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-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/paper-button/paper-butt on.html"> | 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-checkbox/paper-ch eckbox.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-icon-button/paper -icon-button-light.html"> | 6 <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-styles/shadow.htm l"> | |
| 7 <link rel="import" href="chrome://resources/html/icon.html"> | 8 <link rel="import" href="chrome://resources/html/icon.html"> |
| 8 <link rel="import" href="chrome://resources/html/util.html"> | 9 <link rel="import" href="chrome://resources/html/util.html"> |
| 9 <link rel="import" href="chrome://history/browser_service.html"> | 10 <link rel="import" href="chrome://history/browser_service.html"> |
| 10 <link rel="import" href="chrome://history/constants.html"> | 11 <link rel="import" href="chrome://history/constants.html"> |
| 11 <link rel="import" href="chrome://history/searched_label.html"> | 12 <link rel="import" href="chrome://history/searched_label.html"> |
| 12 <link rel="import" href="chrome://history/shared_style.html"> | 13 <link rel="import" href="chrome://history/shared_style.html"> |
| 13 | 14 |
| 14 <dom-module id="history-item"> | 15 <dom-module id="history-item"> |
| 15 <template> | 16 <template> |
| 16 <style include="shared-style"> | 17 <style include="shared-style"> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 width: 16px; | 111 width: 16px; |
| 111 } | 112 } |
| 112 | 113 |
| 113 #time-gap-separator { | 114 #time-gap-separator { |
| 114 -webkit-border-start: 1px solid #888; | 115 -webkit-border-start: 1px solid #888; |
| 115 -webkit-margin-start: 77px; | 116 -webkit-margin-start: 77px; |
| 116 height: 15px; | 117 height: 15px; |
| 117 } | 118 } |
| 118 | 119 |
| 119 #background { | 120 #background { |
| 121 @apply(--shadow-elevation-2dp); | |
|
tsergeant
2016/09/06 05:04:26
"Is it not a strange fate that we should suffer so
calamity
2016/09/06 06:01:02
A box-shadow on a rounded-rect.. A shadow.. ring,
| |
| 120 background: #fff; | 122 background: #fff; |
| 121 bottom: -1px; /* Prevents shadow artifacts when zoomed */ | 123 bottom: 0; |
| 122 left: 0; | 124 left: 0; |
| 123 position: absolute; | 125 position: absolute; |
| 124 right: 0; | 126 right: 0; |
| 125 top: 0; | 127 top: 0; |
| 126 z-index: -1; | 128 z-index: -1; |
| 127 } | 129 } |
| 128 | 130 |
| 131 #background-clip { | |
| 132 bottom: -0.4px; | |
| 133 clip: rect(auto 999px auto -5px); | |
| 134 left: 0; | |
| 135 position: absolute; | |
| 136 right: 0; | |
| 137 top: 0; | |
| 138 } | |
| 139 | |
| 140 :host([is-card-end]) #background-clip { | |
| 141 clip: rect(auto 999px 500px -5px); | |
| 142 } | |
| 143 | |
| 129 :host([embedded]) #background { | 144 :host([embedded]) #background { |
| 130 display: none; | 145 display: none; |
| 131 } | 146 } |
| 132 | 147 |
| 148 :host(:not([is-card-start])) #background { | |
| 149 top: -5px; | |
| 150 } | |
| 151 | |
| 133 :host([is-card-start]) #background { | 152 :host([is-card-start]) #background { |
| 134 border-radius: 2px 2px 0 0; | 153 border-radius: 2px 2px 0 0; |
| 135 } | 154 } |
| 136 | 155 |
| 137 :host([is-card-end]) #background { | 156 :host([is-card-end]) #background { |
| 138 border-radius: 0 0 2px 2px; | 157 border-radius: 0 0 2px 2px; |
| 139 bottom: 0; | 158 bottom: 0; |
| 140 } | 159 } |
| 160 | |
| 161 :host([is-card-start][is-card-end]) #background { | |
| 162 border-radius: 2px; | |
| 163 } | |
| 141 </style> | 164 </style> |
| 142 | 165 |
| 143 <div id="sizing-container"> | 166 <div id="sizing-container"> |
| 144 <div id="main-container"> | 167 <div id="main-container"> |
| 145 <div id="background"></div> | 168 <div id="background-clip"> |
| 169 <div id="background"></div> | |
| 170 </div> | |
| 146 <div id="date-accessed" class="card-title"> | 171 <div id="date-accessed" class="card-title"> |
| 147 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] | 172 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] |
| 148 </div> | 173 </div> |
| 149 <div id="item-container"> | 174 <div id="item-container"> |
| 150 <paper-checkbox id="checkbox" on-mousedown="onCheckboxMousedown_" | 175 <paper-checkbox id="checkbox" on-mousedown="onCheckboxMousedown_" |
| 151 on-click="onCheckboxSelected_" checked="{{selected}}" | 176 on-click="onCheckboxSelected_" checked="{{selected}}" |
| 152 disabled="[[selectionNotAllowed_()]]" | 177 disabled="[[selectionNotAllowed_()]]" |
| 153 aria-label$="[[getEntrySummary_(item)]]"> | 178 aria-label$="[[getEntrySummary_(item)]]"> |
| 154 </paper-checkbox> | 179 </paper-checkbox> |
| 155 <span id="time-accessed">[[item.readableTimestamp]]</span> | 180 <span id="time-accessed">[[item.readableTimestamp]]</span> |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 178 <div></div> | 203 <div></div> |
| 179 <div></div> | 204 <div></div> |
| 180 </button> | 205 </button> |
| 181 </div> | 206 </div> |
| 182 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> | 207 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> |
| 183 </div> | 208 </div> |
| 184 </div> | 209 </div> |
| 185 </template> | 210 </template> |
| 186 <script src="chrome://history/history_item.js"></script> | 211 <script src="chrome://history/history_item.js"></script> |
| 187 </dom-module> | 212 </dom-module> |
| OLD | NEW |