Skip to content

Commit 87c14ec

Browse files
committed
Pick rank in rank sort, and highlight playlist button
1 parent 328f862 commit 87c14ec

File tree

5 files changed

+323
-94
lines changed

5 files changed

+323
-94
lines changed

client/peepee.css

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,32 @@ body {
374374
margin-top: -24px;
375375
min-height: 24px; }
376376

377+
@keyframes playlist {
378+
from, 5% {
379+
transform: scale(1) rotate(0deg); }
380+
8%, 12%, 16%, 20%, 24%, 28% {
381+
transform: scale(2) rotate(4deg); }
382+
10%, 14%, 18%, 22%, 26%, 30% {
383+
transform: scale(2) rotate(-4deg); }
384+
60%, 64%, 68%, 72%, 76%, 80% {
385+
transform: scale(1.7) rotate(0deg); }
386+
32%, 58%, 62%, 66%, 70%, 74%, 78%, 82%, 88% {
387+
transform: scale(2) rotate(0deg); }
388+
90%, 92% {
389+
transform: scale(2) rotate(360deg); }
390+
95%, to {
391+
transform: scale(1) rotate(360deg); } }
392+
393+
@keyframes playlistInfo {
394+
from, to {
395+
visibility: hidden;
396+
opacity: 0;
397+
transform: scale(0.8) translate(4px, -2px); }
398+
5%, 95% {
399+
visibility: visible;
400+
opacity: 1;
401+
transform: scale(1) translate(0, 0); } }
402+
377403
.list {
378404
display: inline-block;
379405
flex: 1 1 auto;
@@ -385,14 +411,42 @@ body {
385411
margin: 24px 4px 0; }
386412
.list .playlist {
387413
display: inline-block;
414+
position: relative;
388415
width: 16px;
389416
height: 16px;
390417
vertical-align: middle;
391418
margin-left: 8px;
392419
border: none;
393-
background: center / contain no-repeat;
394-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='width:24px;height:24px' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15,6H3V8H15V6M15,10H3V12H15V10M3,16H11V14H3V16M17,6V14.18C16.69,14.07 16.35,14 16,14A3,3 0 0,0 13,17A3,3 0 0,0 16,20A3,3 0 0,0 19,17V8H22V6H17Z' /%3E%3C/svg%3E");
395-
cursor: pointer; }
420+
background: none;
421+
padding: 0;
422+
cursor: pointer;
423+
outline: none; }
424+
.list .playlist::before {
425+
content: '';
426+
display: block;
427+
position: relative;
428+
width: 100%;
429+
height: 100%;
430+
background: center / contain no-repeat;
431+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='width:24px;height:24px' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15,6H3V8H15V6M15,10H3V12H15V10M3,16H11V14H3V16M17,6V14.18C16.69,14.07 16.35,14 16,14A3,3 0 0,0 13,17A3,3 0 0,0 16,20A3,3 0 0,0 19,17V8H22V6H17Z' /%3E%3C/svg%3E"); }
432+
.list .playlist:focus::before {
433+
outline: #e59700 auto 5px; }
434+
435+
.unplayed .playlist::before {
436+
animation: playlist 7s 5s both; }
437+
438+
.unplayed .playlist::after {
439+
content: '';
440+
position: absolute;
441+
bottom: 100%;
442+
left: 100%;
443+
width: 239px;
444+
height: 119px;
445+
transform-origin: bottom left;
446+
background: url("/client/playlist-info.png") center/contain no-repeat;
447+
pointer-events: none;
448+
animation: playlistInfo 8s 5s both;
449+
outline: none; }
396450

397451
.list-header {
398452
flex: 0 0 auto;
@@ -456,19 +510,19 @@ body {
456510
visibility: visible;
457511
transform: translate(0, -50%) translateY(0); }
458512

459-
.compare-form {
513+
.compare-form, .rank-form {
460514
background: white;
461515
overflow: hidden;
462516
border-radius: 999px;
463517
margin: 0;
464518
max-height: 0;
465519
transition: margin .2s, max-height .2s; }
466520

467-
.show-compare .compare-form {
521+
.mathod-compare .compare-form, .method-rank .rank-form {
468522
margin: 4px 0;
469523
max-height: 24px; }
470524

471-
.compare-input {
525+
.compare-input, .rank-input {
472526
height: 24px;
473527
padding: 0 8px;
474528
width: 144px;
@@ -477,10 +531,10 @@ body {
477531
font-family: inherit;
478532
vertical-align: middle; }
479533

480-
.compare-submit {
534+
.compare-submit, .rank-submit {
481535
background: none;
482536
border: none;
483-
border-left: 1px solid #aaa;
537+
border-left: 1px solid #ddd;
484538
padding: 0;
485539
margin: 0;
486540
height: 24px;
@@ -490,7 +544,7 @@ body {
490544
vertical-align: middle;
491545
overflow: hidden;
492546
color: transparent; }
493-
.compare-submit:before {
547+
.compare-submit:before, .rank-submit:before {
494548
content: '👌';
495549
position: absolute;
496550
top: 50%;
@@ -505,11 +559,10 @@ body {
505559
margin-top: 0; }
506560

507561
.list-content {
508-
flex: 1 1 auto;
562+
flex: 0 1 auto;
509563
position: relative;
510564
width: 100%;
511565
min-height: 104px;
512-
border: 2px solid #191919;
513566
border-radius: 4px;
514567
box-sizing: border-box;
515568
overflow: auto; }

0 commit comments

Comments
 (0)