Skip to content

Commit 2c5a951

Browse files
committed
Moving styling to style.css
1 parent 69bf351 commit 2c5a951

File tree

2 files changed

+90
-91
lines changed

2 files changed

+90
-91
lines changed

static/style.css

Lines changed: 90 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ body {
6060
}
6161

6262
.controls button.running {
63-
background: rgb(105, 206, 105) !important;
63+
background: rgb(105, 206, 105);
6464
cursor: not-allowed;
6565
}
6666

6767
.controls button:disabled:not(.running) {
68-
background: linear-gradient(to right, #ec4899, #a855f7, #3b82f6) !important;
69-
opacity: 1 !important;
68+
background: linear-gradient(to right, #ec4899, #a855f7, #3b82f6);
69+
opacity: 1;
7070
cursor: not-allowed;
7171
}
7272

@@ -132,10 +132,10 @@ body {
132132

133133
#csvConfirmationPopup,
134134
#npgDevicePopup {
135-
animation: none !important; /* Disable fade-out */
136-
visibility: visible !important;
137-
opacity: 1 !important;
138-
display: none; /* Start hidden, we'll control visibility via JS */
135+
animation: none; /* Disable fade-out */
136+
visibility: visible;
137+
opacity: 1;
138+
display: none;
139139
}
140140

141141
.popup:not(#csvConfirmationPopup):not(#npgDevicePopup) {
@@ -271,6 +271,89 @@ body {
271271
cursor: not-allowed;
272272
}
273273

274+
/* NPG Device Popup Styles */
275+
#npgDevicePopup {
276+
position: fixed;
277+
top: 50%;
278+
left: 50%;
279+
transform: translate(-50%, -50%);
280+
background-color: white;
281+
padding: 25px;
282+
border-radius: 10px;
283+
box-shadow: 0 0 20px rgba(0,0,0,0.3);
284+
z-index: 1000;
285+
width: 400px;
286+
max-width: 90%;
287+
display: none;
288+
}
289+
#npgDevicePopup h3 {
290+
margin-top: 0;
291+
color: #a855f7;
292+
text-align: center;
293+
}
294+
#npgDeviceList {
295+
max-height: 300px;
296+
overflow-y: auto;
297+
margin: 15px 0;
298+
border: 1px solid #eee;
299+
border-radius: 8px;
300+
padding: 10px;
301+
}
302+
.npg-device-item {
303+
padding: 12px;
304+
margin: 8px 0;
305+
background: #f8f9fa;
306+
border-radius: 6px;
307+
cursor: pointer;
308+
transition: all 0.2s;
309+
}
310+
.npg-device-item:hover {
311+
background: #e9ecef;
312+
}
313+
.npg-device-item.selected {
314+
background: #a855f7;
315+
color: white;
316+
}
317+
#npgPopupStatus {
318+
margin: 10px 0;
319+
min-height: 24px;
320+
font-weight: bold;
321+
text-align: center;
322+
}
323+
.scanning-status {
324+
color: #3b82f6;
325+
}
326+
.connected-status {
327+
color: #10b981;
328+
}
329+
.error-status {
330+
color: #ef4444;
331+
}
332+
.npg-popup-buttons {
333+
display: flex;
334+
justify-content: flex-end;
335+
gap: 10px;
336+
margin-top: 20px;
337+
}
338+
.npg-popup-btn {
339+
padding: 8px 20px;
340+
border: none;
341+
border-radius: 6px;
342+
cursor: pointer;
343+
font-weight: 500;
344+
}
345+
.npg-connect-btn {
346+
background: #10b981;
347+
color: white;
348+
}
349+
.npg-connect-btn:disabled {
350+
background: #a7f3d0;
351+
cursor: not-allowed;
352+
}
353+
.npg-cancel-btn {
354+
background: #f1f1f1;
355+
}
356+
274357
.bottom-text {
275358
position: fixed;
276359
bottom: 1px;

templates/index.html

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -5,90 +5,6 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Chords-Python Applications</title>
77
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
8-
<style>
9-
/* NPG Device Popup Styles */
10-
#npgDevicePopup {
11-
position: fixed;
12-
top: 50%;
13-
left: 50%;
14-
transform: translate(-50%, -50%);
15-
background-color: white;
16-
padding: 25px;
17-
border-radius: 10px;
18-
box-shadow: 0 0 20px rgba(0,0,0,0.3);
19-
z-index: 1000;
20-
width: 400px;
21-
max-width: 90%;
22-
display: none;
23-
}
24-
#npgDevicePopup h3 {
25-
margin-top: 0;
26-
color: #a855f7;
27-
text-align: center;
28-
}
29-
#npgDeviceList {
30-
max-height: 300px;
31-
overflow-y: auto;
32-
margin: 15px 0;
33-
border: 1px solid #eee;
34-
border-radius: 8px;
35-
padding: 10px;
36-
}
37-
.npg-device-item {
38-
padding: 12px;
39-
margin: 8px 0;
40-
background: #f8f9fa;
41-
border-radius: 6px;
42-
cursor: pointer;
43-
transition: all 0.2s;
44-
}
45-
.npg-device-item:hover {
46-
background: #e9ecef;
47-
}
48-
.npg-device-item.selected {
49-
background: #a855f7;
50-
color: white;
51-
}
52-
#npgPopupStatus {
53-
margin: 10px 0;
54-
min-height: 24px;
55-
font-weight: bold;
56-
text-align: center;
57-
}
58-
.scanning-status {
59-
color: #3b82f6;
60-
}
61-
.connected-status {
62-
color: #10b981;
63-
}
64-
.error-status {
65-
color: #ef4444;
66-
}
67-
.npg-popup-buttons {
68-
display: flex;
69-
justify-content: flex-end;
70-
gap: 10px;
71-
margin-top: 20px;
72-
}
73-
.npg-popup-btn {
74-
padding: 8px 20px;
75-
border: none;
76-
border-radius: 6px;
77-
cursor: pointer;
78-
font-weight: 500;
79-
}
80-
.npg-connect-btn {
81-
background: #10b981;
82-
color: white;
83-
}
84-
.npg-connect-btn:disabled {
85-
background: #a7f3d0;
86-
cursor: not-allowed;
87-
}
88-
.npg-cancel-btn {
89-
background: #f1f1f1;
90-
}
91-
</style>
928
</head>
939
<body>
9410
<div class="container">

0 commit comments

Comments
 (0)