Spaces:
Paused
Paused
Download assets/custom.css from deepa-shalini/ChaRtBot: direct link, hf CLI and curl.
- Browser
- Download file 11.6 kB
-
https://huggingface.co/spaces/deepa-shalini/ChaRtBot/resolve/main/assets/custom.css
- Command line
-
hf download hf://spaces/deepa-shalini/ChaRtBot/assets/custom.css
-
curl -L -o custom.css https://huggingface.co/spaces/deepa-shalini/ChaRtBot/resolve/main/assets/custom.css
11.6 kB
| /* Layout and finish for the Mantine UI. Every colour, size and font here comes from the tokens in chartbot/ui_theme.py, which the | |
| page injects as --cb-* custom properties. Do not write a colour in this file. */ | |
| @font-face { | |
| font-family: "Inter"; | |
| src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); | |
| font-weight: 100 900; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| min-height: 100vh; | |
| font-family: var(--cb-font); | |
| font-size: var(--cb-fs-body); | |
| line-height: var(--cb-lh-body); | |
| color: var(--cb-ink); | |
| background: var(--cb-cream); | |
| -webkit-font-smoothing: antialiased; | |
| text-rendering: optimizeLegibility; | |
| } | |
| /* A quiet warm wash behind the page, fixed so it does not scroll with the content */ | |
| .cb-page { | |
| min-height: 100vh; | |
| background: | |
| radial-gradient(1100px 520px at 8% -8%, var(--cb-sage-wash), transparent 70%), | |
| radial-gradient(900px 480px at 104% 0%, var(--cb-clay-wash), transparent 70%), | |
| var(--cb-cream); | |
| } | |
| .cb-skip { | |
| position: absolute; | |
| left: var(--cb-space-sm); | |
| top: -48px; | |
| z-index: 1000; | |
| padding: 8px 14px; | |
| border-radius: var(--cb-radius-md); | |
| background: var(--cb-primary); | |
| color: var(--cb-white); | |
| font-weight: 600; | |
| text-decoration: none; | |
| } | |
| .cb-skip:focus { top: var(--cb-space-sm); } | |
| :focus-visible { | |
| outline: 2px solid var(--cb-primary); | |
| outline-offset: 2px; | |
| } | |
| .cb-sr-only { | |
| position: absolute ; | |
| width: 1px; height: 1px; | |
| margin: -1px; padding: 0; | |
| overflow: hidden; | |
| clip: rect(0 0 0 0); | |
| white-space: nowrap; | |
| border: 0; | |
| } | |
| .cb-link { color: var(--cb-primary); text-underline-offset: 2px; } | |
| .cb-link:hover { color: var(--cb-primary-hover); } | |
| /* ---------------------------------------------------------------- header */ | |
| .cb-title { | |
| margin: 0; | |
| font-size: var(--cb-fs-page-title); | |
| font-weight: var(--cb-fw-page-title); | |
| letter-spacing: var(--cb-ls-page-title); | |
| line-height: var(--cb-lh-page-title); | |
| color: var(--cb-ink); | |
| } | |
| .cb-tagline { | |
| font-size: var(--cb-fs-caption); | |
| color: var(--cb-muted); | |
| } | |
| .cb-section-title { | |
| margin: 0; | |
| font-size: var(--cb-fs-section-title); | |
| font-weight: var(--cb-fw-section-title); | |
| letter-spacing: var(--cb-ls-section-title); | |
| line-height: var(--cb-lh-section-title); | |
| } | |
| .cb-caption { | |
| font-size: var(--cb-fs-caption); | |
| line-height: var(--cb-lh-caption); | |
| color: var(--cb-muted); | |
| } | |
| .cb-avatar { | |
| background: var(--cb-primary); | |
| border: 1px solid var(--cb-sand); | |
| flex: none; | |
| } | |
| .cb-avatar.mantine-Avatar-root { border-radius: 50%; } | |
| .cb-avatar img { object-fit: contain; padding: 3px; border-radius: 50%; } | |
| .cb-page-switch label { | |
| font-size: 12px; | |
| font-weight: 600; | |
| letter-spacing: 0.06em; | |
| text-transform: uppercase; | |
| } | |
| /* ---------------------------------------------------------------- prompt card */ | |
| .cb-card { | |
| background: var(--cb-parchment); | |
| border: 1px solid var(--cb-sand); | |
| box-shadow: var(--cb-shadow-sm); | |
| } | |
| .cb-prompt-card { | |
| position: relative; | |
| overflow: hidden; | |
| transition: box-shadow 0.2s ease; | |
| } | |
| .cb-prompt-card:focus-within { box-shadow: var(--cb-shadow-md); outline: 2px solid var(--cb-primary); outline-offset: 2px; } | |
| .cb-prompt-field { position: relative; } | |
| .cb-prompt-textarea { | |
| padding: 8px 4px ; | |
| font-size: var(--cb-fs-body); | |
| line-height: var(--cb-lh-body); | |
| color: var(--cb-ink); | |
| min-height: 84px; | |
| } | |
| .cb-prompt-textarea::placeholder { color: var(--cb-muted); opacity: 1; } | |
| .cb-prompt-textarea:disabled { background: transparent; opacity: 1; cursor: not-allowed; } | |
| .cb-toolbar { | |
| border-top: 1px solid var(--cb-hairline); | |
| padding-top: var(--cb-space-sm); | |
| margin-top: var(--cb-space-xs); | |
| } | |
| .cb-hint { font-size: var(--cb-fs-caption); color: var(--cb-muted); } | |
| /* One coherent status zone: upload progress, run stage, errors */ | |
| .cb-status { | |
| display: flex; | |
| align-items: center; | |
| justify-content: flex-end; | |
| gap: var(--cb-space-xs); | |
| min-height: 24px; | |
| max-width: 100%; | |
| font-size: var(--cb-fs-label); | |
| font-weight: var(--cb-fw-label); | |
| color: var(--cb-ink); | |
| } | |
| .cb-status-line { display: flex; align-items: center; gap: 8px; min-width: 0; } | |
| .cb-status-line.is-hidden { display: none; } | |
| .cb-status-line.is-error { color: var(--cb-error-text); } | |
| .cb-status-line.is-ready { color: var(--cb-muted); font-weight: 400; } | |
| .cb-status-line svg { flex: none; } | |
| .cb-progress { | |
| position: absolute ; | |
| left: 0; right: 0; bottom: 0; | |
| height: 3px ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| opacity: 0; | |
| transition: opacity 0.2s ease; | |
| } | |
| .cb-progress.is-visible { opacity: 1; } | |
| .cb-progress .mantine-Progress-section { transition: width 0.12s linear; } | |
| .cb-progress.is-reading .mantine-Progress-section { background-color: var(--cb-accent); } | |
| .cb-filepill { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 2px; | |
| max-width: 100%; | |
| padding: 2px 2px 2px 10px; | |
| border: 1px solid var(--cb-control-border); | |
| border-radius: 999px; | |
| background: var(--cb-white); | |
| font-size: var(--cb-fs-label); | |
| } | |
| .cb-filepill.is-hidden, .is-hidden { display: none; } | |
| .cb-filepill__name { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| min-width: 0; | |
| max-width: 260px; | |
| padding: 4px 6px 4px 0; | |
| border: 0; | |
| background: transparent; | |
| color: var(--cb-ink); | |
| font: inherit; | |
| cursor: pointer; | |
| border-radius: 999px; | |
| } | |
| .cb-filepill__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .cb-filepill__name:hover { color: var(--cb-primary); } | |
| .cb-page:has(.cb-prompt-card.is-running) .cb-avatar { animation: cb-pulse 1.6s ease-out infinite; } | |
| @keyframes cb-pulse { | |
| 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cb-primary) 45%, transparent); } | |
| 80%, 100% { box-shadow: 0 0 0 10px transparent; } | |
| } | |
| /* ---------------------------------------------------------------- empty state */ | |
| .cb-empty { text-align: center; padding: var(--cb-space-xl) var(--cb-space-md); color: var(--cb-muted); } | |
| .cb-empty.is-hidden { display: none; } | |
| /* ---------------------------------------------------------------- results */ | |
| .cb-result-stack { display: flex; flex-direction: column; gap: var(--cb-space-md); } | |
| .cb-editor { width: 100%; } | |
| .cb-chart-card { overflow: hidden; } | |
| .cb-chart-card .js-plotly-plot { border-radius: var(--cb-radius-md); overflow: hidden; } | |
| .cb-chart-card .modebar-btn path { fill: var(--cb-muted); } | |
| .cb-chart-card .modebar-btn:hover path, .cb-chart-card .modebar-btn.active path { fill: var(--cb-primary); } | |
| .cb-chart-card .modebar-group { background: transparent ; } | |
| .cb-summary { text-align: right; font-size: var(--cb-fs-caption); color: var(--cb-muted); margin-top: 6px; min-height: 1em; } | |
| .cb-skeleton { margin-top: var(--cb-space-sm); } | |
| .cb-skeleton.is-hidden { display: none; } | |
| /* Messages from the app: semantic colours from the tokens, not Mantine's stock palettes */ | |
| .cb-alert.mantine-Alert-root { | |
| --a: var(--cb-info); | |
| --t: var(--cb-info-text); | |
| background-color: color-mix(in srgb, var(--a) 8%, var(--cb-parchment)); | |
| border: 1px solid var(--a); | |
| color: var(--cb-ink); | |
| } | |
| .cb-alert--success.mantine-Alert-root { --a: var(--cb-success); --t: var(--cb-success-text); } | |
| .cb-alert--warning.mantine-Alert-root { --a: var(--cb-warning); --t: var(--cb-warning-text); } | |
| .cb-alert--error.mantine-Alert-root { --a: var(--cb-error); --t: var(--cb-error-text); } | |
| .cb-alert .mantine-Alert-icon { color: var(--a); } | |
| .cb-alert .mantine-Alert-title { color: var(--t); font-weight: 600; } | |
| .cb-alert .mantine-Alert-message { color: var(--cb-ink); } | |
| /* ---------------------------------------------------------------- editor */ | |
| .cb-editor .mantine-Fieldset-root { border-color: var(--cb-sand); background: transparent; } | |
| .cb-editor .mantine-Fieldset-legend { font-weight: 600; font-size: var(--cb-fs-label); color: var(--cb-secondary); } | |
| .cb-editor-footer { position: sticky; bottom: 0; background: var(--cb-parchment); padding-top: var(--cb-space-xs); } | |
| .cb-json textarea { | |
| font-family: var(--cb-font-mono); | |
| font-size: 12.5px; | |
| line-height: 1.5; | |
| tab-size: 2; | |
| } | |
| .cb-colour-row { align-items: flex-start; } | |
| .cb-colour-add { align-self: flex-start; } | |
| /* ---------------------------------------------------------------- explorer, drawer, footer */ | |
| .cb-accordion { border: 1px solid var(--cb-sand); border-radius: var(--cb-radius-md); box-shadow: var(--cb-shadow-sm); background: var(--cb-parchment); overflow: hidden; } | |
| .cb-accordion .mantine-Accordion-control:hover { background: var(--cb-sage-soft); } | |
| .ag-theme-alpine { | |
| --ag-font-family: var(--cb-font); | |
| --ag-font-size: 13px; | |
| --ag-foreground-color: var(--cb-ink); | |
| --ag-secondary-foreground-color: var(--cb-muted); | |
| --ag-background-color: var(--cb-white); | |
| --ag-header-background-color: var(--cb-cream); | |
| --ag-header-foreground-color: var(--cb-ink); | |
| --ag-odd-row-background-color: var(--cb-parchment); | |
| --ag-border-color: var(--cb-sand); | |
| --ag-row-border-color: var(--cb-hairline); | |
| --ag-row-hover-color: var(--cb-sage-soft); | |
| --ag-selected-row-background-color: var(--cb-sage-soft); | |
| --ag-range-selection-background-color: var(--cb-sage-soft); | |
| --ag-input-border-color: var(--cb-control-border); | |
| --ag-input-focus-border-color: var(--cb-primary); | |
| --ag-checkbox-checked-color: var(--cb-primary); | |
| --ag-active-color: var(--cb-primary); | |
| --ag-control-panel-background-color: var(--cb-parchment); | |
| --ag-borders: solid 1px; | |
| --ag-border-radius: var(--cb-radius-sm); | |
| } | |
| .cb-footer { color: var(--cb-muted); font-size: var(--cb-fs-caption); line-height: 1.6; } | |
| .cb-footer h3 { margin: 0 0 6px; font-size: var(--cb-fs-label); font-weight: 600; color: var(--cb-secondary); } | |
| .cb-footer ul { margin: 0; padding-left: 18px; } | |
| .cb-footer p { margin: 0 0 6px; } | |
| .cb-steps { padding-left: 20px; margin: 0; font-size: var(--cb-fs-label); line-height: 1.6; color: var(--cb-ink); } | |
| .cb-steps li { margin-bottom: 14px; } | |
| .cb-tips { padding-left: 20px; margin: 0; font-size: var(--cb-fs-label); line-height: 1.6; color: var(--cb-muted); } | |
| /* ---------------------------------------------------------------- gallery */ | |
| .cb-gallery-item { border-radius: var(--cb-radius-lg); height: 100%; } | |
| .cb-gallery-card.mantine-Card-root { | |
| height: 100%; | |
| background: var(--cb-parchment); | |
| border: 1px solid var(--cb-sand); | |
| box-shadow: var(--cb-shadow-xs); | |
| transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; | |
| } | |
| .cb-gallery-item:hover .cb-gallery-card.mantine-Card-root, | |
| .cb-gallery-item:focus-within .cb-gallery-card.mantine-Card-root { | |
| box-shadow: var(--cb-shadow-lg); | |
| transform: translateY(-2px); | |
| border-color: var(--cb-sage); | |
| } | |
| .cb-gallery-item:focus-visible { outline: 2px solid var(--cb-primary); outline-offset: 3px; } | |
| .cb-gallery-thumb { background: var(--cb-white); border-bottom: 1px solid var(--cb-hairline); } | |
| .cb-gallery-thumb img { aspect-ratio: 16 / 10; object-fit: contain; } | |
| @media (max-width: 560px) { | |
| .cb-title { font-size: calc(var(--cb-fs-page-title) - 4px); } | |
| .cb-toolbar > * { flex: 1 1 100%; } | |
| .cb-status { justify-content: flex-start; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { animation-duration: 0.01ms ; animation-iteration-count: 1 ; transition-duration: 0.01ms ; scroll-behavior: auto ; } | |
| .cb-page:has(.cb-prompt-card.is-running) .cb-avatar { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-primary) 45%, transparent); } | |
| .cb-gallery-item:hover .cb-gallery-card.mantine-Card-root, .cb-gallery-item:focus-within .cb-gallery-card.mantine-Card-root { transform: none; } | |
| } | |