Spaces:
Running
Running
Upload style.css with huggingface_hub
Browse files
style.css
CHANGED
|
@@ -1,299 +1,350 @@
|
|
| 1 |
:root {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
* {
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
}
|
| 18 |
|
| 19 |
body {
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
}
|
| 25 |
|
| 26 |
.container {
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
}
|
| 34 |
|
| 35 |
header {
|
| 36 |
-
|
| 37 |
-
|
| 38 |
}
|
| 39 |
|
| 40 |
header h1 {
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
}
|
| 45 |
|
| 46 |
.subtitle {
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
}
|
| 51 |
|
| 52 |
.attribution a {
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
}
|
| 63 |
|
| 64 |
.attribution a:hover {
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
}
|
| 68 |
|
| 69 |
main {
|
| 70 |
-
|
| 71 |
}
|
| 72 |
|
| 73 |
.input-section {
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
}
|
| 80 |
|
| 81 |
.input-section label {
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
}
|
| 87 |
|
| 88 |
textarea {
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
}
|
| 100 |
|
| 101 |
textarea:focus {
|
| 102 |
-
|
| 103 |
-
|
| 104 |
}
|
| 105 |
|
| 106 |
.controls {
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
}
|
| 113 |
|
| 114 |
.language-selector {
|
| 115 |
-
|
| 116 |
}
|
| 117 |
|
| 118 |
.language-selector label {
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
}
|
| 123 |
|
| 124 |
select {
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
}
|
| 132 |
|
| 133 |
.generate-btn {
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
}
|
| 149 |
|
| 150 |
.generate-btn:hover:not(:disabled) {
|
| 151 |
-
|
| 152 |
}
|
| 153 |
|
| 154 |
.generate-btn:disabled {
|
| 155 |
-
|
| 156 |
-
|
| 157 |
}
|
| 158 |
|
| 159 |
.btn-spinner {
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
}
|
| 167 |
|
| 168 |
@keyframes spin {
|
| 169 |
-
|
| 170 |
-
|
| 171 |
}
|
| 172 |
|
| 173 |
.loading-section {
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
}
|
| 181 |
|
| 182 |
.progress-container {
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
}
|
| 190 |
|
| 191 |
.progress-bar {
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
}
|
| 197 |
|
| 198 |
.loading-text {
|
| 199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
}
|
| 201 |
|
| 202 |
.error-section {
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
}
|
| 209 |
|
| 210 |
.error-text {
|
| 211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
}
|
| 213 |
|
| 214 |
.output-section {
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
}
|
| 220 |
|
| 221 |
.output-header {
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
}
|
| 229 |
|
| 230 |
.output-header span {
|
| 231 |
-
|
| 232 |
-
|
| 233 |
}
|
| 234 |
|
| 235 |
.copy-btn {
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
}
|
| 245 |
|
| 246 |
.copy-btn:hover {
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
}
|
| 251 |
|
| 252 |
pre {
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
}
|
| 258 |
|
| 259 |
code {
|
| 260 |
-
|
| 261 |
-
|
| 262 |
}
|
| 263 |
|
| 264 |
footer {
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
}
|
| 272 |
|
| 273 |
footer a {
|
| 274 |
-
|
| 275 |
-
|
| 276 |
}
|
| 277 |
|
| 278 |
footer a:hover {
|
| 279 |
-
|
| 280 |
}
|
| 281 |
|
| 282 |
@media (max-width: 768px) {
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 299 |
}
|
|
|
|
| 1 |
:root {
|
| 2 |
+
--bg-primary: #0d1117;
|
| 3 |
+
--bg-secondary: #161b22;
|
| 4 |
+
--bg-tertiary: #21262d;
|
| 5 |
+
--text-primary: #c9d1d9;
|
| 6 |
+
--text-secondary: #8b949e;
|
| 7 |
+
--accent-primary: #58a6ff;
|
| 8 |
+
--accent-success: #3fb950;
|
| 9 |
+
--accent-error: #f85149;
|
| 10 |
+
--border-color: #30363d;
|
| 11 |
+
--warning-color: #d29922;
|
| 12 |
}
|
| 13 |
|
| 14 |
* {
|
| 15 |
+
margin: 0;
|
| 16 |
+
padding: 0;
|
| 17 |
+
box-sizing: border-box;
|
| 18 |
}
|
| 19 |
|
| 20 |
body {
|
| 21 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
|
| 22 |
+
background-color: var(--bg-primary);
|
| 23 |
+
color: var(--text-primary);
|
| 24 |
+
line-height: 1.5;
|
| 25 |
}
|
| 26 |
|
| 27 |
.container {
|
| 28 |
+
max-width: 1200px;
|
| 29 |
+
margin: 0 auto;
|
| 30 |
+
padding: 2rem;
|
| 31 |
+
min-height: 100vh;
|
| 32 |
+
display: flex;
|
| 33 |
+
flex-direction: column;
|
| 34 |
}
|
| 35 |
|
| 36 |
header {
|
| 37 |
+
text-align: center;
|
| 38 |
+
margin-bottom: 2rem;
|
| 39 |
}
|
| 40 |
|
| 41 |
header h1 {
|
| 42 |
+
font-size: 2.5rem;
|
| 43 |
+
font-weight: 700;
|
| 44 |
+
margin-bottom: 0.5rem;
|
| 45 |
}
|
| 46 |
|
| 47 |
.subtitle {
|
| 48 |
+
color: var(--text-secondary);
|
| 49 |
+
font-size: 1.1rem;
|
| 50 |
+
margin-bottom: 1rem;
|
| 51 |
}
|
| 52 |
|
| 53 |
.attribution a {
|
| 54 |
+
display: inline-block;
|
| 55 |
+
padding: 0.5rem 1rem;
|
| 56 |
+
background-color: var(--bg-secondary);
|
| 57 |
+
color: var(--accent-primary);
|
| 58 |
+
text-decoration: none;
|
| 59 |
+
border-radius: 6px;
|
| 60 |
+
font-size: 0.9rem;
|
| 61 |
+
font-weight: 500;
|
| 62 |
+
transition: all 0.2s;
|
| 63 |
}
|
| 64 |
|
| 65 |
.attribution a:hover {
|
| 66 |
+
background-color: var(--bg-tertiary);
|
| 67 |
+
text-decoration: underline;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.model-info {
|
| 71 |
+
background-color: rgba(210, 153, 34, 0.1);
|
| 72 |
+
border: 1px solid var(--warning-color);
|
| 73 |
+
padding: 1rem;
|
| 74 |
+
border-radius: 8px;
|
| 75 |
+
margin-bottom: 1.5rem;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.model-info p {
|
| 79 |
+
color: var(--warning-color);
|
| 80 |
+
font-size: 0.9rem;
|
| 81 |
}
|
| 82 |
|
| 83 |
main {
|
| 84 |
+
flex: 1;
|
| 85 |
}
|
| 86 |
|
| 87 |
.input-section {
|
| 88 |
+
background-color: var(--bg-secondary);
|
| 89 |
+
padding: 1.5rem;
|
| 90 |
+
border-radius: 8px;
|
| 91 |
+
border: 1px solid var(--border-color);
|
| 92 |
+
margin-bottom: 2rem;
|
| 93 |
}
|
| 94 |
|
| 95 |
.input-section label {
|
| 96 |
+
display: block;
|
| 97 |
+
margin-bottom: 0.5rem;
|
| 98 |
+
font-weight: 500;
|
| 99 |
+
color: var(--text-primary);
|
| 100 |
}
|
| 101 |
|
| 102 |
textarea {
|
| 103 |
+
width: 100%;
|
| 104 |
+
padding: 0.75rem;
|
| 105 |
+
background-color: var(--bg-primary);
|
| 106 |
+
color: var(--text-primary);
|
| 107 |
+
border: 1px solid var(--border-color);
|
| 108 |
+
border-radius: 6px;
|
| 109 |
+
font-size: 1rem;
|
| 110 |
+
font-family: inherit;
|
| 111 |
+
resize: vertical;
|
| 112 |
+
transition: border-color 0.2s;
|
| 113 |
}
|
| 114 |
|
| 115 |
textarea:focus {
|
| 116 |
+
outline: none;
|
| 117 |
+
border-color: var(--accent-primary);
|
| 118 |
}
|
| 119 |
|
| 120 |
.controls {
|
| 121 |
+
display: flex;
|
| 122 |
+
justify-content: space-between;
|
| 123 |
+
align-items: flex-end;
|
| 124 |
+
margin-top: 1rem;
|
| 125 |
+
gap: 1rem;
|
| 126 |
}
|
| 127 |
|
| 128 |
.language-selector {
|
| 129 |
+
flex: 1;
|
| 130 |
}
|
| 131 |
|
| 132 |
.language-selector label {
|
| 133 |
+
display: inline-block;
|
| 134 |
+
margin-right: 0.5rem;
|
| 135 |
+
margin-bottom: 0;
|
| 136 |
}
|
| 137 |
|
| 138 |
select {
|
| 139 |
+
padding: 0.5rem 0.75rem;
|
| 140 |
+
background-color: var(--bg-primary);
|
| 141 |
+
color: var(--text-primary);
|
| 142 |
+
border: 1px solid var(--border-color);
|
| 143 |
+
border-radius: 6px;
|
| 144 |
+
font-size: 0.95rem;
|
| 145 |
}
|
| 146 |
|
| 147 |
.generate-btn {
|
| 148 |
+
padding: 0.75rem 2rem;
|
| 149 |
+
background-color: var(--accent-primary);
|
| 150 |
+
color: white;
|
| 151 |
+
border: none;
|
| 152 |
+
border-radius: 6px;
|
| 153 |
+
font-size: 1rem;
|
| 154 |
+
font-weight: 600;
|
| 155 |
+
cursor: pointer;
|
| 156 |
+
transition: all 0.2s;
|
| 157 |
+
display: flex;
|
| 158 |
+
align-items: center;
|
| 159 |
+
gap: 0.5rem;
|
| 160 |
+
min-width: 150px;
|
| 161 |
+
justify-content: center;
|
| 162 |
}
|
| 163 |
|
| 164 |
.generate-btn:hover:not(:disabled) {
|
| 165 |
+
background-color: #4493f8;
|
| 166 |
}
|
| 167 |
|
| 168 |
.generate-btn:disabled {
|
| 169 |
+
opacity: 0.6;
|
| 170 |
+
cursor: not-allowed;
|
| 171 |
}
|
| 172 |
|
| 173 |
.btn-spinner {
|
| 174 |
+
width: 16px;
|
| 175 |
+
height: 16px;
|
| 176 |
+
border: 2px solid transparent;
|
| 177 |
+
border-top: 2px solid white;
|
| 178 |
+
border-radius: 50%;
|
| 179 |
+
animation: spin 1s linear infinite;
|
| 180 |
}
|
| 181 |
|
| 182 |
@keyframes spin {
|
| 183 |
+
0% { transform: rotate(0deg); }
|
| 184 |
+
100% { transform: rotate(360deg); }
|
| 185 |
}
|
| 186 |
|
| 187 |
.loading-section {
|
| 188 |
+
background-color: var(--bg-secondary);
|
| 189 |
+
padding: 2rem;
|
| 190 |
+
border-radius: 8px;
|
| 191 |
+
border: 1px solid var(--border-color);
|
| 192 |
+
text-align: center;
|
| 193 |
+
margin-bottom: 2rem;
|
| 194 |
}
|
| 195 |
|
| 196 |
.progress-container {
|
| 197 |
+
width: 100%;
|
| 198 |
+
height: 8px;
|
| 199 |
+
background-color: var(--bg-primary);
|
| 200 |
+
border-radius: 4px;
|
| 201 |
+
overflow: hidden;
|
| 202 |
+
margin-bottom: 1rem;
|
| 203 |
}
|
| 204 |
|
| 205 |
.progress-bar {
|
| 206 |
+
height: 100%;
|
| 207 |
+
background-color: var(--accent-primary);
|
| 208 |
+
width: 0%;
|
| 209 |
+
transition: width 0.3s ease;
|
| 210 |
}
|
| 211 |
|
| 212 |
.loading-text {
|
| 213 |
+
color: var(--text-secondary);
|
| 214 |
+
margin-bottom: 0.25rem;
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
.loading-subtext {
|
| 218 |
+
color: var(--text-secondary);
|
| 219 |
+
font-size: 0.85rem;
|
| 220 |
}
|
| 221 |
|
| 222 |
.error-section {
|
| 223 |
+
background-color: rgba(248, 81, 73, 0.1);
|
| 224 |
+
border: 1px solid var(--accent-error);
|
| 225 |
+
padding: 1rem;
|
| 226 |
+
border-radius: 8px;
|
| 227 |
+
margin-bottom: 2rem;
|
| 228 |
+
display: flex;
|
| 229 |
+
justify-content: space-between;
|
| 230 |
+
align-items: center;
|
| 231 |
+
gap: 1rem;
|
| 232 |
}
|
| 233 |
|
| 234 |
.error-text {
|
| 235 |
+
color: var(--accent-error);
|
| 236 |
+
flex: 1;
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
.dismiss-btn {
|
| 240 |
+
padding: 0.5rem 1rem;
|
| 241 |
+
background-color: var(--accent-error);
|
| 242 |
+
color: white;
|
| 243 |
+
border: none;
|
| 244 |
+
border-radius: 6px;
|
| 245 |
+
cursor: pointer;
|
| 246 |
+
font-size: 0.9rem;
|
| 247 |
+
transition: opacity 0.2s;
|
| 248 |
+
white-space: nowrap;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.dismiss-btn:hover {
|
| 252 |
+
opacity: 0.8;
|
| 253 |
}
|
| 254 |
|
| 255 |
.output-section {
|
| 256 |
+
background-color: var(--bg-secondary);
|
| 257 |
+
border-radius: 8px;
|
| 258 |
+
border: 1px solid var(--border-color);
|
| 259 |
+
overflow: hidden;
|
| 260 |
}
|
| 261 |
|
| 262 |
.output-header {
|
| 263 |
+
display: flex;
|
| 264 |
+
justify-content: space-between;
|
| 265 |
+
align-items: center;
|
| 266 |
+
padding: 1rem 1.5rem;
|
| 267 |
+
background-color: var(--bg-tertiary);
|
| 268 |
+
border-bottom: 1px solid var(--border-color);
|
| 269 |
}
|
| 270 |
|
| 271 |
.output-header span {
|
| 272 |
+
font-weight: 600;
|
| 273 |
+
color: var(--text-primary);
|
| 274 |
}
|
| 275 |
|
| 276 |
.copy-btn {
|
| 277 |
+
padding: 0.5rem 1rem;
|
| 278 |
+
background-color: var(--bg-primary);
|
| 279 |
+
color: var(--text-primary);
|
| 280 |
+
border: 1px solid var(--border-color);
|
| 281 |
+
border-radius: 6px;
|
| 282 |
+
cursor: pointer;
|
| 283 |
+
font-size: 0.9rem;
|
| 284 |
+
transition: all 0.2s;
|
| 285 |
}
|
| 286 |
|
| 287 |
.copy-btn:hover {
|
| 288 |
+
background-color: var(--accent-primary);
|
| 289 |
+
color: white;
|
| 290 |
+
border-color: var(--accent-primary);
|
| 291 |
}
|
| 292 |
|
| 293 |
pre {
|
| 294 |
+
margin: 0;
|
| 295 |
+
padding: 1.5rem;
|
| 296 |
+
overflow-x: auto;
|
| 297 |
+
background-color: var(--bg-primary) !important;
|
| 298 |
}
|
| 299 |
|
| 300 |
code {
|
| 301 |
+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
| 302 |
+
font-size: 0.9rem;
|
| 303 |
}
|
| 304 |
|
| 305 |
footer {
|
| 306 |
+
text-align: center;
|
| 307 |
+
margin-top: 2rem;
|
| 308 |
+
padding-top: 2rem;
|
| 309 |
+
border-top: 1px solid var(--border-color);
|
| 310 |
+
color: var(--text-secondary);
|
| 311 |
+
font-size: 0.9rem;
|
| 312 |
}
|
| 313 |
|
| 314 |
footer a {
|
| 315 |
+
color: var(--accent-primary);
|
| 316 |
+
text-decoration: none;
|
| 317 |
}
|
| 318 |
|
| 319 |
footer a:hover {
|
| 320 |
+
text-decoration: underline;
|
| 321 |
}
|
| 322 |
|
| 323 |
@media (max-width: 768px) {
|
| 324 |
+
.container {
|
| 325 |
+
padding: 1rem;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
header h1 {
|
| 329 |
+
font-size: 2rem;
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
.controls {
|
| 333 |
+
flex-direction: column;
|
| 334 |
+
align-items: stretch;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.generate-btn {
|
| 338 |
+
width: 100%;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.error-section {
|
| 342 |
+
flex-direction: column;
|
| 343 |
+
align-items: flex-start;
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
.dismiss-btn {
|
| 347 |
+
width: 100%;
|
| 348 |
+
margin-top: 0.5rem;
|
| 349 |
+
}
|
| 350 |
}
|