Spaces:
Running
on
Zero
Running
on
Zero
| /* ========================================================================== | |
| 1. GLOBAL & LAYOUT STYLES | |
| ========================================================================== */ | |
| body { | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| /* Main application container styling */ | |
| .gradio-container { | |
| border-radius: 15px; | |
| padding: 10px 20px; | |
| box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); | |
| margin: 10px; | |
| } | |
| .column-container { | |
| border-radius: 15px; | |
| padding: 15px; | |
| box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); | |
| margin: auto; | |
| } | |
| .action-console-col { | |
| padding: 10px ; | |
| border-color: var(--border-color-primary) ; | |
| border-width: 1px ; | |
| border-radius: 8px; | |
| margin-top: 10px; | |
| } | |
| .chatbot-container .message-row{ | |
| max-width: calc(100% - var(--spacing-sm) * 6) ; | |
| } | |
| .chatbot-container pre code { | |
| text-wrap: auto ; | |
| } | |
| /* 2. Media Query for larger screens (desktops) */ | |
| @media (min-width: 1281px) { | |
| .gradio-container { | |
| padding: 10px 370px; | |
| max-width: 2400px; | |
| } | |
| } | |
| /* Text shadow for main headings for better readability */ | |
| .gradio-container h1 { | |
| text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); | |
| } | |
| /* Utility class to make elements fill their container's width */ | |
| /* .fillable { | |
| width: 100% !important; | |
| max-width: unset !important; | |
| } */ | |
| #trace-log { | |
| height: 200px ; | |
| overflow-y: auto ; | |
| background-color: var(--background-fill-primary); | |
| border: 1px solid var(--border-color-primary); | |
| border-radius: 8px; | |
| padding: 10px; | |
| } | |
| .fillable .sidebar-parent { | |
| padding-left: 10px ; | |
| padding-right: 10px ; | |
| } | |
| /* ========================================================================== | |
| 2. CUSTOM SCROLLBAR STYLES (GLOBAL & SIDEBAR) | |
| ========================================================================== */ | |
| /* --- For WebKit browsers (Chrome, Safari, Edge, etc.) --- */ | |
| .sidebar-content::-webkit-scrollbar, | |
| body::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| background-color: transparent; | |
| } | |
| .sidebar-content::-webkit-scrollbar-track, | |
| body::-webkit-scrollbar-track { | |
| background: transparent; | |
| border-radius: 10px; | |
| } | |
| .sidebar-content::-webkit-scrollbar-thumb, | |
| body::-webkit-scrollbar-thumb { | |
| background-color: rgba(136, 136, 136, 0.4); | |
| border-radius: 10px; | |
| border: 2px solid transparent; | |
| background-clip: content-box; | |
| } | |
| .sidebar-content::-webkit-scrollbar-thumb:hover, | |
| body::-webkit-scrollbar-thumb:hover { | |
| background-color: rgba(136, 136, 136, 0.7); | |
| } | |
| /* --- For Firefox --- */ | |
| .sidebar-content, | |
| html { | |
| scrollbar-width: thin; | |
| scrollbar-color: rgba(136, 136, 136, 0.7) transparent; | |
| } | |
| /* ========================================================================== | |
| 3. SIDEBAR STYLES | |
| ========================================================================== */ | |
| .sidebar { | |
| border-radius: 10px; | |
| padding: 10px; | |
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); | |
| } | |
| /* Overrides for the content padding inside the sidebar */ | |
| .sidebar .sidebar-content { | |
| padding-left: 10px ; | |
| padding-right: 10px ; | |
| } | |
| /* Centers text within Markdown blocks inside the sidebar */ | |
| /* .sidebar .sidebar-content .column .block div .prose { | |
| text-align: center; | |
| } */ | |
| /* Stylish override for the sidebar toggle button */ | |
| .sidebar .toggle-button { | |
| background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) ; | |
| border: none; | |
| padding: 12px 18px; | |
| text-transform: uppercase; | |
| font-weight: bold; | |
| letter-spacing: 1px; | |
| /* border-radius: 5px; */ | |
| position: absolute; | |
| top: 50%; | |
| right: -28px ; | |
| left: auto ; | |
| transform: unset ; | |
| border-radius: 0 var(--radius-lg) var(--radius-lg) 0 | |
| } | |
| .sidebar.right .toggle-button { | |
| left: -28px ; | |
| right: auto ; | |
| transform: rotate(180deg) ; | |
| } | |
| .sidebar.open .chevron-left { | |
| transform: rotate(-135deg); | |
| } | |
| .bottom-bar .toggle-bottom-button { | |
| background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) ; | |
| } | |
| .toggle-button:hover { | |
| transform: scale(1.05); | |
| } | |
| .bottom-bar .toggle-bottom-button .chevron { | |
| width: 100%; | |
| height: 100%; | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .bottom-bar .toggle-bottom-button .chevron-arrow { | |
| position: relative ; | |
| top: auto ; | |
| left: auto ; | |
| width: 10px ; | |
| height: 10px ; | |
| border-bottom: 2px solid var(--body-text-color) ; | |
| border-right: 2px solid var(--body-text-color) ; | |
| transform: rotate(-135deg) translateY(2px); | |
| margin-bottom: -4px; | |
| } | |
| .bottom-bar.open .chevron-arrow { | |
| transform: rotate(45deg) translateY(-2px) ; | |
| } | |
| /* ========================================================================== | |
| 5. COMPONENT-SPECIFIC STYLES & OVERRIDES | |
| ========================================================================== */ | |
| /* Custom styling for the cancel button */ | |
| #cancel-button { /* Corrected the typo from 'cancell' to 'cancel' */ | |
| background: linear-gradient(120deg, var(--neutral-500) 0%, var(--neutral-600) 60%, var(--neutral-700) 100%) ; | |
| } | |
| .custom-dropdown .wrap-inner input { | |
| padding-right: 22px; | |
| } | |
| #pagination-row { | |
| display: flex ; | |
| justify-content: center ; | |
| align-items: center ; | |
| gap: 4px ; | |
| margin-top: 8px ; | |
| padding: 0 ; | |
| min-height: 0 ; | |
| background: transparent ; | |
| border: none ; | |
| } | |
| .pagination-btn { | |
| width: 28px ; | |
| height: 28px ; | |
| min-width: 28px ; | |
| padding: 0 ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| font-size: 12px ; | |
| line-height: 1 ; | |
| border-radius: 4px ; | |
| flex-grow: 0 ; | |
| box-shadow: none ; | |
| } | |
| #page_label { | |
| flex: 0 0 auto ; | |
| width: auto ; | |
| display: inline-block ; | |
| margin: 0 8px ; | |
| font-size: 11px ; | |
| font-family: monospace ; | |
| white-space: nowrap ; | |
| color: var(--body-text-color-subdued); | |
| } | |
| #page_label p { | |
| margin: 0 ; | |
| padding: 0 ; | |
| display: inline ; | |
| } | |
| #chat-examples { | |
| max-height: 300px; | |
| overflow: auto ; | |
| } |