File size: 2,428 Bytes
ba6c831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b50f5bd
ba6c831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb2c7d1
ba6c831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.playlist-container {
  padding: 20px;
  background-color: var(--foreground-1);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 30vh;
  overflow-y: auto;
}

/* For WebKit browsers (Chrome, Edge, Safari) */
.playlist::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.playlist::-webkit-scrollbar-track {
  background: #222; /* Track color */
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background-color: #888; /* Scrollbar thumb color */
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Thumb color on hover */
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s; /* Smooth transition for background change */
}

.playlist-item.playing {
  background-color: var(--highlight-color);
  color: var(--text-highlight);
}

.track-title {
  cursor: pointer;
  font-size: .8rem;
  color: var(--text-color);
}

.remove-button,
.save-button,
.clear-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground-secondary);
}

.remove-button:hover,
.clear-button:hover {
  color: red; /* Change color on hover */
}

.playlist-action-container{
    display: flex;
}

.save-button {
  margin-left: 10px; /* Add some spacing */
}

.clear-button {
  margin-left: 10px; /* Add some spacing */
  display: flex;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure modal is on top */
}

.modal-content {
  background: var(--foreground-5);
  padding: 20px;
  border-radius: 10px;
}

.modal-close-button {
  background: none;
  border: none;
  color: var(--foreground-secondary);
  cursor: pointer;
}

.save-confirm-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.save-confirm-button:hover {
  background-color: var(--primary-color-dark); /* Darker shade on hover */
}

.playlist-name-input {
  background: var(--foreground-3);
  padding: 5px;
  border-radius: 5px;
}