Spaces:
Sleeping
Sleeping
| /* ============================================================ | |
| Vibe Calculator — Stylesheet | |
| Palette: | |
| page bg #e5dfd3 | |
| content bg #f6f1e8 | |
| panels #fcfaf6 | |
| primary #1f1f1f | |
| secondary #5f584f | |
| labels #7a736a | |
| borders #d8d1c7 | |
| accent #c96f4d | |
| ============================================================ */ | |
| /* ----- Force light everywhere ----- */ | |
| :root, | |
| :root[data-theme="dark"], | |
| .dark, | |
| [data-theme="dark"], | |
| [class*="dark"] { | |
| --body-background-fill: #e5dfd3 ; | |
| --background-fill-primary: #e5dfd3 ; | |
| --background-fill-secondary: #fcfaf6 ; | |
| --neutral-950: #1f1f1f ; | |
| --neutral-900: #1f1f1f ; | |
| --neutral-800: #5f584f ; | |
| --neutral-700: #5f584f ; | |
| --block-label-text-color: #7a736a ; | |
| --body-text-color: #1f1f1f ; | |
| --input-background-fill: #fcfaf6 ; | |
| color-scheme: light ; | |
| } | |
| /* ----- Page background (outer area only) ----- */ | |
| html, body { | |
| background: #e5dfd3 ; | |
| background-color: #e5dfd3 ; | |
| } | |
| /* Gradio app wrapper — also outer */ | |
| gradio-app { | |
| background: #e5dfd3 ; | |
| background-color: #e5dfd3 ; | |
| } | |
| /* ----- Centered content column — the reading surface ----- */ | |
| .gradio-container { | |
| max-width: 920px ; | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| padding: 2.5rem 3rem ; | |
| font-family: Georgia, Charter, serif ; | |
| background: #f6f1e8 ; | |
| background-color: #f6f1e8 ; | |
| border-left: 1px solid #d8d1c7 ; | |
| border-right: 1px solid #d8d1c7 ; | |
| min-height: 100vh ; | |
| } | |
| /* ----- Everything INSIDE the container: transparent, no borders, no shadows ----- */ | |
| .gradio-container *, | |
| .gradio-container .main, | |
| .gradio-container .app, | |
| .gradio-container .wrap, | |
| .gradio-container .contain, | |
| .gradio-container [class*="svelte"], | |
| .gr-panel, .gr-box, .gr-form, .gr-block, .gr-padded, | |
| .gr-group, .block, .form, .panel, | |
| [class*="block"], [class*="panel"], [class*="wrapper"], | |
| [class*="group"], [class*="form"] { | |
| background: transparent ; | |
| background-color: transparent ; | |
| box-shadow: none ; | |
| border: none ; | |
| } | |
| .row, [class*="row"], .gap, [class*="gap"] { | |
| background: transparent ; | |
| box-shadow: none ; | |
| } | |
| /* ----- Restore borders on text/number inputs ----- */ | |
| .gradio-container input, | |
| .gradio-container input[type="text"], | |
| .gradio-container input[type="number"], | |
| .gradio-container textarea { | |
| border: 1px solid #d8d1c7 ; | |
| background: #fcfaf6 ; | |
| background-color: #fcfaf6 ; | |
| } | |
| /* ----- Dropdowns: single border on the clickable element only ----- */ | |
| #model-dropdown input, | |
| #operator-dropdown input { | |
| border: 1px solid #d8d1c7 ; | |
| background: #fcfaf6 ; | |
| background-color: #fcfaf6 ; | |
| border-radius: 3px ; | |
| } | |
| /* Dropdown open menu */ | |
| .gradio-container ul[role="listbox"] { | |
| background: #fcfaf6 ; | |
| background-color: #fcfaf6 ; | |
| border: 1px solid #d8d1c7 ; | |
| } | |
| .gradio-container ul[role="listbox"] li { | |
| background: #fcfaf6 ; | |
| color: #1f1f1f ; | |
| } | |
| .gradio-container ul[role="listbox"] li:hover, | |
| .gradio-container ul[role="listbox"] li[aria-selected="true"] { | |
| background: #ede6d9 ; | |
| } | |
| footer { display: none ; } | |
| /* ----- Title ----- */ | |
| #title-text { | |
| font-size: 2.2rem ; | |
| font-weight: 700 ; | |
| color: #1f1f1f ; | |
| font-family: Georgia, Charter, serif ; | |
| margin-bottom: 0 ; | |
| text-align: center ; | |
| } | |
| /* ----- Subtitle ----- */ | |
| #subtitle-text { | |
| font-style: italic ; | |
| color: #5f584f ; | |
| font-size: 1rem ; | |
| text-align: center ; | |
| line-height: 1.65 ; | |
| margin-top: 0.3rem ; | |
| max-width: 560px ; | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| } | |
| /* ----- Divider ----- */ | |
| #divider { | |
| border: none ; | |
| border-top: 1px solid #d8d1c7 ; | |
| margin: 1.5rem 0 ; | |
| background: transparent ; | |
| } | |
| /* ----- ALL labels — target every Gradio label selector ----- */ | |
| label, | |
| label span, | |
| .label-wrap, | |
| .label-wrap span, | |
| .gr-input-label, | |
| [data-testid="label"], | |
| [data-testid="block-info"], | |
| [data-testid="block-title"], | |
| span[data-testid="block-info"], | |
| .svelte-jdcl7l, | |
| .block-info { | |
| font-size: 0.7rem ; | |
| text-transform: uppercase ; | |
| letter-spacing: 0.08em ; | |
| color: #5f584f ; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| font-weight: 600 ; | |
| background: transparent ; | |
| } | |
| /* ----- Input fields ----- */ | |
| input, | |
| input[type="text"], | |
| input[type="number"], | |
| textarea, | |
| .gr-input { | |
| background: #fcfaf6 ; | |
| border: 1px solid #d8d1c7 ; | |
| border-radius: 3px ; | |
| font-family: "JetBrains Mono", Menlo, Consolas, monospace ; | |
| font-size: 1.05rem ; | |
| color: #1f1f1f ; | |
| padding: 0.5rem 0.75rem ; | |
| box-shadow: none ; | |
| } | |
| /* ----- Dropdowns (handled in restore block above) ----- */ | |
| /* ----- Expression display ----- */ | |
| #expression-display, | |
| #expression-display textarea, | |
| #expression-display input, | |
| #expression-display [class*="wrap"] { | |
| text-align: center ; | |
| font-family: "JetBrains Mono", Menlo, Consolas, monospace ; | |
| font-size: 1.1rem ; | |
| color: #5f584f ; | |
| background: transparent ; | |
| border: none ; | |
| padding: 0.5rem ; | |
| min-height: auto ; | |
| box-shadow: none ; | |
| } | |
| /* ----- Result panels ----- */ | |
| .result-panel { | |
| border: 1.5px solid #d8d1c7 ; | |
| border-radius: 4px ; | |
| background: #fcfaf6 ; | |
| padding: 2rem 1.75rem ; | |
| text-align: center ; | |
| min-height: 170px ; | |
| box-shadow: none ; | |
| display: flex ; | |
| flex-direction: column ; | |
| justify-content: center ; | |
| } | |
| .result-panel .panel-label { | |
| font-size: 0.65rem ; | |
| text-transform: uppercase ; | |
| letter-spacing: 0.12em ; | |
| color: #7a736a ; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| font-weight: 600 ; | |
| margin-bottom: 1rem ; | |
| } | |
| .result-panel .result-number { | |
| font-family: "JetBrains Mono", Menlo, Consolas, monospace ; | |
| font-size: 2rem ; | |
| font-weight: 700 ; | |
| color: #1f1f1f ; | |
| word-break: break-all ; | |
| line-height: 1.3 ; | |
| } | |
| .result-panel .result-meta { | |
| font-size: 0.75rem ; | |
| color: #7a736a ; | |
| margin-top: 1rem ; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| letter-spacing: 0.01em ; | |
| } | |
| /* Standalone sub-box rendered below each result panel. | |
| LLM side carries the model's reported confidence; calculator side | |
| carries "Deterministic". The visual symmetry is intentional — | |
| the asymmetry is in the content, not the layout. */ | |
| .result-sub-box { | |
| border: 1.5px solid #d8d1c7 ; | |
| border-radius: 4px ; | |
| background: #fcfaf6 ; | |
| padding: 0.8rem 1rem ; | |
| margin-top: 0.6rem ; | |
| text-align: center ; | |
| font-family: "JetBrains Mono", Menlo, Consolas, monospace ; | |
| font-size: 0.88rem ; | |
| color: #5f584f ; | |
| letter-spacing: 0.02em ; | |
| box-shadow: none ; | |
| white-space: nowrap ; | |
| overflow: hidden ; | |
| text-overflow: ellipsis ; | |
| } | |
| /* ----- Status message — the verdict line ("Off by N", "Correct, this time") ----- | |
| This is the punchline of the comparison, so it carries real weight: roughly | |
| two-thirds the size of the result numbers. Italic preserved for the dry register. */ | |
| #status-message, | |
| #status-message textarea, | |
| #status-message input, | |
| #status-message [class*="wrap"] { | |
| text-align: center ; | |
| font-style: italic ; | |
| color: #3a3632 ; | |
| font-size: 1.3rem ; | |
| background: transparent ; | |
| border: none ; | |
| min-height: auto ; | |
| box-shadow: none ; | |
| margin: 1.3rem 0 0.5rem 0 ; | |
| padding: 0.5rem 0 ; | |
| letter-spacing: 0.02em ; | |
| } | |
| /* ----- Method note ----- */ | |
| #method-note { | |
| text-align: center ; | |
| font-size: 0.78rem ; | |
| color: #7a736a ; | |
| margin-top: 1.5rem ; | |
| line-height: 1.6 ; | |
| max-width: 560px ; | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| } | |
| /* ----- Compare button ----- */ | |
| .gradio-container button.primary, | |
| .gradio-container button[variant="primary"], | |
| .gradio-container .gr-button.primary, | |
| .gradio-container .gr-button-primary, | |
| .gradio-container button.primary[type="button"] { | |
| background: #c96f4d ; | |
| background-color: #c96f4d ; | |
| color: #ffffff ; | |
| border: 1px solid #c96f4d ; | |
| border-radius: 3px ; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| font-size: 0.85rem ; | |
| font-weight: 600 ; | |
| letter-spacing: 0.03em ; | |
| padding: 0.6rem 1.8rem ; | |
| box-shadow: none ; | |
| } | |
| .gradio-container button.primary:hover, | |
| .gradio-container button[variant="primary"]:hover, | |
| .gradio-container .gr-button.primary:hover, | |
| .gradio-container .gr-button-primary:hover { | |
| background: #a8553a ; | |
| background-color: #a8553a ; | |
| color: #ffffff ; | |
| } | |
| /* ----- Secondary button ----- */ | |
| .gradio-container button.secondary, | |
| .gradio-container button[variant="secondary"], | |
| .gradio-container .gr-button.secondary, | |
| .gradio-container .gr-button-secondary { | |
| background: transparent ; | |
| background-color: transparent ; | |
| color: #5f584f ; | |
| border: 1px solid #d8d1c7 ; | |
| border-radius: 3px ; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| font-size: 0.8rem ; | |
| letter-spacing: 0.03em ; | |
| padding: 0.55rem 1.4rem ; | |
| box-shadow: none ; | |
| } | |
| .gradio-container button.secondary:hover, | |
| .gradio-container button[variant="secondary"]:hover, | |
| .gradio-container .gr-button.secondary:hover, | |
| .gradio-container .gr-button-secondary:hover { | |
| background: #ede6d9 ; | |
| background-color: #ede6d9 ; | |
| } | |
| /* ----- Results HTML containers ----- */ | |
| #llm-result, #calc-result { | |
| min-height: 0 ; | |
| background: transparent ; | |
| } | |
| #llm-result .prose, #calc-result .prose { | |
| font-size: inherit ; | |
| } | |
| /* ----- Remove default Gradio block padding ----- */ | |
| .gr-block, .gr-padded { | |
| padding: 0 ; | |
| } | |
| /* ----- Mobile ----- */ | |
| @media (max-width: 640px) { | |
| .gradio-container { | |
| padding: 1.5rem 1rem ; | |
| border-left: none ; | |
| border-right: none ; | |
| } | |
| #title-text { font-size: 1.6rem ; } | |
| .result-panel .result-number { font-size: 1.5rem ; } | |
| .result-panel { padding: 1.5rem 1.25rem ; } | |
| .result-sub-box { | |
| font-size: 0.78rem ; | |
| padding: 0.7rem 0.5rem ; | |
| } | |
| #status-message, | |
| #status-message textarea, | |
| #status-message input, | |
| #status-message [class*="wrap"] { | |
| font-size: 1.15rem ; | |
| } | |
| } | |