|
13 | 13 | <style shim-shadowdom>
|
14 | 14 | :host {
|
15 | 15 | display:inline-block;
|
16 |
| - margin:4px; |
| 16 | + margin-top:2px; |
17 | 17 | }
|
18 | 18 | #card {
|
19 | 19 | border-radius:2px;
|
|
24 | 24 | background-position: center;
|
25 | 25 | background-origin: content-box;
|
26 | 26 | background-size:{{width}};
|
27 |
| - font-family: 'Helvetica Neue', Helvetica, Arial; |
28 | 27 | }
|
29 | 28 | core-animated-pages {
|
30 | 29 | height:100%;
|
|
59 | 58 | }
|
60 | 59 | #overlay-high-small {
|
61 | 60 | position:absolute;
|
62 |
| - top:10%; |
| 61 | + top:0%; |
63 | 62 | height:{{height}};
|
64 | 63 | width:{{width}};
|
65 |
| - padding:0.5em; |
66 | 64 | background:rgba(255,255,255, 1);
|
67 | 65 | border:1px solid #d8d8d8;
|
68 | 66 | text-align:left;
|
|
203 | 201 | .spinner::shadow .circle {
|
204 | 202 | border-color: #000;
|
205 | 203 | }
|
| 204 | + .spinnerW::shadow .circle { |
| 205 | + border-color: #FFF; |
| 206 | + } |
| 207 | + #smallCover { |
| 208 | + margin-left:16px; |
| 209 | + margin-right:8px; |
| 210 | + height:43px; |
| 211 | + width:43px; |
| 212 | + border-radius:50%; |
| 213 | + background-image:url("../../../images/default-cover-art.png"); |
| 214 | + background-repeat: no-repeat; |
| 215 | + background-position: center; |
| 216 | + background-origin: content-box; |
| 217 | + background-size:43px; |
| 218 | + display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ |
| 219 | + display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ |
| 220 | + display: -ms-flexbox; /* TWEENER - IE 10 */ |
| 221 | + display: -webkit-flex; /* NEW - Chrome */ |
| 222 | + display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */ |
| 223 | + -webkit-justify-content: center; |
| 224 | + -webkit-align-items: center; |
| 225 | + justify-content: center; |
| 226 | + align-items: center; |
| 227 | + margin-top:16px; |
| 228 | + border: 1px solid #444; |
| 229 | + } |
206 | 230 | </style>
|
207 | 231 | <div id="card">
|
208 | 232 | <core-animated-pages selected="{{page}}" valueattr="page" transitions="cross-fade hero-transition">
|
|
253 | 277 | </div>
|
254 | 278 | </div>
|
255 | 279 | </paper-shadow>
|
256 |
| - <paper-shadow page="small"> |
| 280 | + <div page="small"> |
257 | 281 | <div class="wrapper">
|
258 | 282 | <div id="overlay-high-small" hero-id="hero" hero="">
|
259 |
| - <core-item> |
260 |
| - <div flex style="overflow:hidden"> |
261 |
| - {{artist}} - {{album}} |
| 283 | + <div horizontal layout> |
| 284 | + <div id="smallCover"> |
| 285 | + <template if="{{isLoading}}"> |
| 286 | + <paper-spinner class="spinnerW" active></paper-spinner> |
| 287 | + </template> |
262 | 288 | </div>
|
263 |
| - <paper-icon-button on-tap="{{doPlayback}}" icon="av:play-arrow"></paper-icon-button> |
264 |
| - <paper-icon-button on-tap="{{doAdd2Playlist}}" icon="av:playlist-add" title="{{add2PlayQueue}}"></paper-icon-button> |
265 |
| - <template if="{{!isFavorite}}"> |
266 |
| - <paper-icon-button on-tap="{{addFavorite}}" ident="{{item}}" icon="favorite-outline" title="{{favoriteAlbum}}"></paper-icon-button> |
267 |
| - </template> |
268 |
| - <template if="{{isFavorite}}"> |
269 |
| - <paper-icon-button on-tap="{{removeFavorite}}" ident="{{item}}" icon="favorite" title="{{favoriteAlbum}}"></paper-icon-button> |
270 |
| - </template> |
271 |
| - <paper-icon-button on-tap="{{doDownload}}" ident="{{albumID}}" icon="file-download" title="{{downloadButton}}" ></paper-icon-button> |
272 |
| - <paper-icon-button class="bumpMargin" on-tap="{{doDetails}}" icon="reorder"></paper-icon-button> |
273 |
| - </core-item> |
| 289 | + <div flex vertical layout> |
| 290 | + <core-item style="margin-top:16px;"> |
| 291 | + <div flex> |
| 292 | + <div style="overflow:hidden;font-size: 12px;top: 2px;position: absolute;max-width: 350px;"> |
| 293 | + {{artist}} |
| 294 | + </div> |
| 295 | + <br> |
| 296 | + <div style="overflow:hidden;font-size: 16px;position: absolute;top: 22px;left: 0px;max-width: 350px;"> |
| 297 | + {{album}} |
| 298 | + </div> |
| 299 | + </div> |
| 300 | + <paper-icon-button on-tap="{{doPlayback}}" icon="av:play-arrow"></paper-icon-button> |
| 301 | + <paper-menu-button> |
| 302 | + <paper-icon-button icon="more-vert" class="bumpMargin"></paper-icon-button> |
| 303 | + <paper-dropdown class="dropdown" halign="right" layered> |
| 304 | + <core-menu class="menu"> |
| 305 | + <core-item> |
| 306 | + <paper-icon-button on-tap="{{doAdd2Playlist}}" icon="av:playlist-add" title="{{add2PlayQueue}}"></paper-icon-button> |
| 307 | + {{add2PlayQueue}} |
| 308 | + </core-item> |
| 309 | + <core-item> |
| 310 | + <template if="{{!isFavorite}}"> |
| 311 | + <paper-icon-button on-tap="{{addFavorite}}" ident="{{item}}" icon="favorite-outline" title="{{favoriteAlbum}}"></paper-icon-button> |
| 312 | + </template> |
| 313 | + <template if="{{isFavorite}}"> |
| 314 | + <paper-icon-button on-tap="{{removeFavorite}}" ident="{{item}}" icon="favorite" title="{{favoriteAlbum}}"></paper-icon-button> |
| 315 | + </template> |
| 316 | + {{favoriteAlbum}} |
| 317 | + </core-item> |
| 318 | + <core-item> |
| 319 | + <paper-icon-button on-tap="{{doDownload}}" ident="{{albumID}}" icon="file-download" title="{{downloadButton}}"></paper-icon-button> |
| 320 | + {{downloadButton}} |
| 321 | + </core-item> |
| 322 | + <core-item> |
| 323 | + <paper-icon-button on-tap="{{doDetails}}" icon="reorder"></paper-icon-button> |
| 324 | + {{albumTracklist}} |
| 325 | + </core-item> |
| 326 | + </core-menu> |
| 327 | + </paper-dropdown> |
| 328 | + </paper-menu-button> |
| 329 | + </core-item> |
| 330 | + </div> |
| 331 | + </div> |
274 | 332 | </div>
|
275 | 333 | </div>
|
276 |
| - </paper-shadow> |
| 334 | + </div> |
277 | 335 | <div page="search">
|
278 | 336 | <div class="wrapper search">
|
279 | 337 | <div id="overlay-full" hero-id="hero" hero="">
|
|
324 | 382 | left:0;
|
325 | 383 | right:0;
|
326 | 384 | bottom:0;
|
327 |
| - padding:16px; |
| 385 | + padding-left:16px; |
328 | 386 | padding-right:8px;
|
329 | 387 | }
|
330 | 388 | paper-dialog::shadow #scroller {
|
|
352 | 410 | <template repeat="{{track in playlist}}">
|
353 | 411 | <core-item>
|
354 | 412 | <div flex style="margin-right:8px; overflow: hidden;">
|
| 413 | + <template if="{{track.disk}}">D.{{track.disk}}.</template> |
| 414 | + <template if="{{track.track}}">T.{{track.track}}: </template> |
355 | 415 | {{track.title}}
|
356 | 416 | </div>
|
357 | 417 | <paper-icon-button icon="av:play-arrow" on-tap="{{playTrack}}" title="{{track.title}}" artist="{{track.artist}}" ident="{{track.id}}" cover="{{track.cover}}" duration="{{track.duration}}"></paper-icon-button>
|
|
0 commit comments