|
| 1 | +.spotify-player-playlists-wrapper { |
| 2 | + overflow: hidden; |
| 3 | + flex: 1; |
| 4 | + box-sizing: border-box; |
| 5 | + overflow-x: auto; |
| 6 | + background-color: var(--darkest); |
| 7 | + border: 1px solid var(--grey); |
| 8 | + padding: 1.2em; |
| 9 | + border-radius: 0.5em; |
| 10 | + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); |
| 11 | + position: relative; |
| 12 | +} |
| 13 | + |
| 14 | +.spotify-player-playlist-container { |
| 15 | + display: grid; |
| 16 | + gap: 1em; |
| 17 | +} |
| 18 | + |
| 19 | +.spotify-player-playlist-container::-webkit-scrollbar { |
| 20 | + width: 10px; |
| 21 | +} |
| 22 | + |
| 23 | +.spotify-player-playlist-container::-webkit-scrollbar-thumb { |
| 24 | + background: var(--scrollbar-thumb-color); |
| 25 | + border-radius: 10px; |
| 26 | +} |
| 27 | + |
| 28 | +.spotify-player-playlist-container::-webkit-scrollbar-thumb:hover { |
| 29 | + background: var(--scrollbar-thumb-hover-color); |
| 30 | +} |
| 31 | + |
| 32 | +.spotify-player-arrow { |
| 33 | + position: absolute; |
| 34 | + right: 1em; |
| 35 | + top: 50%; |
| 36 | + transform: translateY(-50%); |
| 37 | + font-size: 2rem; |
| 38 | + color: var(--subtext-color); |
| 39 | + pointer-events: none; |
| 40 | + opacity: 0.7; |
| 41 | + transition: opacity 0.2s ease-in-out, transform 0.0s ease; |
| 42 | +} |
| 43 | + |
| 44 | +.spotify-player-arrow.arrow-visible { |
| 45 | + opacity: 0.7; |
| 46 | +} |
| 47 | + |
| 48 | +.spotify-player-arrow:hover { |
| 49 | + opacity: 1; |
| 50 | +} |
| 51 | + |
| 52 | +.spotify-player-arrow.arrow-hidden { |
| 53 | + opacity: 0; |
| 54 | +} |
| 55 | + |
| 56 | +.spotify-player-playlist-item { |
| 57 | + display: flex; |
| 58 | + flex-direction: row; |
| 59 | + align-items: center; |
| 60 | + justify-content: space-around; |
| 61 | + gap: 0.5em; |
| 62 | + padding: 0.5em; |
| 63 | + background-color: var(--dark); |
| 64 | + border: 1px solid var(--button-border); |
| 65 | + border-radius: 0.5em; |
| 66 | + cursor: pointer; |
| 67 | + scroll-snap-align: start; |
| 68 | + transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; |
| 69 | + overflow: hidden; |
| 70 | + width: 200px; |
| 71 | +} |
| 72 | + |
| 73 | +.spotify-player-playlist-item:hover { |
| 74 | + transform: scale(1.05); |
| 75 | + background-color: var(--grey); |
| 76 | +} |
| 77 | + |
| 78 | +.spotify-player-playlist-item.active { |
| 79 | + background-color: var(--accent-color); |
| 80 | +} |
| 81 | + |
| 82 | +.spotify-player-playlist-item.active .spotify-player-playlist-info h4 { |
| 83 | + color: var(--darkest); |
| 84 | +} |
| 85 | + |
| 86 | +.spotify-player-playlist-item.active .spotify-player-playlist-info p { |
| 87 | + color: var(--dark); |
| 88 | + font-weight: bold; |
| 89 | +} |
| 90 | + |
| 91 | +.spotify-player-playlist-image { |
| 92 | + width: 50px; |
| 93 | + height: 50px; |
| 94 | + border-radius: 0.5em; |
| 95 | +} |
| 96 | + |
| 97 | +.spotify-player-playlist-info { |
| 98 | + text-align: start; |
| 99 | + white-space: nowrap; |
| 100 | + overflow: hidden; |
| 101 | + text-overflow: ellipsis; |
| 102 | + flex: 1; |
| 103 | +} |
| 104 | + |
| 105 | +.spotify-player-playlist-info h4 { |
| 106 | + margin: 0; |
| 107 | + white-space: nowrap; |
| 108 | + overflow: hidden; |
| 109 | + font-size: 1rem; |
| 110 | + text-overflow: ellipsis; |
| 111 | +} |
| 112 | + |
| 113 | +.spotify-player-playlist-info p { |
| 114 | + margin: 0; |
| 115 | + white-space: nowrap; |
| 116 | + overflow: hidden; |
| 117 | + font-size: 0.875rem; |
| 118 | + text-overflow: ellipsis; |
| 119 | +} |
| 120 | + |
| 121 | +.spotify-player-play-button { |
| 122 | + color: var(--blue); |
| 123 | + background-color: var(--dark); |
| 124 | + border: 1px solid var(--darker); |
| 125 | + border-radius: 0.5em; |
| 126 | + cursor: pointer; |
| 127 | + padding: 0.5em 0.75em; |
| 128 | + font-size: 1rem; |
| 129 | + cursor: pointer; |
| 130 | + transition: background-color 0.2s ease-in-out transform 0.2s ease-in-out; |
| 131 | +} |
| 132 | + |
| 133 | +.spotify-player-play-button:hover { |
| 134 | + background-color: var(--button-hover-background); |
| 135 | + color: var(--magenta); |
| 136 | + transform: scale(1.05); |
| 137 | +} |
0 commit comments