| |
| |
| :root { |
| --primary-color: #4f46e5; |
| --primary-light: #6366f1; |
| --primary-dark: #3730a3; |
| --secondary-color: #9333ea; |
| --accent-color: #ec4899; |
| --text-color: #0f172a; |
| --text-light: #64748b; |
| --bg-color: #f8fafc; |
| --card-bg: #ffffff; |
| --border-color: #e2e8f0; |
| --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
| --transition: all 0.3s ease; |
| --radius: 12px; |
| --header-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); |
| } |
|
|
| |
| .dark { |
| --text-color: #e2e8f0; |
| --text-light: #94a3b8; |
| --bg-color: #0f172a; |
| --card-bg: #1e293b; |
| --border-color: #334155; |
| } |
|
|
| |
| .gradio-container { |
| font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; |
| background-color: var(--bg-color); |
| color: var(--text-color); |
| max-width: 1200px; |
| margin: 0 auto; |
| padding: 2rem; |
| box-shadow: var(--shadow); |
| border-radius: var(--radius); |
| } |
|
|
| |
| .header-container { |
| background: var(--header-gradient); |
| border-radius: var(--radius); |
| padding: 2rem; |
| margin-bottom: 2rem; |
| box-shadow: var(--shadow); |
| color: white; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 20px; |
| } |
|
|
| .header-container img { |
| width: 100px; |
| height: 100px; |
| filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); |
| transition: var(--transition); |
| } |
|
|
| .header-container img:hover { |
| transform: scale(1.05) rotate(5deg); |
| } |
|
|
| .header-container h1 { |
| font-size: 2.5rem; |
| font-weight: 700; |
| margin-bottom: 0.5rem; |
| background: linear-gradient(45deg, #fff, #f0f0ff); |
| -webkit-background-clip: text; |
| background-clip: text; |
| color: transparent; |
| display: inline-block; |
| } |
|
|
| .header-container a { |
| color: white; |
| text-decoration: none; |
| font-weight: 600; |
| border-bottom: 2px solid rgba(255, 255, 255, 0.5); |
| transition: var(--transition); |
| padding-bottom: 2px; |
| } |
|
|
| .header-container a:hover { |
| border-color: white; |
| } |
|
|
| |
| .gr-accordion { |
| border: none !important; |
| background: var(--card-bg); |
| border-radius: var(--radius); |
| overflow: hidden; |
| box-shadow: var(--shadow); |
| margin-bottom: 1.5rem; |
| transition: var(--transition); |
| } |
|
|
| .gr-accordion:hover { |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); |
| } |
|
|
| .gr-accordion-title { |
| background-color: var(--primary-color); |
| color: white !important; |
| padding: 1rem 1.5rem; |
| font-weight: 600; |
| cursor: pointer; |
| } |
|
|
|
|
| |
| .gr-input, .gr-textarea { |
| width: 100%; |
| padding: 0.75rem 1rem; |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius); |
| background-color: var(--card-bg); |
| transition: var(--transition); |
| font-size: 1rem; |
| color: var(--text-color); |
| } |
|
|
| .gr-input:focus, .gr-textarea:focus { |
| border-color: var(--primary-color); |
| box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); |
| outline: none; |
| } |
|
|
| .gr-form .gr-form-label { |
| font-weight: 600; |
| color: var(--text-color); |
| margin-bottom: 0.5rem; |
| } |
|
|
| |
| |
| .gr-button.gr-button-primary, |
| button.generate-btn, |
| #component-54 > div.svelte-1pf7t34 > div > button { |
| background: var(--header-gradient) !important; |
| color: white !important; |
| border: none !important; |
| border-radius: var(--radius) !important; |
| padding: 0.75rem 1.5rem !important; |
| font-size: 1rem !important; |
| font-weight: 600 !important; |
| cursor: pointer !important; |
| transition: var(--transition) !important; |
| width: 100% !important; |
| text-transform: uppercase !important; |
| letter-spacing: 1px !important; |
| box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4) !important; |
| } |
|
|
| .gr-button.gr-button-primary:hover, |
| button.generate-btn:hover, |
| #component-54 > div.svelte-1pf7t34 > div > button:hover { |
| transform: translateY(-2px) !important; |
| box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4) !important; |
| } |
|
|
| .gr-button.gr-button-primary:active, |
| button.generate-btn:active, |
| #component-54 > div.svelte-1pf7t34 > div > button:active { |
| transform: translateY(1px) !important; |
| } |
|
|
| |
| .gr-gallery { |
| background-color: var(--card-bg); |
| border-radius: var(--radius); |
| padding: 1rem; |
| box-shadow: var(--shadow); |
| min-height: 300px; |
| } |
|
|
| .gr-gallery img { |
| border-radius: calc(var(--radius) - 4px); |
| transition: var(--transition); |
| object-fit: contain !important; |
| max-height: 100% !important; |
| max-width: 100% !important; |
| } |
|
|
| .gr-gallery img:hover { |
| transform: scale(1.02); |
| } |
|
|
| |
| .output-text { |
| background-color: var(--card-bg); |
| border-radius: var(--radius); |
| padding: 1.5rem; |
| box-shadow: var(--shadow); |
| line-height: 1.6; |
| min-height: 100px; |
| color: var(--text-color); |
| } |
|
|
| |
| .gr-examples-header { |
| font-weight: 600 !important; |
| margin: 2rem 0 1rem !important; |
| padding-bottom: 0.5rem !important; |
| |
| color: var(--primary-light) !important; |
| font-size: 1.5rem !important; |
| display: block !important; |
| visibility: visible !important; |
| } |
|
|
| |
| .gradio-container hr { |
| display: none !important; |
| } |
|
|
| |
| .gradio-container hr:first-of-type { |
| display: block !important; |
| border-top: 2px solid var(--primary-light) !important; |
| margin: 1rem 0 2rem 0 !important; |
| } |
|
|
| |
| .gr-examples { |
| display: grid; |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| gap: 1rem; |
| margin-top: 1.5rem; |
| } |
|
|
| |
| .gr-sample { |
| background-color: var(--card-bg) !important; |
| border-radius: var(--radius); |
| overflow: hidden; |
| box-shadow: var(--shadow); |
| transition: var(--transition); |
| cursor: pointer; |
| } |
|
|
| .gr-sample:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); |
| } |
|
|
| .gr-sample img { |
| width: 100%; |
| height: 150px; |
| object-fit: cover; |
| } |
|
|
| |
| table { |
| background-color: transparent !important; |
| color: var(--text-color) !important; |
| } |
|
|
| table tr { |
| background-color: var(--card-bg) !important; |
| color: var(--text-color) !important; |
| } |
|
|
| table td { |
| background-color: var(--card-bg) !important; |
| color: var(--text-color) !important; |
| border-color: var(--border-color) !important; |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .gradio-container { |
| padding: 1rem; |
| } |
| |
| .header-container { |
| flex-direction: column; |
| text-align: center; |
| padding: 1.5rem; |
| } |
| |
| .header-container h1 { |
| font-size: 2rem; |
| } |
| } |
|
|
| |
| ::-webkit-scrollbar { |
| width: 8px; |
| height: 8px; |
| } |
|
|
| ::-webkit-scrollbar-track { |
| background: var(--bg-color); |
| } |
|
|
| ::-webkit-scrollbar-thumb { |
| background: var(--primary-light); |
| border-radius: 4px; |
| } |
|
|
| ::-webkit-scrollbar-thumb:hover { |
| background: var(--primary-color); |
| } |
|
|
| |
| @media screen and (max-width: 767px) { |
| body, html { |
| overflow-x: hidden !important; |
| width: 100vw !important; |
| max-width: 100% !important; |
| } |
| |
| |
| .gradio-container { |
| padding: 1rem !important; |
| margin: 0 auto !important; |
| max-width: 100% !important; |
| width: 100% !important; |
| left: 0 !important; |
| right: 0 !important; |
| box-sizing: border-box !important; |
| overflow-x: hidden !important; |
| } |
| |
| |
| .header-container { |
| flex-direction: column !important; |
| text-align: center !important; |
| padding: 1rem !important; |
| width: 100% !important; |
| box-sizing: border-box !important; |
| margin-left: auto !important; |
| margin-right: auto !important; |
| } |
| |
| |
| .main-content, |
| .input-column, |
| .output-column, |
| .gr-form, |
| .gr-panel, |
| .gr-box, |
| .gr-input, |
| .gr-text-input, |
| .gr-gallery, |
| .gr-button, |
| #component-54 > div.svelte-1pf7t34 > div > button { |
| width: 100% !important; |
| max-width: 100% !important; |
| margin-left: auto !important; |
| margin-right: auto !important; |
| box-sizing: border-box !important; |
| } |
| |
| |
| |
| .gr-examples { |
| grid-template-columns: 1fr !important; |
| width: 100% !important; |
| } |
| |
| |
| table { |
| table-layout: fixed !important; |
| width: 100% !important; |
| } |
| |
| table td { |
| word-break: break-word !important; |
| } |
| } |
|
|
| |
| @media screen and (max-width: 380px) { |
| .header-container h1 { |
| font-size: 1.8rem !important; |
| } |
| |
| .header-container p { |
| font-size: 0.9rem !important; |
| } |
| |
| |
| .gr-panel { |
| display: flex !important; |
| flex-direction: column !important; |
| } |
| } |
|
|
| |
| #gradio-app { |
| display: flex !important; |
| justify-content: center !important; |
| width: 100% !important; |
| max-width: 100% !important; |
| margin: 0 auto !important; |
| overflow-x: hidden !important; |
| } |
|
|
| |
| .root { |
| max-width: 100% !important; |
| overflow-x: hidden !important; |
| } |