Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,18 +19,18 @@ examples = [
|
|
19 |
custom_css = """
|
20 |
/* Remove border and background color for the output image preview */
|
21 |
.output-image {
|
22 |
-
border: none !important;
|
23 |
-
background: none !important;
|
24 |
}
|
25 |
|
26 |
/* Prompt textbox styling */
|
27 |
input[type="text"] {
|
28 |
-
border: 2px solid #ddd;
|
29 |
border-radius: 8px;
|
30 |
padding: 12px;
|
31 |
font-size: 16px;
|
32 |
width: 100%;
|
33 |
-
background-color: #f9f9f9;
|
34 |
}
|
35 |
|
36 |
/* Examples arranged in a single line, without buttons */
|
@@ -47,13 +47,17 @@ input[type="text"] {
|
|
47 |
color: #333;
|
48 |
cursor: pointer;
|
49 |
padding: 5px;
|
|
|
|
|
|
|
50 |
transition: all 0.2s ease;
|
51 |
}
|
52 |
|
53 |
/* Hover effect on examples */
|
54 |
.gr-examples span:hover {
|
55 |
-
color: #
|
56 |
-
|
|
|
57 |
}
|
58 |
|
59 |
/* Styling for the generate button */
|
|
|
19 |
custom_css = """
|
20 |
/* Remove border and background color for the output image preview */
|
21 |
.output-image {
|
22 |
+
border: none !important; /* No border */
|
23 |
+
background: none !important; /* No background color */
|
24 |
}
|
25 |
|
26 |
/* Prompt textbox styling */
|
27 |
input[type="text"] {
|
28 |
+
border: 2px solid #ddd; /* Default border */
|
29 |
border-radius: 8px;
|
30 |
padding: 12px;
|
31 |
font-size: 16px;
|
32 |
width: 100%;
|
33 |
+
background-color: #f9f9f9; /* Light gray background */
|
34 |
}
|
35 |
|
36 |
/* Examples arranged in a single line, without buttons */
|
|
|
47 |
color: #333;
|
48 |
cursor: pointer;
|
49 |
padding: 5px;
|
50 |
+
background-color: white; /* Simple white background */
|
51 |
+
border: 1px solid #ddd; /* Light gray border */
|
52 |
+
border-radius: 5px; /* Rounded corners */
|
53 |
transition: all 0.2s ease;
|
54 |
}
|
55 |
|
56 |
/* Hover effect on examples */
|
57 |
.gr-examples span:hover {
|
58 |
+
background-color: #e7e7e7; /* Light gray on hover */
|
59 |
+
color: #007bff; /* Change text color on hover */
|
60 |
+
text-decoration: underline; /* Underline text on hover */
|
61 |
}
|
62 |
|
63 |
/* Styling for the generate button */
|