-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
171 lines (148 loc) · 3.17 KB
/
style.css
File metadata and controls
171 lines (148 loc) · 3.17 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* Reset et styles de base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: transparent !important;
overflow: hidden;
}
/* Container principal du widget */
.widget-container {
position: fixed;
bottom: 20px;
right: 20px;
max-width: 450px;
padding: 20px;
background: rgba(15, 15, 15, 0.88);
border-radius: 16px;
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.1) inset;
border: 1px solid rgba(255, 255, 255, 0.1);
opacity: 1;
transition: opacity 0.8s ease-in-out;
pointer-events: auto;
}
/* Widget caché après 10s d'inactivité */
.widget-container.widget-hidden {
opacity: 0;
pointer-events: none;
}
/* Contenu avec animation */
.content {
display: flex;
align-items: center;
gap: 16px;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.content.fade-in {
opacity: 1;
}
.content.fade-out {
opacity: 0;
}
/* Container de la pochette d'album */
.album-art-container {
position: relative;
flex-shrink: 0;
}
.album-art {
width: 80px;
height: 80px;
border-radius: 8px;
object-fit: cover;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
display: none;
/* Caché par défaut, affiché seulement si disponible */
}
/* Icône musicale de fallback */
.music-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 48px;
opacity: 0.3;
pointer-events: none;
}
.album-art[style*="display: block"]~.music-icon {
display: none;
}
/* Informations du morceau */
.track-info {
flex: 1;
min-width: 0;
/* Permet le text-overflow */
display: flex;
flex-direction: column;
gap: 6px;
}
.track-title {
font-size: 18px;
font-weight: 600;
color: #ffffff;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
overflow: hidden;
white-space: nowrap;
}
.track-artist {
font-size: 14px;
font-weight: 400;
color: #b3b3b3;
overflow: hidden;
white-space: nowrap;
}
/* Défilement style Spotify */
.track-title .scroll-text,
.track-artist .scroll-text {
display: inline-block;
white-space: nowrap;
will-change: transform;
}
/* Animation de pulsation subtile pour l'icône musicale */
@keyframes pulse {
0%,
100% {
opacity: 0.3;
transform: translate(-50%, -50%) scale(1);
}
50% {
opacity: 0.5;
transform: translate(-50%, -50%) scale(1.05);
}
}
.music-icon {
animation: pulse 2s ease-in-out infinite;
}
/* Effet de survol (optionnel) */
.widget-container:hover {
box-shadow:
0 12px 48px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.15) inset;
transform: translateY(-2px);
transition: all 0.3s ease;
}
/* Responsive pour petits écrans */
@media (max-width: 600px) {
.widget-container {
bottom: 10px;
right: 10px;
max-width: 320px;
padding: 16px;
}
.album-art {
width: 60px;
height: 60px;
}
.track-title {
font-size: 16px;
}
.track-artist {
font-size: 13px;
}
}