Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,31 +27,56 @@ def arithmetic(num1, num2, operation):
|
|
27 |
return res[0]
|
28 |
|
29 |
custom_css = """
|
30 |
-
/* Set
|
31 |
.gradio-container {
|
32 |
background-color: #121212;
|
33 |
color: #ffffff;
|
34 |
}
|
35 |
|
36 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
button {
|
38 |
background: linear-gradient(to right, #1e3c72, #2a5298);
|
39 |
color: #ffffff;
|
40 |
border: none;
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
-
/*
|
44 |
-
|
45 |
-
|
46 |
-
border-image: linear-gradient(to right, #1e3c72, #2a5298);
|
47 |
-
border-image-slice: 1;
|
48 |
-
background-color: #1e1e1e;
|
49 |
-
color: #ffffff;
|
50 |
}
|
51 |
|
52 |
/* Style the labels */
|
53 |
label {
|
54 |
color: #ffffff;
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
/* Hide footer display */
|
|
|
27 |
return res[0]
|
28 |
|
29 |
custom_css = """
|
30 |
+
/* Set the overall background to a dark color */
|
31 |
.gradio-container {
|
32 |
background-color: #121212;
|
33 |
color: #ffffff;
|
34 |
}
|
35 |
|
36 |
+
/* Style the title and description text */
|
37 |
+
.gradio-container h1, .gradio-container h2, .gradio-container p {
|
38 |
+
color: #ffffff;
|
39 |
+
}
|
40 |
+
|
41 |
+
/* Style the input fields with a dark background and blue border */
|
42 |
+
input, textarea {
|
43 |
+
background-color: #1e1e1e;
|
44 |
+
border: 2px solid #2a5298;
|
45 |
+
color: #ffffff;
|
46 |
+
padding: 10px;
|
47 |
+
border-radius: 5px;
|
48 |
+
width: 100%;
|
49 |
+
box-sizing: border-box;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Change border color on focus */
|
53 |
+
input:focus, textarea:focus {
|
54 |
+
border-color: #1e3c72;
|
55 |
+
outline: none;
|
56 |
+
}
|
57 |
+
|
58 |
+
/* Style the buttons with a gradient blue background */
|
59 |
button {
|
60 |
background: linear-gradient(to right, #1e3c72, #2a5298);
|
61 |
color: #ffffff;
|
62 |
border: none;
|
63 |
+
padding: 10px 20px;
|
64 |
+
border-radius: 5px;
|
65 |
+
cursor: pointer;
|
66 |
+
transition: background 0.3s ease;
|
67 |
}
|
68 |
|
69 |
+
/* Change button background on hover */
|
70 |
+
button:hover {
|
71 |
+
background: linear-gradient(to right, #2a5298, #1e3c72);
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/* Style the labels */
|
75 |
label {
|
76 |
color: #ffffff;
|
77 |
+
font-weight: bold;
|
78 |
+
margin-top: 10px;
|
79 |
+
display: block;
|
80 |
}
|
81 |
|
82 |
/* Hide footer display */
|