File size: 1,698 Bytes
11c56f5
ad5cee0
ba6c831
98f877e
96b94b7
 
 
 
11c56f5
 
ba6c831
 
ad5cee0
ba6c831
21986a1
 
11c56f5
 
96b94b7
11c56f5
 
 
 
 
 
ba6c831
11c56f5
 
 
 
 
 
f57be92
ba6c831
 
 
 
 
 
 
 
 
 
 
 
f57be92
 
 
ba6c831
f57be92
 
 
 
 
 
 
 
 
ba6c831
f57be92
 
 
 
 
 
 
 
 
 
 
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
.music-card {
  width: 250px;
  height: 50px; /* Increased height to accommodate the button */
  background-image: linear-gradient(var(--background-4), var(--foreground-3));
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between elements */
  padding: 0 5px; /* Added padding for better spacing */
  overflow: hidden;
  transition: scale 0.3s ease;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 0.8rem;
  cursor: pointer;
  flex-grow: 1; /* Allow the title to take available space */
}

.card-icon {
  font-size: 40px;
  overflow: visible;
}

.add-to-playlist {
  background: none; /* Remove default button background */
  border: none; /* Remove default button border */
  cursor: pointer; /* Change cursor to pointer */
}

.add-icon {
  font-size: 20px; /* Adjust the icon size as needed */
  color: var(--foreground-secondary); /* Use a theme color */
}

.music-card:hover {
  scale: 1.03;
}

.music-card.now-playing {
  background-image: linear-gradient(var(--background-2), var(--foreground-2));
  border: 2px solid var(--foreground-secondary);
  border-right: none;
  border-bottom: none;
  border-left: none;
  box-shadow: 0 0 15px var(--foreground-secondary);
  scale: 1.03;
}

.music-card.now-playing .card-icon {
  animation: rotateInfinite 1.5s linear infinite;
}

@keyframes rotateInfinite {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}