Download docs/stylesheets/copilot.css from iscc/iscc-sct: direct link, hf CLI and curl.
- Browser
- Download file 3.86 kB
-
https://huggingface.co/spaces/iscc/iscc-sct/resolve/main/docs/stylesheets/copilot.css
- Command line
-
hf download hf://spaces/iscc/iscc-sct/docs/stylesheets/copilot.css
-
curl -L -o copilot.css https://huggingface.co/spaces/iscc/iscc-sct/resolve/main/docs/stylesheets/copilot.css
3.86 kB
| /* ISCC Copilot Widget Theme for Documentation Sites | |
| * | |
| * Shared across all ISCC documentation sites. Do not modify per project. | |
| * | |
| * Styles the Chainlit copilot chat widget to match the ISCC brand. | |
| * Injected into the widget Shadow DOM via customCssUrl. | |
| * | |
| * Zensical sets html { font-size: 125% } (20px) which inflates all rem-based | |
| * sizes inside the Chainlit widget by 25%. Instead of blanket zoom (which | |
| * over-corrects body text), we pin Tailwind text utilities to their intended | |
| * pixel values and zoom only the self-contained toggle button. | |
| */ | |
| /* Toggle button: self-contained element, zoom works cleanly here */ | |
| #chainlit-copilot-button { | |
| zoom: 0.8; | |
| } | |
| /* --- Fix Tailwind text utilities inflated by 125% root font-size --- | |
| * Tailwind rem values resolve against html 20px instead of 16px. | |
| * Pin each utility to its intended pixel size. */ | |
| .text-xs { font-size: 12px ; line-height: 16px ; } | |
| .text-sm { font-size: 14px ; line-height: 20px ; } | |
| .text-base { font-size: 16px ; line-height: 24px ; } | |
| .text-lg { font-size: 18px ; line-height: 28px ; } | |
| .text-xl { font-size: 20px ; line-height: 28px ; } | |
| .text-2xl { font-size: 24px ; line-height: 32px ; } | |
| /* --- Widen the chat panel --- */ | |
| .copilot-container-collapsed { | |
| min-width: 420px ; | |
| } | |
| /* Fix inflated rem-based spacing inside the chat panel. | |
| * Scale factor: 0.8rem per intended 1rem (16/20 = 0.8). */ | |
| [data-radix-popper-content-wrapper] { | |
| font-size: 16px; | |
| } | |
| /* Ensure chat message body text renders at readable size */ | |
| #chainlit-copilot-chat p, | |
| #chainlit-copilot-chat li, | |
| #chainlit-copilot-chat span:not([class]), | |
| #chainlit-copilot-chat div:not([class]) > span { | |
| font-size: 15px ; | |
| line-height: 1.2 ; | |
| } | |
| /* Force light theme variables - ISCC brand on white background. | |
| * Target both .light and .dark to override regardless of server theme. */ | |
| :root, | |
| :host, | |
| .light, | |
| .dark { | |
| --background: 0 0% 100% ; | |
| --foreground: 213 69% 23% ; | |
| --primary: 356 89% 67% ; | |
| --primary-foreground: 0 0% 100% ; | |
| --secondary: 210 30% 95% ; | |
| --secondary-foreground: 213 69% 23% ; | |
| --accent: 210 30% 95% ; | |
| --accent-foreground: 213 69% 23% ; | |
| --muted: 210 20% 96% ; | |
| --muted-foreground: 213 40% 40% ; | |
| --card: 0 0% 100% ; | |
| --card-foreground: 213 69% 23% ; | |
| --popover: 0 0% 100% ; | |
| --popover-foreground: 213 69% 23% ; | |
| --border: 210 20% 85% ; | |
| --input: 0 0% 100% ; | |
| --ring: 211 100% 35% ; | |
| } | |
| /* Floating toggle button - ISCC Coral */ | |
| button.bg-primary.rounded-full, | |
| button[class*="bg-primary"][class*="rounded-full"] { | |
| background-color: #f56169 ; | |
| background: #f56169 ; | |
| } | |
| button.bg-primary.rounded-full:hover, | |
| button[class*="bg-primary"][class*="rounded-full"]:hover { | |
| background-color: #e04550 ; | |
| background: #e04550 ; | |
| } | |
| /* Send button and primary actions - ISCC Blue */ | |
| button.bg-primary:not(.rounded-full), | |
| button[class*="bg-primary"]:not([class*="rounded-full"]), | |
| .bg-primary:not(.rounded-full) { | |
| background-color: #0054b2 ; | |
| background: #0054b2 ; | |
| } | |
| button.bg-primary:not(.rounded-full):hover, | |
| button[class*="bg-primary"]:not([class*="rounded-full"]):hover, | |
| .bg-primary:not(.rounded-full):hover { | |
| background-color: #123663 ; | |
| background: #123663 ; | |
| } | |
| /* Links - ISCC Blue */ | |
| a { | |
| color: #0054b2 ; | |
| } | |
| /* Code blocks - ISCC navy */ | |
| pre, | |
| pre code, | |
| .hljs { | |
| background-color: #0d2847 ; | |
| color: #e6edf5 ; | |
| } | |
| /* Inline code */ | |
| code:not(pre code):not(.hljs) { | |
| background-color: #e8ebef ; | |
| color: inherit ; | |
| } | |