Spaces:
Sleeping
Sleeping
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,113 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
color: white !important;
|
| 6 |
-
height: 100vh;
|
| 7 |
-
width: 100vw;
|
| 8 |
-
margin: 0;
|
| 9 |
-
display: flex;
|
| 10 |
-
justify-content: center;
|
| 11 |
-
align-items: center;
|
| 12 |
}
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
border: 4px solid white !important; /* White Border */
|
| 18 |
-
border-radius: 20px;
|
| 19 |
-
padding: 40px;
|
| 20 |
-
width: 90%;
|
| 21 |
-
max-width: 450px;
|
| 22 |
-
text-align: center;
|
| 23 |
-
box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
font-weight: bold;
|
| 30 |
-
text-align: center;
|
| 31 |
-
margin-bottom: 10px;
|
| 32 |
}
|
| 33 |
|
| 34 |
-
/* Description */
|
| 35 |
-
.description {
|
| 36 |
-
font-size: 16px;
|
| 37 |
-
text-align: center;
|
| 38 |
-
margin-bottom: 20px;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
/* Input Box - White with Dark Pink Border */
|
| 42 |
-
input[type="text"], .gradio-input {
|
| 43 |
-
background-color: white !important; /* White Input */
|
| 44 |
-
border: 3px solid #d63384 !important; /* Dark Pink Border */
|
| 45 |
-
border-radius: 10px;
|
| 46 |
-
padding: 10px;
|
| 47 |
-
color: black !important; /* Input text color */
|
| 48 |
-
text-align: center; /* Center text */
|
| 49 |
-
width: 80%;
|
| 50 |
-
max-width: 300px;
|
| 51 |
-
margin: 10px auto;
|
| 52 |
-
display: block;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
/* Cute Buttons */
|
| 56 |
-
button {
|
| 57 |
-
border-radius: 20px !important;
|
| 58 |
-
background-color: #d63384 !important; /* Dark Pink */
|
| 59 |
-
color: white !important;
|
| 60 |
-
font-size: 18px !important;
|
| 61 |
-
padding: 10px 20px !important;
|
| 62 |
-
transition: all 0.3s ease-in-out;
|
| 63 |
-
display: block;
|
| 64 |
-
margin: 10px auto;
|
| 65 |
-
border: 3px solid white;
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
-
button:hover {
|
| 69 |
-
background-color: #b82e72 !important; /* Slightly Darker Pink */
|
| 70 |
-
transform: scale(1.05);
|
| 71 |
-
}
|
| 72 |
-
|
| 73 |
-
/* Cute Output Styling */
|
| 74 |
-
.result {
|
| 75 |
-
color: white;
|
| 76 |
-
font-size: 20px;
|
| 77 |
-
font-weight: bold;
|
| 78 |
-
padding-top: 10px;
|
| 79 |
-
text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
|
| 80 |
-
text-align: center;
|
| 81 |
-
}
|
| 82 |
-
|
| 83 |
-
/* Fix Hugging Face's default black background */
|
| 84 |
-
.gradio-container, .gradio-app {
|
| 85 |
-
background-color: transparent !important; /* Ensure it uses body’s color */
|
| 86 |
-
}
|
| 87 |
-
|
| 88 |
-
/* Make Sure Everything is Centered */
|
| 89 |
-
.centered {
|
| 90 |
-
display: flex;
|
| 91 |
-
justify-content: center;
|
| 92 |
-
align-items: center;
|
| 93 |
-
height: 100vh;
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
/* Responsive Tweaks */
|
| 97 |
-
@media (max-width: 768px) {
|
| 98 |
-
.container-box {
|
| 99 |
-
width: 90%;
|
| 100 |
-
}
|
| 101 |
-
|
| 102 |
-
.title {
|
| 103 |
-
font-size: 28px;
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
.description {
|
| 107 |
-
font-size: 14px;
|
| 108 |
-
}
|
| 109 |
-
|
| 110 |
-
.result {
|
| 111 |
-
font-size: 18px;
|
| 112 |
-
}
|
| 113 |
-
}
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
background-color: #32CD32; /* Green background */
|
| 3 |
+
color: white; /* White text */
|
| 4 |
+
font-family: 'Comic Sans MS', cursive, sans-serif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.stTextInput input {
|
| 8 |
+
background-color: white;
|
| 9 |
+
color: black;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
+
.stButton button {
|
| 13 |
+
background-color: white;
|
| 14 |
+
color: green;
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|