AdityaAdaki commited on
Commit
bef1b46
·
1 Parent(s): ba222a5

design rework

Browse files
Files changed (1) hide show
  1. static/style.css +146 -44
static/style.css CHANGED
@@ -1,9 +1,22 @@
1
  :root {
2
- --primary-color: #1a73e8;
3
- --secondary-color: #e8f0fe;
4
- --text-color: #333;
5
- --bg-color: #f0f2f5;
 
 
 
 
 
 
 
6
  --sidebar-width: 250px;
 
 
 
 
 
 
7
  }
8
 
9
  * {
@@ -13,9 +26,10 @@
13
  }
14
 
15
  body {
16
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
17
- background: var(--bg-color);
18
- color: var(--text-color);
 
19
  }
20
 
21
  .container {
@@ -33,10 +47,11 @@ body {
33
  bottom: 0;
34
  left: 0;
35
  right: 0;
36
- background: white;
37
  padding: 1rem;
38
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
39
  z-index: 100;
 
40
  }
41
 
42
  .now-playing {
@@ -106,6 +121,7 @@ body {
106
  }
107
 
108
  .play-btn:hover {
 
109
  transform: scale(1.1);
110
  }
111
 
@@ -125,14 +141,14 @@ button {
125
  border: none;
126
  cursor: pointer;
127
  font-size: 1.5rem;
128
- color: #1a73e8;
129
  padding: 0.5rem;
130
  border-radius: 50%;
131
  transition: background-color 0.3s;
132
  }
133
 
134
  button:hover {
135
- background-color: #f0f2f5;
136
  }
137
 
138
  .volume-control {
@@ -147,7 +163,7 @@ button:hover {
147
  }
148
 
149
  .sidebar {
150
- background: white;
151
  border-radius: 12px;
152
  padding: 1rem;
153
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
@@ -155,6 +171,7 @@ button:hover {
155
  position: sticky;
156
  top: 1rem;
157
  overflow-y: auto;
 
158
  }
159
 
160
  .nav-menu, .playlist-menu {
@@ -166,34 +183,35 @@ button:hover {
166
  .nav-menu li a, .playlist-menu li a {
167
  display: block;
168
  padding: 0.75rem 1rem;
169
- color: #333;
170
  text-decoration: none;
171
  border-radius: 6px;
172
  transition: background-color 0.3s;
173
  }
174
 
175
  .nav-menu li a:hover, .playlist-menu li a:hover {
176
- background-color: #f0f2f5;
177
  }
178
 
179
  .nav-menu li a.active {
180
- background-color: #e8f0fe;
181
- color: #1a73e8;
182
  }
183
 
184
  .btn-new-playlist {
185
  width: 100%;
186
  padding: 0.75rem;
187
  background: none;
188
- border: 1px dashed #1a73e8;
189
- color: #1a73e8;
190
  border-radius: 6px;
191
  cursor: pointer;
192
  transition: all 0.3s;
193
  }
194
 
195
  .btn-new-playlist:hover {
196
- background: #e8f0fe;
 
197
  }
198
 
199
  .main-content {
@@ -217,9 +235,10 @@ button:hover {
217
 
218
  .search-box input {
219
  padding: 0.5rem 2rem 0.5rem 1rem;
220
- border: 1px solid #ddd;
221
  border-radius: 20px;
222
  width: 200px;
 
223
  }
224
 
225
  .search-box i {
@@ -241,6 +260,10 @@ button:hover {
241
  text-align: center;
242
  cursor: pointer;
243
  transition: transform 0.3s;
 
 
 
 
244
  }
245
 
246
  .album-card:hover, .artist-card:hover {
@@ -267,17 +290,23 @@ button:hover {
267
  align-items: center;
268
  padding: 0.75rem;
269
  border-radius: 8px;
270
- background: white;
271
  transition: transform 0.2s ease;
 
272
  }
273
 
274
  .music-item:hover {
 
275
  transform: translateX(5px);
276
  }
277
 
278
  .music-item.playing {
279
- background-color: #e8f0fe;
280
- color: #1a73e8;
 
 
 
 
281
  }
282
 
283
  input[type="range"] {
@@ -293,7 +322,7 @@ input[type="range"]::-webkit-slider-thumb {
293
  -webkit-appearance: none;
294
  width: 15px;
295
  height: 15px;
296
- background: #1a73e8;
297
  border-radius: 50%;
298
  }
299
 
@@ -310,10 +339,11 @@ input[type="range"]::-webkit-slider-thumb {
310
  }
311
 
312
  .modal-content {
313
- background: white;
314
  padding: 2rem;
315
  border-radius: 12px;
316
  width: 400px;
 
317
  }
318
 
319
  .modal-content input {
@@ -337,11 +367,15 @@ input[type="range"]::-webkit-slider-thumb {
337
  }
338
 
339
  #save-playlist {
340
- background: #1a73e8;
341
  color: white;
342
  border: none;
343
  }
344
 
 
 
 
 
345
  #cancel-playlist {
346
  background: none;
347
  border: 1px solid #ddd;
@@ -357,7 +391,7 @@ input[type="range"]::-webkit-slider-thumb {
357
  }
358
 
359
  .track-artist {
360
- color: #666;
361
  font-size: 0.9em;
362
  }
363
 
@@ -383,14 +417,14 @@ input[type="range"]::-webkit-slider-thumb {
383
  }
384
 
385
  .menu-item:hover {
386
- background-color: #f0f2f5;
387
  }
388
 
389
  .notification {
390
  position: fixed;
391
  bottom: 20px;
392
  right: 20px;
393
- background: #1a73e8;
394
  color: white;
395
  padding: 0.75rem 1.5rem;
396
  border-radius: 4px;
@@ -513,7 +547,7 @@ input[type="range"]::-webkit-slider-thumb {
513
  }
514
 
515
  .menu-item:hover {
516
- background-color: #f0f2f5;
517
  }
518
 
519
  .menu-item i {
@@ -571,15 +605,15 @@ input[type="range"]::-webkit-slider-thumb {
571
  }
572
 
573
  .lyrics-line:hover {
574
- background-color: #f0f2f5;
575
  opacity: 1;
576
  }
577
 
578
  .lyrics-line.active {
579
- color: #1a73e8;
580
  font-weight: bold;
581
  opacity: 1;
582
- background-color: #e8f0fe;
583
  }
584
 
585
  .playlist-header {
@@ -607,7 +641,7 @@ input[type="range"]::-webkit-slider-thumb {
607
  }
608
 
609
  .play-playlist {
610
- background: #1a73e8;
611
  color: white;
612
  padding: 0.75rem 1.5rem;
613
  border-radius: 20px;
@@ -615,7 +649,7 @@ input[type="range"]::-webkit-slider-thumb {
615
  }
616
 
617
  .play-playlist:hover {
618
- background: #1557b0;
619
  }
620
 
621
  .playlist-count {
@@ -711,7 +745,7 @@ input[type="range"]::-webkit-slider-thumb {
711
  }
712
 
713
  .existing-playlist-item:hover {
714
- background-color: #f0f2f5;
715
  }
716
 
717
  .existing-playlist-item i {
@@ -764,7 +798,7 @@ input[type="range"]::-webkit-slider-thumb {
764
 
765
  .play-album-btn {
766
  margin-top: 1rem;
767
- background: #1a73e8;
768
  color: white;
769
  padding: 0.75rem 1.5rem;
770
  border-radius: 20px;
@@ -772,7 +806,7 @@ input[type="range"]::-webkit-slider-thumb {
772
  }
773
 
774
  .play-album-btn:hover {
775
- background: #1557b0;
776
  }
777
 
778
  .track-number {
@@ -793,12 +827,17 @@ input[type="range"]::-webkit-slider-thumb {
793
  top: 1rem;
794
  left: 1rem;
795
  z-index: 1000;
796
- background: white;
797
  border: none;
798
  padding: 0.5rem;
799
  border-radius: 50%;
800
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
801
  cursor: pointer;
 
 
 
 
 
802
  }
803
 
804
  /* Media queries for responsive design */
@@ -842,20 +881,33 @@ input[type="range"]::-webkit-slider-thumb {
842
  /* Dark mode support */
843
  @media (prefers-color-scheme: dark) {
844
  :root {
845
- --bg-color: #121212;
846
- --text-color: #ffffff;
847
- --secondary-color: #282828;
 
 
 
848
  }
849
 
850
  .sidebar,
851
  .music-player,
852
  .music-item {
853
- background: #282828;
854
  }
855
 
856
  .modal-content {
857
- background: #282828;
858
- color: white;
 
 
 
 
 
 
 
 
 
 
859
  }
860
  }
861
 
@@ -875,4 +927,54 @@ input[type="range"]::-webkit-slider-thumb {
875
  display: block;
876
  }
877
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
878
 
 
1
  :root {
2
+ /* Bootstrap-inspired color palette */
3
+ --primary-color: #0d6efd;
4
+ --primary-hover: #0b5ed7;
5
+ --secondary-color: #6c757d;
6
+ --success-color: #198754;
7
+ --info-color: #0dcaf0;
8
+ --warning-color: #ffc107;
9
+ --danger-color: #dc3545;
10
+ --light-color: #f8f9fa;
11
+ --dark-color: #212529;
12
+ --body-bg: #f8f9fa;
13
  --sidebar-width: 250px;
14
+
15
+ /* Additional theme colors */
16
+ --border-color: #dee2e6;
17
+ --text-muted: #6c757d;
18
+ --component-bg: #ffffff;
19
+ --hover-bg: #e9ecef;
20
  }
21
 
22
  * {
 
26
  }
27
 
28
  body {
29
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
30
+ background: var(--body-bg);
31
+ color: var(--dark-color);
32
+ line-height: 1.5;
33
  }
34
 
35
  .container {
 
47
  bottom: 0;
48
  left: 0;
49
  right: 0;
50
+ background: var(--component-bg);
51
  padding: 1rem;
52
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
53
  z-index: 100;
54
+ border-top: 1px solid var(--border-color);
55
  }
56
 
57
  .now-playing {
 
121
  }
122
 
123
  .play-btn:hover {
124
+ background: var(--primary-hover);
125
  transform: scale(1.1);
126
  }
127
 
 
141
  border: none;
142
  cursor: pointer;
143
  font-size: 1.5rem;
144
+ color: var(--primary-color);
145
  padding: 0.5rem;
146
  border-radius: 50%;
147
  transition: background-color 0.3s;
148
  }
149
 
150
  button:hover {
151
+ background-color: var(--hover-bg);
152
  }
153
 
154
  .volume-control {
 
163
  }
164
 
165
  .sidebar {
166
+ background: var(--component-bg);
167
  border-radius: 12px;
168
  padding: 1rem;
169
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
171
  position: sticky;
172
  top: 1rem;
173
  overflow-y: auto;
174
+ border: 1px solid var(--border-color);
175
  }
176
 
177
  .nav-menu, .playlist-menu {
 
183
  .nav-menu li a, .playlist-menu li a {
184
  display: block;
185
  padding: 0.75rem 1rem;
186
+ color: var(--dark-color);
187
  text-decoration: none;
188
  border-radius: 6px;
189
  transition: background-color 0.3s;
190
  }
191
 
192
  .nav-menu li a:hover, .playlist-menu li a:hover {
193
+ background-color: var(--hover-bg);
194
  }
195
 
196
  .nav-menu li a.active {
197
+ background-color: var(--primary-color);
198
+ color: white;
199
  }
200
 
201
  .btn-new-playlist {
202
  width: 100%;
203
  padding: 0.75rem;
204
  background: none;
205
+ border: 1px solid var(--primary-color);
206
+ color: var(--primary-color);
207
  border-radius: 6px;
208
  cursor: pointer;
209
  transition: all 0.3s;
210
  }
211
 
212
  .btn-new-playlist:hover {
213
+ background: var(--primary-color);
214
+ color: white;
215
  }
216
 
217
  .main-content {
 
235
 
236
  .search-box input {
237
  padding: 0.5rem 2rem 0.5rem 1rem;
238
+ border: 1px solid var(--border-color);
239
  border-radius: 20px;
240
  width: 200px;
241
+ background: var(--component-bg);
242
  }
243
 
244
  .search-box i {
 
260
  text-align: center;
261
  cursor: pointer;
262
  transition: transform 0.3s;
263
+ background: var(--component-bg);
264
+ padding: 1rem;
265
+ border-radius: 8px;
266
+ border: 1px solid var(--border-color);
267
  }
268
 
269
  .album-card:hover, .artist-card:hover {
 
290
  align-items: center;
291
  padding: 0.75rem;
292
  border-radius: 8px;
293
+ background: var(--component-bg);
294
  transition: transform 0.2s ease;
295
+ border: 1px solid var(--border-color);
296
  }
297
 
298
  .music-item:hover {
299
+ border-color: var(--primary-color);
300
  transform: translateX(5px);
301
  }
302
 
303
  .music-item.playing {
304
+ background-color: var(--primary-color);
305
+ color: white;
306
+ }
307
+
308
+ .music-item.playing .track-artist {
309
+ color: rgba(255, 255, 255, 0.8);
310
  }
311
 
312
  input[type="range"] {
 
322
  -webkit-appearance: none;
323
  width: 15px;
324
  height: 15px;
325
+ background: var(--primary-color);
326
  border-radius: 50%;
327
  }
328
 
 
339
  }
340
 
341
  .modal-content {
342
+ background: var(--component-bg);
343
  padding: 2rem;
344
  border-radius: 12px;
345
  width: 400px;
346
+ border: none;
347
  }
348
 
349
  .modal-content input {
 
367
  }
368
 
369
  #save-playlist {
370
+ background: var(--primary-color);
371
  color: white;
372
  border: none;
373
  }
374
 
375
+ #save-playlist:hover {
376
+ background: var(--primary-hover);
377
+ }
378
+
379
  #cancel-playlist {
380
  background: none;
381
  border: 1px solid #ddd;
 
391
  }
392
 
393
  .track-artist {
394
+ color: var(--text-muted);
395
  font-size: 0.9em;
396
  }
397
 
 
417
  }
418
 
419
  .menu-item:hover {
420
+ background-color: var(--hover-bg);
421
  }
422
 
423
  .notification {
424
  position: fixed;
425
  bottom: 20px;
426
  right: 20px;
427
+ background: var(--primary-color);
428
  color: white;
429
  padding: 0.75rem 1.5rem;
430
  border-radius: 4px;
 
547
  }
548
 
549
  .menu-item:hover {
550
+ background-color: var(--hover-bg);
551
  }
552
 
553
  .menu-item i {
 
605
  }
606
 
607
  .lyrics-line:hover {
608
+ background-color: var(--hover-bg);
609
  opacity: 1;
610
  }
611
 
612
  .lyrics-line.active {
613
+ color: var(--primary-color);
614
  font-weight: bold;
615
  opacity: 1;
616
+ background-color: var(--primary-color);
617
  }
618
 
619
  .playlist-header {
 
641
  }
642
 
643
  .play-playlist {
644
+ background: var(--primary-color);
645
  color: white;
646
  padding: 0.75rem 1.5rem;
647
  border-radius: 20px;
 
649
  }
650
 
651
  .play-playlist:hover {
652
+ background: var(--primary-hover);
653
  }
654
 
655
  .playlist-count {
 
745
  }
746
 
747
  .existing-playlist-item:hover {
748
+ background-color: var(--hover-bg);
749
  }
750
 
751
  .existing-playlist-item i {
 
798
 
799
  .play-album-btn {
800
  margin-top: 1rem;
801
+ background: var(--primary-color);
802
  color: white;
803
  padding: 0.75rem 1.5rem;
804
  border-radius: 20px;
 
806
  }
807
 
808
  .play-album-btn:hover {
809
+ background: var(--primary-hover);
810
  }
811
 
812
  .track-number {
 
827
  top: 1rem;
828
  left: 1rem;
829
  z-index: 1000;
830
+ background: var(--primary-color);
831
  border: none;
832
  padding: 0.5rem;
833
  border-radius: 50%;
834
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
835
  cursor: pointer;
836
+ color: white;
837
+ }
838
+
839
+ .mobile-menu-btn:hover {
840
+ background: var(--primary-hover);
841
  }
842
 
843
  /* Media queries for responsive design */
 
881
  /* Dark mode support */
882
  @media (prefers-color-scheme: dark) {
883
  :root {
884
+ --body-bg: #212529;
885
+ --component-bg: #343a40;
886
+ --dark-color: #f8f9fa;
887
+ --border-color: #495057;
888
+ --hover-bg: #495057;
889
+ --text-muted: #adb5bd;
890
  }
891
 
892
  .sidebar,
893
  .music-player,
894
  .music-item {
895
+ background: var(--component-bg);
896
  }
897
 
898
  .modal-content {
899
+ background: var(--component-bg);
900
+ }
901
+
902
+ input[type="text"] {
903
+ background: var(--component-bg);
904
+ color: var(--dark-color);
905
+ border-color: var(--border-color);
906
+ }
907
+
908
+ .search-box input {
909
+ background: var(--component-bg);
910
+ color: var(--dark-color);
911
  }
912
  }
913
 
 
927
  display: block;
928
  }
929
  }
930
+
931
+ /* Improved mobile styles */
932
+ @media (max-width: 768px) {
933
+ .mobile-menu-btn {
934
+ background: var(--primary-color);
935
+ color: white;
936
+ }
937
+
938
+ .mobile-menu-btn:hover {
939
+ background: var(--primary-hover);
940
+ }
941
+
942
+ .sidebar {
943
+ background: var(--component-bg);
944
+ }
945
+
946
+ .main-content {
947
+ margin-top: 60px;
948
+ }
949
+
950
+ .music-player {
951
+ padding: 0.75rem;
952
+ }
953
+
954
+ .volume-control {
955
+ display: none; /* Hide volume on mobile */
956
+ }
957
+
958
+ .control-buttons {
959
+ padding: 0.5rem 0;
960
+ }
961
+ }
962
+
963
+ /* Improved scrollbars */
964
+ ::-webkit-scrollbar {
965
+ width: 8px;
966
+ }
967
+
968
+ ::-webkit-scrollbar-track {
969
+ background: var(--body-bg);
970
+ }
971
+
972
+ ::-webkit-scrollbar-thumb {
973
+ background: var(--secondary-color);
974
+ border-radius: 4px;
975
+ }
976
+
977
+ ::-webkit-scrollbar-thumb:hover {
978
+ background: var(--primary-color);
979
+ }
980