Spaces:
Runtime error
Runtime error
Create style.css
Browse files
style.css
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.gradio-container {
|
2 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
3 |
+
max-width: 730px !important;
|
4 |
+
margin: auto;
|
5 |
+
padding-top: 1.5rem;
|
6 |
+
text-align: center; /* Center the content horizontally */
|
7 |
+
}
|
8 |
+
/* Button Styles */
|
9 |
+
.gr-button {
|
10 |
+
color: white;
|
11 |
+
background: #007bff; /* Use a primary color for the background */
|
12 |
+
white-space: nowrap;
|
13 |
+
border: none;
|
14 |
+
padding: 10px 20px;
|
15 |
+
border-radius: 8px;
|
16 |
+
cursor: pointer;
|
17 |
+
transition: background-color 0.3s, color 0.3s;
|
18 |
+
}
|
19 |
+
.gr-button:hover {
|
20 |
+
background-color: #0056b3; /* Darken the background color on hover */
|
21 |
+
}
|
22 |
+
/* Share Button Styles */
|
23 |
+
#share-btn-container {
|
24 |
+
padding: 0.5rem !important;
|
25 |
+
background-color: #007bff; /* Use a primary color for the background */
|
26 |
+
justify-content: center;
|
27 |
+
align-items: center;
|
28 |
+
border-radius: 9999px !important;
|
29 |
+
max-width: 13rem;
|
30 |
+
margin: 0 auto; /* Center the container horizontally */
|
31 |
+
transition: background-color 0.3s;
|
32 |
+
}
|
33 |
+
#share-btn-container:hover {
|
34 |
+
background-color: #0056b3; /* Darken the background color on hover */
|
35 |
+
}
|
36 |
+
#share-btn {
|
37 |
+
all: initial;
|
38 |
+
color: white; /* Change to white */
|
39 |
+
font-weight: 600;
|
40 |
+
cursor: pointer;
|
41 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
42 |
+
margin: 0.5rem !important;
|
43 |
+
padding: 0.5rem !important;
|
44 |
+
}
|
45 |
+
/* Other Styles */
|
46 |
+
#gallery {
|
47 |
+
min-height: 22rem;
|
48 |
+
margin: auto; /* Center the gallery horizontally */
|
49 |
+
border-bottom-right-radius: 0.5rem !important;
|
50 |
+
border-bottom-left-radius: 0.5rem !important;
|
51 |
+
}
|
52 |
+
/* Centered Container for the Image */
|
53 |
+
.image-container {
|
54 |
+
max-width: 100%; /* Set the maximum width for the container */
|
55 |
+
margin: auto; /* Center the container horizontally */
|
56 |
+
padding: 20px; /* Add padding for spacing */
|
57 |
+
border: 1px solid #ccc; /* Add a subtle border to the container */
|
58 |
+
border-radius: 10px;
|
59 |
+
overflow: hidden; /* Hide overflow if the image is larger */
|
60 |
+
max-height: 22rem; /* Set a maximum height for the container */
|
61 |
+
}
|
62 |
+
/* Set a fixed size for the image */
|
63 |
+
.image-container img {
|
64 |
+
max-width: 100%; /* Ensure the image fills the container */
|
65 |
+
height: auto; /* Maintain aspect ratio */
|
66 |
+
max-height: 100%; /* Set a maximum height for the image */
|
67 |
+
border-radius: 10px;
|
68 |
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
|
69 |
+
}
|
70 |
+
/* Change the color of the red text to yellow */
|
71 |
+
#content_align > span[style="color:darkred;font-size:32px;font-weight:bold"] {
|
72 |
+
color: yellow !important;
|
73 |
+
}
|
74 |
+
/* Change the color of the blue text to white */
|
75 |
+
#content_align > span[style="color:blue;font-size:16px;font-weight:bold"] {
|
76 |
+
color: white !important;
|
77 |
+
}
|