Spaces:
Sleeping
Sleeping
| /* ========================================================= | |
| ESCP THEME — compatible Gradio 6.x | |
| ========================================================= */ | |
| /* --- Background on root elements --- */ | |
| gradio-app, | |
| .gradio-app, | |
| body, | |
| html { | |
| background-color: rgb(40, 9, 109) ; | |
| background-image: | |
| url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_top.png'), | |
| url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_mid.png'), | |
| url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_bottom.png') ; | |
| background-position: top center, 0 913px, bottom center ; | |
| background-repeat: no-repeat, repeat-y, no-repeat ; | |
| background-size: 100% auto, 100% auto, 100% auto ; | |
| min-height: 100vh ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| /* --- Main container --- */ | |
| .gradio-container { | |
| max-width: 1400px ; | |
| width: 94vw ; | |
| margin: 0 auto ; | |
| padding-top: 40px ; | |
| padding-bottom: 150px ; | |
| background: transparent ; | |
| } | |
| /* ========================================================= | |
| FIX PRINCIPAL : texte noir dans les zones blanches | |
| ========================================================= */ | |
| /* Toutes les zones de contenu blanc → texte sombre */ | |
| .tabitem, | |
| .tabitem *:not(button):not([role="tab"]), | |
| .tab-content, | |
| .tab-content *:not(button):not([role="tab"]) { | |
| color: #1a1a1a ; | |
| } | |
| /* Inputs, textareas, selects */ | |
| input, textarea, select, | |
| .gradio-container input, | |
| .gradio-container textarea, | |
| .gradio-container select { | |
| color: #1a1a1a ; | |
| background: #ffffff ; | |
| border: 1px solid #d1d5db ; | |
| border-radius: 8px ; | |
| } | |
| /* Labels des composants */ | |
| label, .label-wrap, .label-wrap span, | |
| span.svelte-1ed2p3z, | |
| .block label span { | |
| color: #374151 ; | |
| } | |
| /* Dataframes / tables */ | |
| table, th, td, | |
| [data-testid="dataframe"] table, | |
| [data-testid="dataframe"] th, | |
| [data-testid="dataframe"] td { | |
| color: #1a1a1a ; | |
| background-color: #ffffff ; | |
| } | |
| th { | |
| background-color: #f3f4f6 ; | |
| font-weight: 600 ; | |
| } | |
| /* Log textbox */ | |
| .gradio-container textarea { | |
| color: #1a1a1a ; | |
| font-family: monospace ; | |
| font-size: 0.8rem ; | |
| } | |
| /* Chatbot messages */ | |
| .message-wrap .message, | |
| [data-testid="bot"], | |
| [data-testid="user"], | |
| .bubble-wrap { | |
| color: #1a1a1a ; | |
| } | |
| /* ========================================================= | |
| TITRE ESCP | |
| ========================================================= */ | |
| #escp_title h1 { | |
| color: rgb(242, 198, 55) ; | |
| font-size: 3rem ; | |
| font-weight: 800 ; | |
| text-align: center ; | |
| margin: 0 0 12px 0 ; | |
| } | |
| #escp_title p, | |
| #escp_title em { | |
| color: rgba(255, 255, 255, 0.85) ; | |
| text-align: center ; | |
| } | |
| /* ========================================================= | |
| TABS — Gradio 6 utilise des classes différentes | |
| ========================================================= */ | |
| /* Barre de navigation des tabs */ | |
| .tabs > .tab-nav, | |
| [role="tablist"], | |
| .tab-nav { | |
| background: rgba(40, 9, 109, 0.6) ; | |
| border-radius: 10px 10px 0 0 ; | |
| padding: 4px ; | |
| } | |
| /* Tous les boutons tab → blanc */ | |
| button[role="tab"], | |
| .tab-nav button, | |
| [role="tablist"] button { | |
| color: #ffffff ; | |
| font-weight: 600 ; | |
| background: transparent ; | |
| border: none ; | |
| padding: 10px 20px ; | |
| border-radius: 8px 8px 0 0 ; | |
| opacity: 1 ; | |
| } | |
| /* Tab sélectionné → or ESCP */ | |
| button[role="tab"][aria-selected="true"], | |
| .tab-nav button.selected, | |
| button[role="tab"].selected { | |
| color: rgb(242, 198, 55) ; | |
| background: rgba(255, 255, 255, 0.12) ; | |
| border-bottom: 2px solid rgb(242, 198, 55) ; | |
| } | |
| /* Tab non sélectionné → blanc */ | |
| button[role="tab"][aria-selected="false"], | |
| button[role="tab"]:not(.selected) { | |
| color: #ffffff ; | |
| opacity: 0.85 ; | |
| } | |
| /* Contenu des tabs → fond blanc */ | |
| .tabitem { | |
| background: rgba(255, 255, 255, 0.95) ; | |
| border-radius: 0 0 10px 10px ; | |
| padding: 20px ; | |
| } | |
| /* ========================================================= | |
| BOUTONS | |
| ========================================================= */ | |
| /* Boutons primaires */ | |
| button.primary, | |
| .gr-button-primary, | |
| [data-testid="button"].primary { | |
| background-color: rgb(40, 9, 109) ; | |
| color: #ffffff ; | |
| border: none ; | |
| font-weight: 600 ; | |
| border-radius: 10px ; | |
| padding: 10px 16px ; | |
| } | |
| button.primary:hover { | |
| background-color: rgb(60, 20, 140) ; | |
| } | |
| /* Boutons secondaires */ | |
| button.secondary, | |
| .gr-button-secondary { | |
| background-color: #ffffff ; | |
| color: rgb(40, 9, 109) ; | |
| border: 2px solid rgb(40, 9, 109) ; | |
| font-weight: 600 ; | |
| border-radius: 10px ; | |
| padding: 10px 16px ; | |
| } | |
| button.secondary:hover { | |
| background-color: rgb(240, 238, 250) ; | |
| } | |
| /* ========================================================= | |
| COMPOSANTS GRADIO 6 | |
| ========================================================= */ | |
| /* Blocks / panels */ | |
| .block, | |
| .gr-block, | |
| .gr-box, | |
| .gr-panel, | |
| .gr-group, | |
| .contain { | |
| background: #ffffff ; | |
| border-radius: 10px ; | |
| } | |
| /* Gallery */ | |
| .gallery, | |
| .grid-wrap { | |
| background: #ffffff ; | |
| border-radius: 10px ; | |
| } | |
| /* Chatbot */ | |
| .chatbot, | |
| .chat-wrap, | |
| [data-testid="chatbot"] { | |
| background-color: #ffffff ; | |
| border-radius: 12px ; | |
| min-height: 380px ; | |
| } | |
| /* Messages user */ | |
| [data-testid="user"] .bubble-wrap, | |
| .message.user { | |
| background-color: rgb(232, 225, 250) ; | |
| color: #1a1a1a ; | |
| border-radius: 12px ; | |
| } | |
| /* Messages bot */ | |
| [data-testid="bot"] .bubble-wrap, | |
| .message.bot { | |
| background-color: #f3f4f6 ; | |
| color: #1a1a1a ; | |
| border-radius: 12px ; | |
| } | |
| /* Dropdown */ | |
| .dropdown, select { | |
| background: #ffffff ; | |
| color: #1a1a1a ; | |
| border-radius: 8px ; | |
| } | |
| /* ========================================================= | |
| HEADINGS dans les tabs | |
| ========================================================= */ | |
| .tabitem h1, | |
| .tabitem h2, | |
| .tabitem h3 { | |
| color: rgb(40, 9, 109) ; | |
| font-weight: 700 ; | |
| } | |
| .tabitem h4, | |
| .tabitem h5, | |
| .tabitem p { | |
| color: #374151 ; | |
| } | |
| /* ========================================================= | |
| EXAMPLES (boutons de suggestion) | |
| ========================================================= */ | |
| .examples table td, | |
| .examples-row button, | |
| .gr-samples-table td { | |
| background: rgb(240, 238, 250) ; | |
| color: rgb(40, 9, 109) ; | |
| border: 1px solid rgb(40, 9, 109) ; | |
| border-radius: 8px ; | |
| font-size: 0.85rem ; | |
| } | |
| .examples table td:hover, | |
| .examples-row button:hover { | |
| background: rgb(232, 225, 250) ; | |
| } | |
| /* ========================================================= | |
| FOOTER / HEADER — transparent | |
| ========================================================= */ | |
| header, footer, | |
| header *, footer *, | |
| .footer, .footer * { | |
| background: transparent ; | |
| box-shadow: none ; | |
| } | |
| footer a, footer button, | |
| header a, header button, | |
| section footer button, | |
| section footer a { | |
| background: transparent ; | |
| background-color: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| color: rgba(255, 255, 255, 0.7) ; | |
| } | |
| section footer button:hover, | |
| section footer a:hover { | |
| background: transparent ; | |
| color: #ffffff ; | |
| } | |
| /* ========================================================= | |
| KPI CARDS — laisser le style inline fonctionner | |
| ========================================================= */ | |
| .kpi-card { | |
| background: rgba(255, 255, 255, 0.72) ; | |
| color: #2d1f4e ; | |
| } | |