Spaces:
Sleeping
Sleeping
Update components/styles.py
Browse files- components/styles.py +30 -9
components/styles.py
CHANGED
@@ -22,37 +22,58 @@ button:hover {
|
|
22 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
23 |
}
|
24 |
|
25 |
-
/* Modal styling */
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
29 |
background-color: #fff;
|
30 |
border-radius: 12px;
|
31 |
padding: 20px;
|
32 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
|
33 |
text-align: center;
|
34 |
-
position: relative;
|
35 |
}
|
36 |
|
37 |
-
|
38 |
width: 100%;
|
39 |
max-height: 200px;
|
40 |
object-fit: cover;
|
41 |
border-radius: 12px 12px 0 0;
|
42 |
}
|
43 |
|
44 |
-
|
45 |
margin-top: 20px;
|
46 |
font-size: 24px;
|
47 |
}
|
48 |
|
49 |
-
|
50 |
width: 100%;
|
51 |
margin-top: 10px;
|
52 |
border-collapse: collapse;
|
53 |
}
|
54 |
|
55 |
-
|
56 |
padding: 10px;
|
57 |
border: 1px solid #ddd;
|
58 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
23 |
}
|
24 |
|
25 |
+
/* Modal popup styling */
|
26 |
+
#popup {
|
27 |
+
display: none;
|
28 |
+
position: fixed;
|
29 |
+
top: 50%;
|
30 |
+
left: 50%;
|
31 |
+
transform: translate(-50%, -50%);
|
32 |
background-color: #fff;
|
33 |
border-radius: 12px;
|
34 |
padding: 20px;
|
35 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
36 |
+
z-index: 1000;
|
37 |
+
width: 400px;
|
38 |
+
max-width: 90%;
|
39 |
text-align: center;
|
|
|
40 |
}
|
41 |
|
42 |
+
#popup img {
|
43 |
width: 100%;
|
44 |
max-height: 200px;
|
45 |
object-fit: cover;
|
46 |
border-radius: 12px 12px 0 0;
|
47 |
}
|
48 |
|
49 |
+
#popup h3 {
|
50 |
margin-top: 20px;
|
51 |
font-size: 24px;
|
52 |
}
|
53 |
|
54 |
+
#popup table {
|
55 |
width: 100%;
|
56 |
margin-top: 10px;
|
57 |
border-collapse: collapse;
|
58 |
}
|
59 |
|
60 |
+
#popup table td {
|
61 |
padding: 10px;
|
62 |
border: 1px solid #ddd;
|
63 |
}
|
64 |
+
|
65 |
+
/* Button to close the popup */
|
66 |
+
#close-popup {
|
67 |
+
margin-top: 20px;
|
68 |
+
background-color: #ff3333;
|
69 |
+
color: white;
|
70 |
+
border: none;
|
71 |
+
border-radius: 8px;
|
72 |
+
padding: 10px;
|
73 |
+
cursor: pointer;
|
74 |
+
transition: background-color 0.3s ease;
|
75 |
+
}
|
76 |
+
|
77 |
+
#close-popup:hover {
|
78 |
+
background-color: #cc0000;
|
79 |
+
}
|