Update styles.css
Browse files- styles.css +61 -3
styles.css
CHANGED
|
@@ -47,6 +47,7 @@
|
|
| 47 |
body.dark .banner-message {
|
| 48 |
background-color: var(--banner-background-dark) !important;
|
| 49 |
}
|
|
|
|
| 50 |
body.dark .gradio-container .contain .banner-message .banner-message-text {
|
| 51 |
color: var(--banner-text-color-dark) !important;
|
| 52 |
}
|
|
@@ -79,7 +80,7 @@ body.dark .gradio-container .contain .banner-message .banner-message-text a {
|
|
| 79 |
padding: 0;
|
| 80 |
}
|
| 81 |
|
| 82 |
-
.user-input-container .multimodal-textbox{
|
| 83 |
border: none !important;
|
| 84 |
}
|
| 85 |
|
|
@@ -95,7 +96,8 @@ button.cancel {
|
|
| 95 |
box-shadow: var(--button-cancel-shadow);
|
| 96 |
}
|
| 97 |
|
| 98 |
-
button.cancel:hover,
|
|
|
|
| 99 |
background: var(--button-cancel-background-fill-hover);
|
| 100 |
color: var(--button-cancel-text-color-hover);
|
| 101 |
}
|
|
@@ -104,7 +106,8 @@ button.cancel:hover, .cancel[disabled] {
|
|
| 104 |
top: 8px;
|
| 105 |
}
|
| 106 |
|
| 107 |
-
.opt-out-message .html-container,
|
|
|
|
| 108 |
font-size: 14px !important;
|
| 109 |
padding: 0 !important;
|
| 110 |
margin: 0 !important;
|
|
@@ -177,3 +180,58 @@ div.no-padding {
|
|
| 177 |
max-height: 800px !important;
|
| 178 |
}
|
| 179 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
body.dark .banner-message {
|
| 48 |
background-color: var(--banner-background-dark) !important;
|
| 49 |
}
|
| 50 |
+
|
| 51 |
body.dark .gradio-container .contain .banner-message .banner-message-text {
|
| 52 |
color: var(--banner-text-color-dark) !important;
|
| 53 |
}
|
|
|
|
| 80 |
padding: 0;
|
| 81 |
}
|
| 82 |
|
| 83 |
+
.user-input-container .multimodal-textbox {
|
| 84 |
border: none !important;
|
| 85 |
}
|
| 86 |
|
|
|
|
| 96 |
box-shadow: var(--button-cancel-shadow);
|
| 97 |
}
|
| 98 |
|
| 99 |
+
button.cancel:hover,
|
| 100 |
+
.cancel[disabled] {
|
| 101 |
background: var(--button-cancel-background-fill-hover);
|
| 102 |
color: var(--button-cancel-text-color-hover);
|
| 103 |
}
|
|
|
|
| 106 |
top: 8px;
|
| 107 |
}
|
| 108 |
|
| 109 |
+
.opt-out-message .html-container,
|
| 110 |
+
.opt-out-checkbox label {
|
| 111 |
font-size: 14px !important;
|
| 112 |
padding: 0 !important;
|
| 113 |
margin: 0 !important;
|
|
|
|
| 180 |
max-height: 800px !important;
|
| 181 |
}
|
| 182 |
}
|
| 183 |
+
|
| 184 |
+
/* Terms of Service Overlay */
|
| 185 |
+
.agreement-overlay {
|
| 186 |
+
position: fixed !important;
|
| 187 |
+
top: 0;
|
| 188 |
+
left: 0;
|
| 189 |
+
width: 100vw;
|
| 190 |
+
height: 100vh;
|
| 191 |
+
background-color: rgba(0, 0, 0, 0.65);
|
| 192 |
+
/* Semi-transparent black background */
|
| 193 |
+
backdrop-filter: blur(5px);
|
| 194 |
+
/* Bloom/blur effect on the underlying content */
|
| 195 |
+
display: flex;
|
| 196 |
+
justify-content: center;
|
| 197 |
+
align-items: center;
|
| 198 |
+
z-index: 9999;
|
| 199 |
+
/* Ensure it sits on top of everything */
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/* Container for text/button within the overlay */
|
| 203 |
+
.agreement-overlay>.form {
|
| 204 |
+
background-color: #333333;
|
| 205 |
+
color: white !important;
|
| 206 |
+
/* Force black text on white background to prevent invisible text issues */
|
| 207 |
+
padding: 30px;
|
| 208 |
+
border-radius: 10px;
|
| 209 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 210 |
+
max-width: 600px;
|
| 211 |
+
/* Increased width for better readability of long text */
|
| 212 |
+
width: 95%;
|
| 213 |
+
/* Responsive width */
|
| 214 |
+
max-height: 60vh;
|
| 215 |
+
/* Prevent overflowing viewport height */
|
| 216 |
+
overflow-y: auto;
|
| 217 |
+
/* Scroll if content is too tall */
|
| 218 |
+
text-align: left;
|
| 219 |
+
/* Left align text for better readability */
|
| 220 |
+
border: 1px solid #ccc;
|
| 221 |
+
display: flex;
|
| 222 |
+
flex-direction: column;
|
| 223 |
+
gap: 15px;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
/* Center the header */
|
| 227 |
+
.agreement-overlay>.form h2 {
|
| 228 |
+
text-align: center;
|
| 229 |
+
margin-top: 0;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
/* Use dark mode styling if needed */
|
| 233 |
+
body.dark .agreement-overlay>.form {
|
| 234 |
+
background-color: var(--secondary-800);
|
| 235 |
+
border-color: var(--border-color-primary);
|
| 236 |
+
color: var(--body-text-color);
|
| 237 |
+
}
|