Download 009-localization-engineer/workspace/t1/LibreChat/client/src/style.css from Continual-Learning-Exam/CLE-Lite-Workspaces: direct link, hf CLI and curl.
- Browser
- Download file 72.1 kB
-
https://huggingface.co/datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/resolve/main/009-localization-engineer/workspace/t1/LibreChat/client/src/style.css
- Command line
-
hf download hf://datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/009-localization-engineer/workspace/t1/LibreChat/client/src/style.css
-
curl -L -o style.css https://huggingface.co/datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/resolve/main/009-localization-engineer/workspace/t1/LibreChat/client/src/style.css
72.1 kB
| @import 'tailwindcss'; | |
| /* Semantic colors live in the component library, in CSS, so one file feeds this app, the published | |
| * package and @shadcn/lint's token checking. Imported from source rather than from the built | |
| * package so a lint or CI run needs no prior build. */ | |
| @import '../../packages/client/src/theme/tokens.css'; | |
| @config '../tailwind.config.cjs'; | |
| /* Close the legacy palette scales only inside this repository. */ | |
| @theme inline { | |
| --color-gray-*: initial; | |
| --color-green-*: initial; | |
| } | |
| /* Tailwind v4 changed two preflight defaults this app was built against. Each rule below | |
| * restores the v3 default rather than adopting the new one, so the upgrade carries no visual | |
| * change; drop one only as a deliberate design decision. | |
| * - border-color: v3 used gray-200, v4 uses currentColor. | |
| * - ::placeholder: v3 used gray-400, v4 uses currentColor at 50% opacity. | |
| * Both read the repository compatibility palette through `theme()` instead of pinning a hex here. | |
| * `button { cursor: pointer }` below already covers v4's third change. */ | |
| @layer base { | |
| *, | |
| ::after, | |
| ::before, | |
| ::backdrop, | |
| ::file-selector-button { | |
| border-color: theme(colors.gray.200); | |
| } | |
| input::placeholder, | |
| textarea::placeholder { | |
| color: theme(colors.gray.400); | |
| } | |
| } | |
| .message-render { | |
| scroll-margin-top: 4rem; | |
| } | |
| /* Custom Variables */ | |
| :root { | |
| --gizmo-gray-500: 153 153 153; | |
| --gizmo-gray-600: 102 102 102; | |
| --gizmo-gray-950: 15 15 15; | |
| --font-size-xs: 0.75rem; | |
| --font-size-sm: 0.875rem; | |
| --font-size-base: 1rem; | |
| --font-size-lg: 1.125rem; | |
| --font-size-xl: 1.25rem; | |
| --markdown-font-size: 1rem; | |
| --ui-scale: 1; | |
| } | |
| /* Every size in the app is expressed in rem, so scaling the root font size scales | |
| the whole interface. A percentage keeps the reader's own browser font-size | |
| preference intact instead of pinning the root to a fixed pixel value. */ | |
| html { | |
| font-size: calc(100% * var(--ui-scale)); | |
| } | |
| /* transitions-dev tokens: semantic names shared by every t-* class below. */ | |
| :root { | |
| --resize-dur: 300ms; | |
| --resize-ease: cubic-bezier(0.22, 1, 0.36, 1); | |
| --icon-swap-dur: 200ms; | |
| --icon-swap-blur: 2px; | |
| --icon-swap-start-scale: 0.25; | |
| --icon-swap-ease: ease-in-out; | |
| --avatar-lift: -3px; | |
| --avatar-dur: 280ms; | |
| --avatar-scale: 1.04; | |
| --avatar-falloff: 0.45; | |
| --avatar-ease-in: cubic-bezier(0.22, 1, 0.36, 1); | |
| --avatar-ease-out: cubic-bezier(0.34, 3.85, 0.64, 1); | |
| } | |
| /* Icon swap: cross-fade two icons sharing a slot. */ | |
| .t-icon-swap { | |
| position: relative; | |
| display: inline-grid; | |
| } | |
| .t-icon-swap .t-icon { | |
| grid-area: 1 / 1; | |
| transition: | |
| opacity var(--icon-swap-dur) var(--icon-swap-ease), | |
| filter var(--icon-swap-dur) var(--icon-swap-ease), | |
| transform var(--icon-swap-dur) var(--icon-swap-ease); | |
| will-change: opacity, filter, transform; | |
| } | |
| .t-icon-swap[data-state='a'] .t-icon[data-icon='a'], | |
| .t-icon-swap[data-state='b'] .t-icon[data-icon='b'] { | |
| opacity: 1; | |
| filter: blur(0); | |
| transform: scale(1); | |
| } | |
| .t-icon-swap[data-state='a'] .t-icon[data-icon='b'], | |
| .t-icon-swap[data-state='b'] .t-icon[data-icon='a'] { | |
| opacity: 0; | |
| filter: blur(var(--icon-swap-blur)); | |
| transform: scale(var(--icon-swap-start-scale)); | |
| pointer-events: none; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .t-icon-swap .t-icon { | |
| transition: none ; | |
| } | |
| } | |
| /* Avatar group hover: distance-falloff lift on a horizontal row. */ | |
| .t-avatar { | |
| transform-origin: center; | |
| transform: translateY(var(--shift, 0px)) scale(var(--scale-active, 1)); | |
| transition: | |
| transform var(--avatar-dur) var(--avatar-ease-in), | |
| background-color 150ms ease, | |
| color 150ms ease, | |
| border-color 150ms ease; | |
| will-change: transform; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .t-avatar { | |
| transition: none ; | |
| transform: none ; | |
| } | |
| } | |
| .gizmo { | |
| --text-primary: var(--gizmo-gray-950); | |
| --text-secondary: var(--gizmo-gray-600); | |
| --text-tertiary: var(--gizmo-gray-500); | |
| --text-muted: 105 110 121; /* Click UI global.color.text.muted #696e79 */ | |
| --surface-primary: var(--white); | |
| --chart-widget-surface: 255 255 255; /* Click UI dashboards.chartWidget.color.background.default #ffffff */ | |
| --chart-widget-stroke: 230 231 233; /* Click UI dashboards.chartWidget.color.stroke.default #e6e7e9 */ | |
| --surface-secondary: var(--gray-50); | |
| --surface-tertiary: var(--gray-100); | |
| --border-light: 0 0 0; | |
| --border-light-alpha: 0.1; | |
| --border-medium: 0 0 0; | |
| --border-medium-alpha: 0.15; | |
| --border-heavy: 0 0 0; | |
| --border-heavy-alpha: 0.2; | |
| --border-xheavy: 0 0 0; | |
| --border-xheavy-alpha: 0.25; | |
| } | |
| .gizmo.dark { | |
| --text-primary: var(--gray-100); | |
| --text-secondary: var(--gray-300); | |
| --text-tertiary: var(--gizmo-gray-500); | |
| --text-muted: 179 182 189; /* Click UI global.color.text.muted #b3b6bd */ | |
| --surface-primary: var(--gray-900); | |
| --chart-widget-surface: 40 40 40; /* Click UI dashboards.chartWidget.color.background.default #282828 */ | |
| --chart-widget-stroke: 50 50 50; /* Click UI dashboards.chartWidget.color.stroke.default #323232 */ | |
| --surface-secondary: var(--gray-800); | |
| --surface-tertiary: var(--gray-700); | |
| --border-light: 217 217 227; | |
| --border-medium: 217 217 227; | |
| --border-heavy: 217 217 227; | |
| --border-xheavy: 217 217 227; | |
| } | |
| /* High contrast appearance modes. | |
| * | |
| * Every `IThemeRGB` token is delivered by the theme registry as an inline custom | |
| * property on <html> (see packages/client/src/theme/themes/highContrast.ts), so | |
| * this block only covers what the token layer cannot reach: the CSS-only | |
| * variables and hard-coded literals elsewhere in this stylesheet. Every ratio | |
| * quoted below is measured against the mode's own canvas, pure white or pure | |
| * black. */ | |
| html.high-contrast { | |
| /* A 0.5rem bar is a small target to hit and a thin thing to see. */ | |
| --scrollbar-size: 0.75rem; | |
| /* Keep both animated text stops at the AAA ratios declared by the palette. */ | |
| --shimmer-base-alpha: 1; | |
| --shimmer-dip-alpha: 1; | |
| } | |
| html.high-contrast ::-webkit-scrollbar-thumb { | |
| /* The 10%-alpha thumb is invisible against a pure black or white canvas. */ | |
| background-color: rgb(var(--border-heavy)); | |
| } | |
| html.high-contrast ::-webkit-scrollbar-track { | |
| border: 1px solid rgb(var(--border-light)); | |
| } | |
| html.high-contrast * { | |
| scrollbar-color: rgb(var(--border-heavy)) rgb(var(--surface-primary)); | |
| } | |
| /* Controls that halve their own ring (`focus-visible:ring-text-primary/50` on the | |
| * composer's collapse, tools, attach-file and attach-file-menu buttons, | |
| * `focus:ring-text-primary/20` in `defaultTextProps`) keep it at full strength | |
| * here. v4 has no ring-opacity variable — the slash bakes the alpha into | |
| * `--tw-ring-color` as a `color-mix(...)` — so restoring full strength means | |
| * re-declaring the colour rather than resetting an opacity. | |
| * | |
| * Matched by the class the caller wrote, not by `*`: a control that names its own | |
| * ring colour means it, and `ring-current` on the toast close button is the ink | |
| * that contrasts with a status fill, where `--text-primary` would be black on | |
| * the light fills and white on the dark ones. The `:focus-visible` rule below | |
| * carries the mode's 3px perimeter for everything either way. */ | |
| html.high-contrast [class*='ring-text-primary/'] { | |
| --tw-ring-color: rgb(var(--text-primary)); | |
| } | |
| /* `.dark body`/`.dark html` pin the page to #212121, which would leave a | |
| * near-black canvas behind the pure black surfaces. */ | |
| html.high-contrast, | |
| html.high-contrast body, | |
| html.high-contrast.dark, | |
| html.high-contrast.dark body { | |
| background-color: rgb(var(--surface-primary)); | |
| } | |
| /* Selection is otherwise left to the UA's system colours, which no theme | |
| * controls. Inverting the canvas guarantees 21:1 for the selected run. */ | |
| html.high-contrast ::selection { | |
| background-color: rgb(var(--text-primary)); | |
| color: rgb(var(--surface-primary)); | |
| } | |
| /* WCAG 2.4.13 wants a 2px perimeter as the floor; a contrast mode should exceed | |
| * it. The global rule and the keyboard-modality rule for text fields sit at 2px. */ | |
| html.high-contrast :focus-visible, | |
| html.high-contrast.dark :focus-visible { | |
| outline: 3px solid rgb(var(--focus-outline)); | |
| outline-offset: 2px; | |
| } | |
| /* Selection perimeters and placeholder ink used to live here, but they complete | |
| * the exported palettes rather than this app: a package primitive rendered by | |
| * an external consumer of `ThemeProvider` needs them too, and the published | |
| * stylesheet is built only from package-owned CSS. They now ship from | |
| * `packages/client/src/theme/highContrast.css`, which `main.jsx` pulls in with | |
| * `@librechat/client/style.css`. What stays below is genuinely SPA-only. */ | |
| html[data-input-modality='keyboard'].high-contrast | |
| :where( | |
| input:not([type]), | |
| input:is( | |
| [type='text'], | |
| [type='search'], | |
| [type='email'], | |
| [type='password'], | |
| [type='url'], | |
| [type='tel'], | |
| [type='number'], | |
| [type='date'], | |
| [type='datetime-local'], | |
| [type='month'], | |
| [type='week'], | |
| [type='time'] | |
| ), | |
| textarea | |
| ):not(.lc-field):focus-visible { | |
| outline: 3px solid rgb(var(--focus-control)) ; | |
| outline-offset: 2px ; | |
| } | |
| /* The WCAG 1.4.1 link treatment moved to | |
| * `packages/client/src/theme/highContrast.css` with the other rules that | |
| * complete the exported palettes: `text-link` is a shared role, so a package | |
| * primitive rendering a link needs the same non-colour cue. */ | |
| /* The whole `@tailwindcss/typography` variable block is hard-coded hex, and | |
| * message content carries `prose dark:prose-invert`, so the invert half is what | |
| * dark mode reads. Both halves are remapped: the light set puts prose links at | |
| * #0066cc, which is 3.77:1 on a black canvas and 5.40:1 on a white one, and | |
| * every rule and border in the set (#cdcdcd, #e5e7eb, #424242, #4b5563) sits | |
| * below the 3:1 non-text floor in one mode or the other. */ | |
| html.high-contrast .prose { | |
| --tw-prose-body: rgb(var(--text-primary)); | |
| --tw-prose-headings: rgb(var(--text-primary)); | |
| --tw-prose-lead: rgb(var(--text-primary)); | |
| --tw-prose-links: rgb(var(--link)); | |
| --tw-prose-bold: rgb(var(--text-primary)); | |
| --tw-prose-counters: rgb(var(--text-primary)); | |
| --tw-prose-bullets: rgb(var(--text-primary)); | |
| --tw-prose-hr: rgb(var(--border-medium)); | |
| --tw-prose-quotes: rgb(var(--text-primary)); | |
| --tw-prose-quote-borders: rgb(var(--border-medium)); | |
| --tw-prose-captions: rgb(var(--text-primary)); | |
| --tw-prose-code: rgb(var(--text-primary)); | |
| --tw-prose-pre-code: rgb(var(--text-primary)); | |
| --tw-prose-pre-bg: rgb(var(--surface-code)); | |
| --tw-prose-th-borders: rgb(var(--border-medium)); | |
| --tw-prose-td-borders: rgb(var(--border-medium)); | |
| --tw-prose-invert-body: rgb(var(--text-primary)); | |
| --tw-prose-invert-headings: rgb(var(--text-primary)); | |
| --tw-prose-invert-lead: rgb(var(--text-primary)); | |
| --tw-prose-invert-links: rgb(var(--link)); | |
| --tw-prose-invert-bold: rgb(var(--text-primary)); | |
| --tw-prose-invert-counters: rgb(var(--text-primary)); | |
| --tw-prose-invert-bullets: rgb(var(--text-primary)); | |
| --tw-prose-invert-hr: rgb(var(--border-medium)); | |
| --tw-prose-invert-quotes: rgb(var(--text-primary)); | |
| --tw-prose-invert-quote-borders: rgb(var(--border-medium)); | |
| --tw-prose-invert-captions: rgb(var(--text-primary)); | |
| --tw-prose-invert-code: rgb(var(--text-primary)); | |
| --tw-prose-invert-pre-code: rgb(var(--text-primary)); | |
| --tw-prose-invert-pre-bg: rgb(var(--surface-code)); | |
| --tw-prose-invert-th-borders: rgb(var(--border-medium)); | |
| --tw-prose-invert-td-borders: rgb(var(--border-medium)); | |
| } | |
| /* Markdown structure borders are drawn from the raw grey palette, which lands | |
| * at 1.6:1 on white and 2.1:1 on black, under the 3:1 non-text floor. */ | |
| html.high-contrast .markdown blockquote, | |
| html.high-contrast .markdown th, | |
| html.high-contrast .markdown th:last-child, | |
| html.high-contrast .markdown td, | |
| html.high-contrast .markdown td:last-child { | |
| border-color: rgb(var(--border-medium)); | |
| } | |
| /* `.btn-neutral` (the Builder's Knowledge, Code Files and Assistant selectors | |
| * and the delete trigger) predates the token layer and hard-codes its edge, | |
| * label and hover fill. On white, `rgba(0, 0, 0, 0.1)` and #ececf1 sit at 1.1:1 | |
| * and 1.05:1; on black, #424242 sits at 2.09:1 for both the edge and the hover | |
| * fill. All four are under the 3:1 non-text floor, which leaves the control | |
| * boundary and its hover state unreadable. */ | |
| html.high-contrast .btn-neutral, | |
| html.high-contrast.dark .btn-neutral { | |
| background-color: rgb(var(--surface-primary)); | |
| border-color: rgb(var(--border-medium)); | |
| color: rgb(var(--text-primary)); | |
| } | |
| html.high-contrast .btn-neutral:hover, | |
| html.high-contrast.dark .btn-neutral:hover { | |
| background-color: rgb(var(--surface-hover)); | |
| } | |
| .icon-sm { | |
| stroke-width: 2; | |
| height: 1rem; | |
| width: 1rem; | |
| } | |
| .icon-md, | |
| .icon-md-heavy { | |
| stroke-width: 1.5; | |
| height: 1.125rem; | |
| width: 1.125rem; | |
| } | |
| .icon-md-heavy { | |
| stroke-width: 2.5; | |
| } | |
| .icon-lg { | |
| stroke-width: 1.5; | |
| height: 1.5rem; | |
| width: 1.5rem; | |
| } | |
| .icon-xl { | |
| stroke-width: 1.5; | |
| height: 1.75rem; | |
| width: 1.75rem; | |
| } | |
| .icon-2xl { | |
| stroke-width: 1.5; | |
| height: 2rem; | |
| width: 2rem; | |
| } | |
| /* Forced-colors overrides the inline `background-color: currentColor` a masked | |
| * CustomIcon paints with; `!important` is needed to beat that inline style. */ | |
| @media (forced-colors: active) { | |
| .custom-icon-tint { | |
| background-color: CanvasText ; | |
| } | |
| } | |
| .ellipsis { | |
| overflow: hidden; | |
| white-space: nowrap; | |
| text-overflow: ellipsis; | |
| } | |
| /* v4 puts every utility in `@layer utilities`, and an unlayered declaration outranks a | |
| * layered one whatever its specificity. The rules below are element and bare-pseudo | |
| * resets that utilities beat under v3 by being classes; each is layered so it keeps | |
| * losing to a utility. A rule that is meant to beat utilities stays unlayered | |
| * (`.dark :focus-visible`, the `code, pre` font reset). */ | |
| @layer base { | |
| select { | |
| --tw-shadow: 0 0 transparent; | |
| -webkit-appearance: none; | |
| appearance: none; | |
| background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238e8ea0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); | |
| background-position: right 0.5rem center; | |
| background-repeat: no-repeat; | |
| background-size: 1.5em 1.5em; | |
| padding-right: 2.5rem; | |
| background-color: #fff; | |
| border-color: #8e8ea0; | |
| border-radius: 0; | |
| border-width: 1px; | |
| font-size: 1rem; | |
| line-height: 1.5rem; | |
| } | |
| } | |
| .reset-rc-number-input input { | |
| width: 100%; | |
| border: none ; | |
| background: transparent; | |
| } | |
| .reset-rc-number-input-text-right input { | |
| text-align: right; | |
| } | |
| p > small { | |
| opacity: 0; | |
| animation: fadein 3s forwards; | |
| } | |
| .fade-in { | |
| animation: fadeInWithOutTranslate 0.3s ease-in-out; | |
| } | |
| @keyframes fadeInWithOutTranslate { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes fadein { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @layer base { | |
| blockquote, | |
| dd, | |
| dl, | |
| fieldset, | |
| figure, | |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6, | |
| hr, | |
| p, | |
| pre { | |
| margin: 0; | |
| } | |
| } | |
| /* Show the message time when the row is hovered. Tailwind group-hover | |
| loses to `[@media(hover:hover)]:opacity-0` (same specificity, :where()). | |
| Keyboard focus reveals it too, but only `:focus-visible`: a pointer that | |
| clicks a tool card or an expand toggle inside the row leaves focus sitting | |
| there, and plain `:focus-within` would pin the time open long after the | |
| pointer moved away. | |
| The condition matches the row itself as well as its descendants, because | |
| `MessageNav` focuses the row through `tabindex="-1"` and `:has()` never | |
| matches its own subject. Text-entry controls are excluded, because they | |
| match `:focus-visible` on a plain mouse click. See `revealOnRowHoverClasses` | |
| in `components/Chat/Messages/styles.ts` for the full reasoning. */ | |
| @media (hover: hover) { | |
| .message-render .message-timestamp { | |
| opacity: 0; | |
| } | |
| .message-render:hover .message-timestamp, | |
| .message-render:focus-visible .message-timestamp, | |
| .message-render:has(:focus-visible:not(:is(input, textarea, [contenteditable]))) | |
| .message-timestamp { | |
| opacity: 1; | |
| } | |
| } | |
| /* Scroll-to-bottom: fade and rise on the same path. No scale. */ | |
| /* Inertness during the transition is owned by the button's `interactive` prop, | |
| not by these classes: the wrapper is already inert, and a descendant that | |
| opts back into pointer events stays hit-testable however its parent paints. */ | |
| .scroll-animation-enter { | |
| opacity: 0; | |
| transform: translateY(8px); | |
| } | |
| .scroll-animation-enter-active { | |
| opacity: 1; | |
| transform: translateY(0); | |
| transition: | |
| opacity var(--resize-dur) var(--resize-ease), | |
| transform var(--resize-dur) var(--resize-ease); | |
| } | |
| .scroll-animation-enter-done { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| .scroll-animation-exit { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| .scroll-animation-exit-active { | |
| opacity: 0; | |
| transform: translateY(8px); | |
| transition: | |
| opacity 180ms cubic-bezier(0.4, 0, 1, 1), | |
| transform 180ms cubic-bezier(0.4, 0, 1, 1); | |
| } | |
| .scroll-animation-exit-done { | |
| display: none; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .scroll-animation-enter, | |
| .scroll-animation-exit, | |
| .scroll-animation-exit-active { | |
| transform: none; | |
| } | |
| .scroll-animation-enter-active, | |
| .scroll-animation-exit-active { | |
| transition: opacity 150ms ease; | |
| } | |
| } | |
| .prose { | |
| color: var(--tw-prose-body); | |
| max-width: 65ch; | |
| font-size: var(--markdown-font-size, var(--font-size-base)); | |
| line-height: calc( | |
| 1.375rem * var(--markdown-font-size, var(--font-size-base)) / var(--font-size-base) | |
| ); | |
| } | |
| .prose :where([class~='lead']):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-lead); | |
| font-size: 1.25em; | |
| line-height: 1.3; | |
| margin-bottom: 1.2em; | |
| margin-top: 1.2em; | |
| } | |
| .prose :where(a):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-links); | |
| font-weight: 500; | |
| text-decoration: underline; | |
| } | |
| .prose :where(strong):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-bold); | |
| font-weight: 600; | |
| } | |
| .prose :where(a strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(blockquote strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(thead th strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(ul > li):not(:where([class~='not-prose'] *))::marker { | |
| color: var(--tw-prose-bullets); | |
| } | |
| .prose :where(hr):not(:where([class~='not-prose'] *)) { | |
| border-color: var(--tw-prose-hr); | |
| border-top-width: 1px; | |
| margin-bottom: 0.8em; | |
| margin-top: 0.8em; | |
| } | |
| .prose :where(blockquote):not(:where([class~='not-prose'] *)) { | |
| border-left-color: var(--tw-prose-quote-borders); | |
| border-left-width: 0.25rem; | |
| color: var(--tw-prose-quotes); | |
| font-style: italic; | |
| font-style: normal; | |
| font-weight: 500; | |
| margin-bottom: 1.6em; | |
| margin-top: 1.6em; | |
| padding-left: 1em; | |
| quotes: '\201C' '\201D' '\2018' '\2019'; | |
| } | |
| .prose :where(blockquote p:first-of-type):not(:where([class~='not-prose'] *)):before { | |
| content: open-quote; | |
| } | |
| .prose :where(blockquote p:last-of-type):not(:where([class~='not-prose'] *)):after { | |
| content: close-quote; | |
| } | |
| .prose :where(h1):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-headings); | |
| font-size: 2.25em; | |
| font-weight: 800; | |
| line-height: 1; | |
| margin-bottom: 0.4em; | |
| margin-top: 0.6em; | |
| } | |
| .prose :where(h1 strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-weight: 900; | |
| } | |
| .prose :where(h2):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-headings); | |
| font-size: 1.5em; | |
| font-weight: 700; | |
| line-height: 1.1; | |
| margin-bottom: 0.4em; | |
| margin-top: 0.8em; | |
| } | |
| .prose :where(h2 strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-weight: 800; | |
| } | |
| .prose :where(h3):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-headings); | |
| font-size: 1.25em; | |
| font-weight: 600; | |
| line-height: 1.3; | |
| margin-bottom: 0.3em; | |
| margin-top: 0.6em; | |
| } | |
| .prose :where(h3 strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-weight: 700; | |
| } | |
| .prose :where(h4):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-headings); | |
| font-weight: 600; | |
| line-height: 1.2; | |
| margin-bottom: 0.3em; | |
| margin-top: 0.5em; | |
| } | |
| .prose :where(h4 strong):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-weight: 700; | |
| } | |
| .prose :where(img):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 2em; | |
| margin-top: 2em; | |
| } | |
| .prose :where(figure > *):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0; | |
| margin-top: 0; | |
| } | |
| .prose :where(figcaption):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-captions); | |
| font-size: 0.875em; | |
| line-height: 1.2; | |
| margin-top: 0.8571429em; | |
| } | |
| .prose :where(code):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-code); | |
| font-size: 0.875em; | |
| font-weight: var(--theme-inline-code-weight, 600); | |
| background-color: rgb(var(--surface-code-inline)); | |
| padding: 0.125rem 0.25rem; | |
| border-radius: 0.35rem; | |
| } | |
| .prose :where(a code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(h1 code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(h2 code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-size: 0.875em; | |
| } | |
| .prose :where(h3 code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| font-size: 0.9em; | |
| } | |
| .prose :where(h4 code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(blockquote code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(thead th code):not(:where([class~='not-prose'] *)) { | |
| color: inherit; | |
| } | |
| .prose :where(pre):not(:where([class~='not-prose'] *)) { | |
| background-color: transparent; | |
| border-radius: 0.75rem; | |
| color: currentColor; | |
| font-size: 0.875em; | |
| font-weight: 400; | |
| line-height: 1.4; | |
| margin: 0; | |
| overflow-x: auto; | |
| padding: 0; | |
| } | |
| .prose :where(pre code):not(:where([class~='not-prose'] *)) { | |
| background-color: transparent; | |
| border-radius: 0; | |
| border-width: 0; | |
| color: inherit; | |
| font-family: inherit; | |
| font-size: inherit; | |
| font-weight: inherit; | |
| line-height: inherit; | |
| padding: 0; | |
| } | |
| .prose :where(pre code):not(:where([class~='not-prose'] *)):before { | |
| content: none; | |
| } | |
| .prose :where(pre code):not(:where([class~='not-prose'] *)):after { | |
| content: none; | |
| } | |
| .prose :where(table):not(:where([class~='not-prose'] *)) { | |
| font-size: 0.875em; | |
| line-height: 1.4; | |
| margin-bottom: 2em; | |
| margin-top: 2em; | |
| table-layout: auto; | |
| text-align: left; | |
| width: 100%; | |
| } | |
| .prose :where(thead):not(:where([class~='not-prose'] *)) { | |
| border-bottom-color: var(--tw-prose-th-borders); | |
| border-bottom-width: 1px; | |
| } | |
| .prose :where(thead th):not(:where([class~='not-prose'] *)) { | |
| color: var(--tw-prose-headings); | |
| font-weight: 600; | |
| padding-bottom: 0.5714286em; | |
| padding-left: 0.5714286em; | |
| padding-right: 0.5714286em; | |
| vertical-align: bottom; | |
| } | |
| .prose :where(tbody tr):not(:where([class~='not-prose'] *)) { | |
| border-bottom-color: var(--tw-prose-td-borders); | |
| border-bottom-width: 1px; | |
| } | |
| .prose :where(tbody tr:last-child):not(:where([class~='not-prose'] *)) { | |
| border-bottom-width: 0; | |
| } | |
| .prose :where(tbody td):not(:where([class~='not-prose'] *)) { | |
| vertical-align: baseline; | |
| } | |
| .prose :where(tfoot):not(:where([class~='not-prose'] *)) { | |
| border-top-color: var(--tw-prose-th-borders); | |
| border-top-width: 1px; | |
| } | |
| .prose :where(tfoot td):not(:where([class~='not-prose'] *)) { | |
| vertical-align: top; | |
| } | |
| /* Prose colours read the theme roles, so a theme definition repaints message | |
| * content. Each variable takes the role that reproduces the default palette | |
| * (body is `text-secondary`, #424242 in light). Links read `link-prose`, which is | |
| * `link` in light and `text-primary` in dark, where the default set renders them white. */ | |
| .prose { | |
| --tw-prose-body: rgb(var(--text-secondary)); | |
| --tw-prose-headings: rgb(var(--text-primary)); | |
| --tw-prose-lead: rgb(var(--text-secondary)); | |
| --tw-prose-links: rgb(var(--link-prose)); | |
| --tw-prose-bold: rgb(var(--text-primary)); | |
| --tw-prose-counters: rgb(var(--text-tertiary)); | |
| --tw-prose-bullets: rgb(var(--prose-bullet)); | |
| --tw-prose-hr: rgb(var(--border-medium)); | |
| --tw-prose-quotes: rgb(var(--text-primary)); | |
| --tw-prose-quote-borders: rgb(var(--border-light)); | |
| --tw-prose-captions: rgb(var(--text-tertiary)); | |
| --tw-prose-code: rgb(var(--text-primary)); | |
| --tw-prose-pre-code: rgb(var(--text-primary)); | |
| --tw-prose-pre-bg: rgb(var(--surface-code)); | |
| --tw-prose-th-borders: rgb(var(--border-medium)); | |
| --tw-prose-td-borders: rgb(var(--border-light)); | |
| --tw-prose-invert-body: rgb(var(--text-secondary)); | |
| --tw-prose-invert-headings: rgb(var(--text-primary)); | |
| --tw-prose-invert-lead: rgb(var(--text-tertiary)); | |
| --tw-prose-invert-links: rgb(var(--link-prose)); | |
| --tw-prose-invert-bold: rgb(var(--text-primary)); | |
| --tw-prose-invert-counters: rgb(var(--text-tertiary)); | |
| --tw-prose-invert-bullets: rgb(var(--prose-bullet)); | |
| --tw-prose-invert-hr: rgb(var(--border-medium)); | |
| --tw-prose-invert-quotes: rgb(var(--text-primary)); | |
| --tw-prose-invert-quote-borders: rgb(var(--border-medium)); | |
| --tw-prose-invert-captions: rgb(var(--text-tertiary)); | |
| --tw-prose-invert-code: rgb(var(--text-primary)); | |
| --tw-prose-invert-pre-code: rgb(var(--text-primary)); | |
| --tw-prose-invert-pre-bg: rgb(var(--surface-code)); | |
| --tw-prose-invert-th-borders: rgb(var(--border-medium)); | |
| --tw-prose-invert-td-borders: rgb(var(--border-medium)); | |
| font-size: 1rem; | |
| line-height: 1.4; | |
| } | |
| .prose :where(p):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 1.25em; | |
| margin-top: 1.25em; | |
| } | |
| .prose :where(video):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 2em; | |
| margin-top: 2em; | |
| } | |
| .prose :where(figure):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 2em; | |
| margin-top: 2em; | |
| } | |
| .prose :where(li):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0.5em; | |
| margin-top: 0.5em; | |
| } | |
| .prose :where(ul > li):not(:where([class~='not-prose'] *)) { | |
| padding-left: 0.375em; | |
| } | |
| .prose :where(.prose > ul > li p):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0.75em; | |
| margin-top: 0.75em; | |
| } | |
| .prose :where(.prose > ul > li > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(.prose > ul > li > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 1.25em; | |
| } | |
| .prose :where(hr + *):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(h2 + *):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(h3 + *):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(h4 + *):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| /* Ensure symmetrical spacing around hr */ | |
| .prose :where(* + hr):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0.8em; | |
| } | |
| .prose :where(hr + h1, hr + h2, hr + h3, hr + h4):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0.4em; | |
| } | |
| .prose :where(thead th:first-child):not(:where([class~='not-prose'] *)) { | |
| padding-left: 0; | |
| } | |
| .prose :where(thead th:last-child):not(:where([class~='not-prose'] *)) { | |
| padding-right: 0; | |
| } | |
| .prose :where(tbody td, tfoot td):not(:where([class~='not-prose'] *)) { | |
| padding: 0.5714286em; | |
| } | |
| .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~='not-prose'] *)) { | |
| padding-left: 0; | |
| } | |
| .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~='not-prose'] *)) { | |
| padding-right: 0; | |
| } | |
| .prose :where(.prose > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(.prose > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0; | |
| } | |
| .prose-sm :where(.prose > ul > li p):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0.5714286em; | |
| margin-top: 0.5714286em; | |
| } | |
| .prose-sm :where(.prose > ul > li > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 1.1428571em; | |
| } | |
| .prose-sm :where(.prose > ul > li > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 1.1428571em; | |
| } | |
| .prose-sm :where(.prose > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose-sm :where(.prose > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0; | |
| } | |
| .prose :where(ul > li):has(input[type='checkbox']):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0; | |
| margin-top: 0; | |
| } | |
| .prose :where(ul > li):has(input[type='checkbox']) p:not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0; | |
| margin-top: 0; | |
| } | |
| /* `code`, `kbd`, `samp` and `pre` take their font from Tailwind's preflight, which | |
| reads `--font-mono`, mapped to `--theme-mono-font-family` above. Do not restate it here: | |
| this file used to, with `!important`, which silently beat every `font-mono` class | |
| in the app and pinned code to faces the repository does not ship. */ | |
| code.language-text, | |
| code.language-txt, | |
| code.language-plaintext, | |
| code.language-markdown, | |
| code.language-md { | |
| white-space: pre-wrap ; | |
| } | |
| code.hljs, | |
| code[class*='language-'], | |
| pre[class*='language-'] { | |
| word-wrap: normal; | |
| background: none; | |
| color: rgb(var(--syntax-text)); | |
| -webkit-hyphens: none; | |
| hyphens: none; | |
| font-size: 0.85rem; | |
| line-height: 1.5; | |
| tab-size: 4; | |
| text-align: left; | |
| white-space: pre; | |
| word-break: normal; | |
| word-spacing: normal; | |
| } | |
| pre[class*='language-'] { | |
| border-radius: 0.3em; | |
| overflow: auto; | |
| } | |
| :not(pre) > code.hljs, | |
| :not(pre) > code[class*='language-'] { | |
| border-radius: 0.3em; | |
| padding: 0.1em; | |
| white-space: normal; | |
| } | |
| .hljs-comment { | |
| color: rgb(var(--syntax-comment)); | |
| } | |
| .hljs-meta { | |
| color: rgb(var(--syntax-meta)); | |
| } | |
| .hljs-built_in, | |
| .hljs-class .hljs-title { | |
| color: rgb(var(--syntax-builtin)); | |
| } | |
| .hljs-doctag, | |
| .hljs-formula, | |
| .hljs-keyword, | |
| .hljs-literal { | |
| color: rgb(var(--syntax-keyword)); | |
| } | |
| .hljs-addition, | |
| .hljs-attribute, | |
| .hljs-meta-string, | |
| .hljs-regexp, | |
| .hljs-string { | |
| color: rgb(var(--syntax-string)); | |
| } | |
| .hljs-attr, | |
| .hljs-number, | |
| .hljs-selector-attr, | |
| .hljs-selector-class, | |
| .hljs-selector-pseudo, | |
| .hljs-template-variable, | |
| .hljs-type, | |
| .hljs-variable { | |
| color: rgb(var(--syntax-attr)); | |
| } | |
| .hljs-bullet, | |
| .hljs-link, | |
| .hljs-selector-id, | |
| .hljs-symbol, | |
| .hljs-title { | |
| color: rgb(var(--syntax-title)); | |
| } | |
| /* Tailwind 3 gave every button a pointer cursor and Tailwind 4 leaves the | |
| * platform default, so this shim is what keeps the affordance. It belongs in | |
| * `base`: unlayered it would outrank every utility in the sheet, and | |
| * `cursor-default` on `SelectDropDown` or `disabled:cursor-not-allowed` on a | |
| * disabled button would stop meaning anything. */ | |
| @layer base { | |
| [role='button'], | |
| button { | |
| cursor: pointer; | |
| } | |
| } | |
| .btn { | |
| align-items: center; | |
| border-color: transparent; | |
| border-radius: 0.5rem; | |
| border-width: 1px; | |
| cursor: pointer; | |
| display: inline-flex; | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| line-height: 1.25rem; | |
| padding: 0.5rem 0.75rem; | |
| pointer-events: auto; | |
| transition: all 0.1s ease-in-out; | |
| } | |
| .custom-btn { | |
| align-items: center; | |
| border-color: transparent; | |
| border-radius: 0.25rem; | |
| border-width: 1px; | |
| display: inline-flex; | |
| font-size: 0.875rem; | |
| line-height: 1.25rem; | |
| padding: 0.5rem 0.75rem; | |
| transition: all 0.1s ease-in-out; | |
| } | |
| .btn:focus { | |
| outline: 2px solid transparent; | |
| outline-offset: 2px; | |
| } | |
| .btn:disabled { | |
| cursor: not-allowed; | |
| opacity: 0.5; | |
| } | |
| .btn-primary { | |
| --tw-bg-opacity: 1; | |
| --tw-text-opacity: 1; | |
| background-color: rgba(16, 163, 127, var(--tw-bg-opacity)); | |
| color: rgba(255, 255, 255, var(--tw-text-opacity)); | |
| } | |
| .btn-primary:hover { | |
| --tw-bg-opacity: 1; | |
| background-color: rgba(26, 127, 100, var(--tw-bg-opacity)); | |
| } | |
| .btn-primary:focus { | |
| --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) | |
| var(--tw-ring-offset-color); | |
| --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) | |
| var(--tw-ring-color); | |
| --tw-ring-offset-width: 2px; | |
| box-shadow: | |
| var(--tw-ring-offset-shadow), | |
| var(--tw-ring-shadow), | |
| 0 0 transparent; | |
| box-shadow: | |
| var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 transparent); | |
| } | |
| .btn-primary.focus-visible { | |
| --tw-ring-opacity: 1; | |
| --tw-ring-color: rgba(25, 195, 125, var(--tw-ring-opacity)); | |
| } | |
| .btn-primary:focus-visible { | |
| --tw-ring-opacity: 1; | |
| --tw-ring-color: rgba(25, 195, 125, var(--tw-ring-opacity)); | |
| } | |
| .btn-primary:disabled:hover { | |
| --tw-bg-opacity: 1; | |
| background-color: rgba(16, 163, 127, var(--tw-bg-opacity)); | |
| } | |
| .btn-secondary { | |
| --tw-border-opacity: 1; | |
| --tw-bg-opacity: 1; | |
| --tw-text-opacity: 1; | |
| background-color: transparent; | |
| background-color: rgba(16, 163, 156, var(--tw-bg-opacity)); | |
| color: rgba(255, 255, 255, var(--tw-text-opacity)); | |
| } | |
| .btn-secondary:hover { | |
| --tw-bg-opacity: 1; | |
| border-color: rgba(0, 0, 0, 0.1); | |
| color: rgba(64, 65, 79, var(--tw-text-opacity)); | |
| background-color: rgba(236, 236, 241, var(--tw-bg-opacity)); | |
| } | |
| .dark .btn-secondary:hover { | |
| --tw-bg-opacity: 1; | |
| border-color: rgba(8, 82, 78, var(--tw-border-opacity)); | |
| color: rgba(255, 255, 240, var(--tw-text-opacity)); | |
| background-color: rgba(8, 82, 78, var(--tw-bg-opacity)); | |
| } | |
| .btn-neutral { | |
| --tw-bg-opacity: 1; | |
| --tw-text-opacity: 1; | |
| background-color: rgb(var(--surface-secondary)); | |
| border-color: rgba(0, 0, 0, 0.1); | |
| border-width: 1px; | |
| color: rgba(64, 65, 79, var(--tw-text-opacity)); | |
| font-size: 0.875rem; | |
| line-height: 1.25rem; | |
| transition: all 0.1s ease-in-out; | |
| } | |
| .btn-neutral:hover { | |
| --tw-bg-opacity: 1; | |
| background-color: rgba(236, 236, 241, var(--tw-bg-opacity)); | |
| } | |
| .btn-neutral:focus { | |
| outline: none; | |
| box-shadow: 0 0 0 2px rgb(var(--ring-primary)); | |
| } | |
| .dark .btn-neutral { | |
| --tw-border-opacity: 1; | |
| --tw-bg-opacity: 1; | |
| --tw-text-opacity: 1; | |
| background-color: transparent; | |
| border-color: rgba(66, 66, 66, var(--tw-border-opacity)); | |
| color: rgba(255, 255, 240, var(--tw-text-opacity)); | |
| } | |
| .dark .btn-neutral:hover { | |
| --tw-bg-opacity: 1; | |
| background-color: rgba(66, 66, 66, var(--tw-bg-opacity)); | |
| } | |
| .dark .btn-neutral:focus { | |
| box-shadow: 0 0 0 2px rgb(var(--ring-primary)); | |
| } | |
| .btn-small { | |
| padding: 0.25rem 0.5rem; | |
| } | |
| /* Webkit scrollbar */ | |
| :root { | |
| /* Width of the app's own scrollbars, and so of the band a | |
| `scrollbar-gutter: stable` container holds back. `.scrollbar-gutter-spacer` | |
| reserves the same band without becoming a scroll container. */ | |
| --scrollbar-size: 0.5rem; | |
| } | |
| ::-webkit-scrollbar { | |
| height: 0.1em; | |
| width: var(--scrollbar-size); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background-color: rgba(0, 0, 0, 0.1); | |
| border-radius: 9999px; | |
| } | |
| .dark ::-webkit-scrollbar-thumb { | |
| background-color: hsla(0, 0%, 100%, 0.1); | |
| } | |
| ::-webkit-scrollbar-track { | |
| background-color: transparent; | |
| border-radius: 9999px; | |
| } | |
| .markdown-table-wrapper { | |
| -webkit-overflow-scrolling: touch; | |
| overflow-x: auto; | |
| overscroll-behavior-x: contain; | |
| padding-bottom: 0.25rem; | |
| scrollbar-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)) transparent; | |
| scrollbar-width: thin; | |
| } | |
| .markdown-table-wrapper::-webkit-scrollbar { | |
| height: 0.5rem; | |
| } | |
| .markdown-table-wrapper::-webkit-scrollbar-thumb { | |
| background-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)); | |
| } | |
| .markdown-table-wrapper::-webkit-scrollbar-thumb:hover { | |
| background-color: rgb(var(--border-heavy) / var(--border-heavy-alpha, 1)); | |
| } | |
| /* Show scrollbar only on hover */ | |
| .scrollbar-hover { | |
| scrollbar-width: thin; | |
| scrollbar-color: transparent transparent; | |
| } | |
| .scrollbar-hover:hover { | |
| scrollbar-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)) transparent; | |
| } | |
| .scrollbar-hover::-webkit-scrollbar-thumb { | |
| background-color: transparent; | |
| transition: background-color 0.3s ease 0.5s; | |
| } | |
| .scrollbar-hover:hover::-webkit-scrollbar-thumb { | |
| background-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)); | |
| transition-delay: 0s; | |
| } | |
| body, | |
| html { | |
| height: 100%; | |
| } | |
| /* Scoped to drawer mode rather than a fixed viewport width: that breakpoint is | |
| scale-aware and a media query cannot read the scaled root font size, so Root | |
| stamps this attribute from the same predicate. In drawer mode the app never | |
| scrolls at the root, so chaining out of nested scrollers has nothing legitimate | |
| to reach: this kills Chrome Android's pull-to-refresh and horizontal overscroll | |
| gliding into browser navigation. Desktop keeps native trackpad back/forward | |
| and refresh gestures. */ | |
| html[data-drawer-nav], | |
| html[data-drawer-nav] body { | |
| overscroll-behavior: none; | |
| } | |
| .dark body, | |
| .dark html { | |
| --tw-bg-opacity: 1; | |
| background-color: rgba(23, 23, 23, var(--tw-bg-opacity)); | |
| } | |
| #__next, | |
| #root { | |
| height: 100%; | |
| } | |
| .markdown { | |
| max-width: none; | |
| font-size: var(--markdown-font-size, var(--font-size-base)); | |
| line-height: calc( | |
| 1.375rem * var(--markdown-font-size, var(--font-size-base)) / var(--font-size-base) | |
| ); | |
| } | |
| .markdown h1 { | |
| font-size: calc(var(--markdown-font-size) * 1.75); | |
| } | |
| .markdown h2 { | |
| font-size: calc(var(--markdown-font-size) * 1.5); | |
| } | |
| .markdown h2 { | |
| margin-bottom: 0.4rem; | |
| margin-top: 0.8rem; | |
| } | |
| .markdown h3 { | |
| font-weight: 600; | |
| font-size: calc(var(--markdown-font-size) * 1.25); | |
| } | |
| .markdown h3, | |
| .markdown h4 { | |
| margin-bottom: 0.3rem; | |
| margin-top: 0.6rem; | |
| } | |
| .markdown h4 { | |
| font-weight: 400; | |
| font-size: calc(var(--markdown-font-size) * 1.1); | |
| } | |
| .markdown h5 { | |
| font-weight: 600; | |
| font-size: var(--markdown-font-size); | |
| } | |
| .markdown blockquote { | |
| --tw-border-opacity: 1; | |
| border-color: rgb(var(--prose-quote-bar)); | |
| border-left-width: 2px; | |
| line-height: 1rem; | |
| padding-left: 1rem; | |
| } | |
| .markdown table { | |
| --tw-border-spacing-x: 0px; | |
| --tw-border-spacing-y: 0px; | |
| border-collapse: separate; | |
| border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); | |
| width: 100%; | |
| } | |
| .markdown th { | |
| background-color: rgb(var(--table-header-fill)); | |
| border-bottom-width: 1px; | |
| border-left-width: 1px; | |
| border-top-width: 1px; | |
| padding: 0.25rem 0.75rem; | |
| } | |
| .markdown th:first-child { | |
| border-top-left-radius: 0.375rem; | |
| } | |
| .markdown th:last-child { | |
| border-right-width: 1px; | |
| border-color: rgb(var(--border-medium)); | |
| border-top-right-radius: 0.375rem; | |
| } | |
| .markdown td { | |
| border-bottom-width: 1px; | |
| border-left-width: 1px; | |
| padding: 0.25rem 0.75rem; | |
| } | |
| .markdown td:last-child { | |
| border-right-width: 1px; | |
| } | |
| .markdown tbody tr:last-child td:first-child { | |
| border-bottom-left-radius: 0.375rem; | |
| } | |
| .markdown tbody tr:last-child td:last-child { | |
| border-bottom-right-radius: 0.375rem; | |
| } | |
| /* The column rules take the inset share of the border-medium edge, so a theme that draws no inset | |
| * border keeps the row rules and the outer frame only. Every side edge takes the inset share and | |
| * the frame, the first cell's start edge and the last cell's end edge, is put back whole in | |
| * logical terms, so a table laid out right-to-left, even under a left-to-right page, keeps the | |
| * edge that is visually outermost with no selector on direction. The selectors outrank the cell | |
| * rules above, which restate the edge in one declaration, and leave high contrast to its own. */ | |
| html:not(.high-contrast) .markdown :is(th, td) { | |
| border-left-color: rgb( | |
| var(--border-medium) / calc(var(--border-medium-alpha, 1) * var(--theme-border-inset-alpha, 1)) | |
| ); | |
| border-right-color: rgb( | |
| var(--border-medium) / calc(var(--border-medium-alpha, 1) * var(--theme-border-inset-alpha, 1)) | |
| ); | |
| } | |
| html:not(.high-contrast) .markdown :is(th, td):first-child { | |
| border-inline-start-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)); | |
| } | |
| html:not(.high-contrast) .markdown :is(th, td):last-child { | |
| border-inline-end-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)); | |
| } | |
| .markdown a { | |
| text-decoration-line: underline; | |
| text-underline-offset: 2px; | |
| } | |
| .group:hover .group-hover\:visible { | |
| visibility: visible; | |
| } | |
| .group:hover .group-hover\:from-\[\#2A2B32\] { | |
| --tw-gradient-from: #2a2b32; | |
| --tw-gradient-to: rgba(42, 43, 50, 0); | |
| --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); | |
| } | |
| .group:hover .group-hover\:text-gray-500 { | |
| --tw-text-opacity: 1; | |
| color: rgba(142, 142, 160, var(--tw-text-opacity)); | |
| } | |
| .group:hover .group-hover\:text-gray-700 { | |
| --tw-text-opacity: 1; | |
| color: rgba(64, 65, 79, var(--tw-text-opacity)); | |
| } | |
| .dark .dark\:prose-invert { | |
| --tw-prose-body: var(--tw-prose-invert-body); | |
| --tw-prose-headings: var(--tw-prose-invert-headings); | |
| --tw-prose-lead: var(--tw-prose-invert-lead); | |
| --tw-prose-links: var(--tw-prose-invert-links); | |
| --tw-prose-bold: var(--tw-prose-invert-bold); | |
| --tw-prose-counters: var(--tw-prose-invert-counters); | |
| --tw-prose-bullets: var(--tw-prose-invert-bullets); | |
| --tw-prose-hr: var(--tw-prose-invert-hr); | |
| --tw-prose-quotes: var(--tw-prose-invert-quotes); | |
| --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders); | |
| --tw-prose-captions: var(--tw-prose-invert-captions); | |
| --tw-prose-code: var(--tw-prose-invert-code); | |
| --tw-prose-pre-code: var(--tw-prose-invert-pre-code); | |
| --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg); | |
| --tw-prose-th-borders: var(--tw-prose-invert-th-borders); | |
| --tw-prose-td-borders: var(--tw-prose-invert-td-borders); | |
| } | |
| @-webkit-keyframes spin { | |
| to { | |
| -webkit-transform: rotate(1turn); | |
| transform: rotate(1turn); | |
| } | |
| } | |
| @keyframes spin { | |
| to { | |
| -webkit-transform: rotate(1turn); | |
| transform: rotate(1turn); | |
| } | |
| } | |
| body, | |
| html { | |
| height: 100%; | |
| } | |
| .dark body, | |
| .dark html { | |
| background-color: rgb(var(--surface-primary-alt)); | |
| } | |
| #__next, | |
| #root { | |
| height: 100%; | |
| } | |
| .markdown { | |
| max-width: none; | |
| } | |
| .markdown h1, | |
| .markdown h2 { | |
| font-weight: 600; | |
| } | |
| .markdown h2 { | |
| margin-bottom: 0.4rem; | |
| margin-top: 0.8rem; | |
| } | |
| .markdown h3 { | |
| font-weight: 600; | |
| } | |
| .markdown h3, | |
| .markdown h4 { | |
| margin-bottom: 0.3rem; | |
| margin-top: 0.6rem; | |
| } | |
| .markdown h4 { | |
| font-weight: 400; | |
| } | |
| .markdown h5 { | |
| font-weight: 600; | |
| } | |
| .markdown blockquote { | |
| --tw-border-opacity: 1; | |
| border-color: rgb(var(--prose-quote-bar)); | |
| border-left-width: 2px; | |
| line-height: 1rem; | |
| padding-left: 1rem; | |
| } | |
| .markdown table { | |
| --tw-border-spacing-x: 0px; | |
| --tw-border-spacing-y: 0px; | |
| border-collapse: separate; | |
| border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); | |
| width: 100%; | |
| border-color: rgb(var(--border-medium)); | |
| } | |
| .markdown th { | |
| background-color: rgb(var(--table-header-fill)); | |
| color: rgb(var(--table-header-text)); | |
| border-bottom-width: 1px; | |
| border-left-width: 1px; | |
| border-top-width: 1px; | |
| border-color: rgb(var(--border-medium)); | |
| padding: 0.25rem 0.75rem; | |
| font-weight: 600; | |
| } | |
| .markdown th:first-child { | |
| border-top-left-radius: var(--theme-control-radius, 0.75rem); | |
| } | |
| .markdown th:last-child { | |
| border-right-width: 1px; | |
| border-top-right-radius: var(--theme-control-radius, 0.75rem); | |
| } | |
| .markdown td { | |
| border-bottom-width: 1px; | |
| border-left-width: 1px; | |
| border-color: rgb(var(--border-medium)); | |
| padding: 0.25rem 0.75rem; | |
| } | |
| .markdown td:last-child { | |
| border-right-width: 1px; | |
| border-color: rgb(var(--border-medium)); | |
| } | |
| .markdown tbody tr:last-child td:first-child { | |
| border-bottom-left-radius: var(--theme-control-radius, 0.75rem); | |
| } | |
| .markdown tbody tr:last-child td:last-child { | |
| border-bottom-right-radius: var(--theme-control-radius, 0.75rem); | |
| } | |
| .markdown a { | |
| text-decoration-line: underline; | |
| text-underline-offset: 2px; | |
| } | |
| .hidden-visibility { | |
| visibility: hidden; | |
| } | |
| .toast-root { | |
| align-items: center; | |
| display: flex; | |
| flex-direction: column; | |
| height: 0; | |
| transition: all 0.24s cubic-bezier(0, 0, 0.2, 1); | |
| } | |
| .toast-root[data-state='open'] { | |
| -webkit-animation: toast-open 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.175) both; | |
| animation: toast-open 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.175) both; | |
| } | |
| .toast-root[data-state='closed'] { | |
| -webkit-animation: toast-close 0.12s cubic-bezier(0.4, 0, 1, 1) both; | |
| animation: toast-close 0.12s cubic-bezier(0.4, 0, 1, 1) both; | |
| } | |
| .toast-root .alert-root { | |
| box-shadow: | |
| 0 0 1px rgba(67, 90, 111, 0.3), | |
| 0 5px 8px -4px rgba(67, 90, 111, 0.3); | |
| flex-shrink: 0; | |
| pointer-events: all; | |
| } | |
| @-webkit-keyframes toast-open { | |
| 0% { | |
| opacity: 0; | |
| -webkit-transform: translateY(-100%); | |
| transform: translateY(-100%); | |
| } | |
| to { | |
| -webkit-transform: translateY(0); | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes toast-open { | |
| 0% { | |
| opacity: 0; | |
| -webkit-transform: translateY(-100%); | |
| transform: translateY(-100%); | |
| } | |
| to { | |
| -webkit-transform: translateY(0); | |
| transform: translateY(0); | |
| } | |
| } | |
| @-webkit-keyframes toast-close { | |
| 0% { | |
| opacity: 1; | |
| } | |
| to { | |
| opacity: 0; | |
| } | |
| } | |
| @keyframes toast-close { | |
| 0% { | |
| opacity: 1; | |
| } | |
| to { | |
| opacity: 0; | |
| } | |
| } | |
| /* Pre-response dot: enters on the streamed-text fade curve, then breathes | |
| on opacity — replaces the legacy scale throb so waiting and text arrival | |
| share one motion language. | |
| Custom CSS exception: this indicator is a `::after` pseudo-element on the | |
| `.result-thinking` hook, shown only while an ancestor carries `.submitting` | |
| and the hook itself is `:empty`. No `@librechat/client` primitive can | |
| express "render only while an ancestor is in state X and I have no | |
| children" — a component would have to own that state, which the streaming | |
| markdown path deliberately keeps in the DOM so the dot costs no React | |
| renders per token. Scoped to the one selector, colored from | |
| `--text-primary` so both themes follow, and disabled under | |
| prefers-reduced-motion. */ | |
| @keyframes lc-dot-breathe { | |
| 0%, | |
| 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.3; | |
| } | |
| } | |
| .submitting .result-thinking:empty:last-child:after { | |
| animation: | |
| lc-fade-in 250ms ease-out both, | |
| lc-dot-breathe 1.5s ease-in-out 250ms infinite; | |
| background-color: rgb(var(--text-primary)); | |
| border-radius: 50%; | |
| content: ' '; | |
| display: block; | |
| height: 0.75rem; | |
| position: absolute; | |
| top: -0.6875rem; | |
| width: 0.75rem; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .submitting .result-thinking:empty:last-child:after { | |
| animation: none; | |
| } | |
| } | |
| .shadow-stroke { | |
| position: relative; | |
| } | |
| .shadow-stroke:after { | |
| --tw-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color); | |
| border-radius: 9999px; | |
| bottom: 0; | |
| content: ''; | |
| left: 0; | |
| position: absolute; | |
| right: 0; | |
| top: 0; | |
| } | |
| .dark .shadow-stroke:after, | |
| .shadow-stroke:after { | |
| box-shadow: | |
| 0 0 transparent, | |
| 0 0 transparent, | |
| var(--tw-shadow); | |
| box-shadow: | |
| var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), | |
| var(--tw-shadow); | |
| } | |
| .dark .shadow-stroke:after { | |
| --tw-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.3); | |
| --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color); | |
| } | |
| .assistant-item { | |
| position: relative; | |
| } | |
| .assistant-item:after { | |
| --tw-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); | |
| --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color); | |
| border-radius: 9999px; | |
| bottom: 0; | |
| content: ''; | |
| left: 0; | |
| position: absolute; | |
| right: 0; | |
| top: 0; | |
| box-shadow: | |
| 0 0 transparent, | |
| 0 0 transparent, | |
| var(--tw-shadow); | |
| box-shadow: | |
| var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), | |
| var(--tw-shadow); | |
| } | |
| .dark .assistant-item:after { | |
| --tw-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); | |
| --tw-shadow-colored: inset 0 0 0 0 1px var(--tw-shadow-color); | |
| } | |
| .result-streaming > :not(ol):not(ul):not(pre):last-child:after, | |
| .result-streaming > pre:last-child code:after { | |
| display: inline-block; | |
| content: '⬤'; | |
| width: 0.75rem; | |
| height: 0.75rem; | |
| font-family: | |
| system-ui, | |
| Inter, | |
| Söhne Circle, | |
| -apple-system, | |
| Segoe UI, | |
| Roboto, | |
| Ubuntu, | |
| Cantarell, | |
| Noto Sans, | |
| sans-serif; | |
| line-height: normal; | |
| margin-left: 0.25rem; | |
| vertical-align: middle; | |
| font-size: 0.5rem; | |
| } | |
| @supports (selector(:has(*))) { | |
| .result-streaming > :is(ul, ol):last-child > li:last-child:not(:has(> :is(ul, ol, pre))):after { | |
| content: '⬤'; | |
| font-family: | |
| system-ui, | |
| Inter, | |
| Söhne Circle, | |
| -apple-system, | |
| Segoe UI, | |
| Roboto, | |
| Ubuntu, | |
| Cantarell, | |
| Noto Sans, | |
| sans-serif; | |
| line-height: normal; | |
| margin-left: 0.25rem; | |
| vertical-align: middle; | |
| font-size: 0.5rem; | |
| display: inline-block; | |
| width: 0.75rem; | |
| height: 0.75rem; | |
| } | |
| } | |
| @supports not (selector(:has(*))) { | |
| .result-streaming > ol:last-child > li:last-child:after, | |
| .result-streaming > ul:last-child > li:last-child:after { | |
| content: '⬤'; | |
| font-family: | |
| system-ui, | |
| Inter, | |
| Söhne Circle, | |
| -apple-system, | |
| Segoe UI, | |
| Roboto, | |
| Ubuntu, | |
| Cantarell, | |
| Noto Sans, | |
| sans-serif; | |
| line-height: normal; | |
| margin-left: 0.25rem; | |
| vertical-align: middle; | |
| font-size: 0.5rem; | |
| display: inline-block; | |
| width: 0.75rem; | |
| height: 0.75rem; | |
| } | |
| .result-streaming > ol:last-child > li:last-child > :is(ul, ol, pre) ~ :after, | |
| .result-streaming > ul:last-child > li:last-child > :is(ul, ol, pre) ~ :after { | |
| display: none; | |
| } | |
| .result-streaming > ol:last-child > li:last-child > pre:last-child code:after, | |
| .result-streaming > ul:last-child > li:last-child > pre:last-child code:after { | |
| display: inline-block; | |
| } | |
| } | |
| /* Remove cursors when streaming is complete */ | |
| .result-streaming:not(.submitting) :is(ul, ol) li:after { | |
| display: none ; | |
| } | |
| /* Smooth streaming: one-shot fade-in on newly streamed words. | |
| Duration must match FADE_DURATION_MS in Chat/Messages/Content/animate.tsx */ | |
| @keyframes lc-fade-in { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| [data-lc-fade] { | |
| animation: lc-fade-in 250ms ease-out both; | |
| animation-delay: var(--lc-delay, 0ms); | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| [data-lc-fade] { | |
| animation: none; | |
| } | |
| } | |
| .webkit-dark-styles, | |
| .webkit-dark-styles:focus { | |
| background-clip: content-box; | |
| -webkit-box-shadow: 0 0 0 50vh rgb(var(--field-fill, var(--surface-primary))) inset; | |
| } | |
| .dark .webkit-dark-styles, | |
| .dark .webkit-dark-styles:focus { | |
| -webkit-text-fill-color: rgb(var(--field-text, var(--text-primary))); | |
| background-clip: content-box; | |
| -webkit-box-shadow: 0 0 0 50vh rgb(var(--field-fill, var(--surface-primary))) inset; | |
| } | |
| /* Ordered Listing */ | |
| .prose :where(ol[type='A']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: upper-alpha; | |
| } | |
| .prose :where(ol[type='a']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: lower-alpha; | |
| } | |
| .prose :where(ol[type='A s']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: upper-alpha; | |
| } | |
| .prose :where(ol[type='a s']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: lower-alpha; | |
| } | |
| .prose :where(ol[type='I']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: upper-roman; | |
| } | |
| .prose :where(ol[type='i']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: lower-roman; | |
| } | |
| .prose :where(ol[type='I s']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: upper-roman; | |
| } | |
| .prose :where(ol[type='i s']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: lower-roman; | |
| } | |
| .prose :where(ol[type='1']):not(:where([class~='not-prose'] *)) { | |
| list-style-type: decimal; | |
| } | |
| .prose :where(.prose > ol > li > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 0; | |
| } | |
| .prose :where(.prose > ol > li > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 1.25em; | |
| } | |
| .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 0.75em; | |
| margin-top: 0.75em; | |
| } | |
| .prose-sm :where(.prose > ol > li > :first-child):not(:where([class~='not-prose'] *)) { | |
| margin-top: 1.1428571em; | |
| } | |
| .prose-sm :where(.prose > ol > li > :last-child):not(:where([class~='not-prose'] *)) { | |
| margin-bottom: 1.1428571em; | |
| } | |
| /* Base styles for lists */ | |
| .prose ol, | |
| .prose ul, | |
| .markdown ol, | |
| .markdown ul { | |
| list-style-position: outside; | |
| margin-top: 1em; | |
| margin-bottom: 1em; | |
| padding-left: 1em; | |
| } | |
| .prose li, | |
| .markdown li { | |
| margin-bottom: 0.5em; | |
| margin-top: 0.5em; | |
| } | |
| /* Ordered lists */ | |
| .prose ol, | |
| .markdown ol { | |
| list-style-type: decimal; | |
| } | |
| .prose ol > li, | |
| .markdown ol > li { | |
| position: relative; | |
| padding-left: 0.375em; | |
| } | |
| .prose ol > li::marker, | |
| .markdown ol > li::marker { | |
| color: var(--tw-prose-counters); | |
| font-weight: 400; | |
| } | |
| /* Nested ordered lists */ | |
| .prose ol ol, | |
| .markdown ol ol { | |
| list-style-type: lower-alpha; | |
| } | |
| .prose ol ol ol, | |
| .markdown ol ol ol { | |
| list-style-type: lower-roman; | |
| } | |
| /* Unordered lists */ | |
| .prose ul, | |
| .markdown ul { | |
| list-style-type: disc; | |
| } | |
| .prose ul > li, | |
| .markdown ul > li { | |
| padding-left: 0.375em; | |
| } | |
| .prose ul > li::marker, | |
| .markdown ul > li::marker { | |
| color: var(--tw-prose-bullets); | |
| } | |
| /* Nested unordered lists */ | |
| .prose ul ul, | |
| .markdown ul ul { | |
| list-style-type: disc; | |
| } | |
| .prose ul ul > li::marker, | |
| .markdown ul ul > li::marker { | |
| color: var(--tw-prose-bullets); | |
| font-size: 0.8em; | |
| } | |
| .prose ul ul ul, | |
| .markdown ul ul ul { | |
| list-style-type: square; | |
| } | |
| .prose ul ul ul > li::marker, | |
| .markdown ul ul ul > li::marker { | |
| color: var(--tw-prose-bullets); | |
| font-size: 0.7em; | |
| } | |
| /* Nested lists */ | |
| .prose ol ol, | |
| .prose ul ul, | |
| .prose ul ol, | |
| .prose ol ul, | |
| .markdown ol ol, | |
| .markdown ul ul, | |
| .markdown ul ol, | |
| .markdown ol ul { | |
| margin-top: 0.75em; | |
| margin-bottom: 0.75em; | |
| } | |
| .prose > ul > li > *:last-child, | |
| .prose > ol > li > *:last-child, | |
| .markdown > ul > li > *:last-child, | |
| .markdown > ol > li > *:last-child { | |
| margin-bottom: 1.25em; | |
| } | |
| /* Ensure proper marker color */ | |
| .prose li::marker, | |
| .markdown li::marker { | |
| color: currentColor; | |
| } | |
| /* Keyframes */ | |
| @keyframes rotateAdjustAndBack { | |
| 0% { | |
| transform: rotate(-33deg) scale(1); | |
| } | |
| 5% { | |
| transform: rotate(67deg) scale(1); | |
| } | |
| 6%, | |
| 20% { | |
| transform: rotate(57deg) scale(1); | |
| } | |
| 22% { | |
| transform: rotate(65deg) scale(1); | |
| } | |
| 26%, | |
| 40% { | |
| transform: rotate(-33deg) scale(1); | |
| } | |
| 42% { | |
| transform: rotate(-40deg) scale(1); | |
| } | |
| 45%, | |
| 75% { | |
| transform: rotate(30deg) scale(0.7); | |
| } | |
| 77%, | |
| 85% { | |
| transform: rotate(57deg) scale(1); | |
| } | |
| 87% { | |
| transform: rotate(65deg) scale(1); | |
| } | |
| 90%, | |
| 100% { | |
| transform: rotate(-33deg) scale(1); | |
| } | |
| } | |
| .rotate-adjust-and-back { | |
| animation: rotateAdjustAndBack 10s ease-in-out infinite; | |
| transform-origin: 50% 50%; | |
| } | |
| .message-content, | |
| .message-editor-text { | |
| font-size: var(--markdown-font-size, var(--font-size-base)); | |
| line-height: 1.6; | |
| /* `.prose` sets max-width: 65ch; fill the chat-form column instead. */ | |
| max-width: none; | |
| } | |
| .message-content pre code { | |
| font-size: calc(0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| } | |
| .message-content pre { | |
| font-size: var(--markdown-font-size, var(--font-size-base)); | |
| } | |
| .code-analyze-block pre code, | |
| .code-analyze-block .overflow-y-auto code { | |
| font-size: calc(0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| } | |
| .code-analyze-block pre, | |
| .code-analyze-block .overflow-y-auto { | |
| font-size: var(--markdown-font-size, var(--font-size-base)); | |
| } | |
| .tool-status-text { | |
| font-size: calc(0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| line-height: calc(1.25 * 0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| } | |
| .progress-text-wrapper { | |
| font-size: calc(0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| line-height: calc(1.25 * 0.9 * var(--markdown-font-size, var(--font-size-base))); | |
| } | |
| .progress-text-content { | |
| font-size: inherit; | |
| line-height: inherit; | |
| } | |
| .progress-text-wrapper button { | |
| font-size: inherit; | |
| line-height: inherit; | |
| } | |
| .tooltip { | |
| z-index: 150; | |
| cursor: pointer; | |
| border-radius: var(--theme-tooltip-radius, 0.275rem); | |
| background-color: rgb(var(--surface-tooltip, var(--surface-primary))); | |
| padding-top: var(--theme-tooltip-padding-y, 0.25rem); | |
| padding-bottom: var(--theme-tooltip-padding-y, 0.25rem); | |
| padding-left: var(--theme-tooltip-padding-x, 0.5rem); | |
| padding-right: var(--theme-tooltip-padding-x, 0.5rem); | |
| font-size: var(--theme-tooltip-text-size, 1rem); | |
| line-height: 1.5; | |
| color: rgb(var(--text-tooltip, var(--text-primary))); | |
| box-shadow: var(--theme-tooltip-shadow, 0 2px 4px 0 rgb(0 0 0 / 0.25)); | |
| } | |
| .tooltip:where(.dark, .dark *) { | |
| box-shadow: var(--theme-tooltip-shadow, 0 1px 2px 0 rgb(0 0 0 / 0.35)); | |
| } | |
| @layer base { | |
| :focus { | |
| outline: none; | |
| } | |
| } | |
| html[data-input-modality='pointer'] | |
| :where( | |
| input:not([type]), | |
| input:is( | |
| [type='text'], | |
| [type='search'], | |
| [type='email'], | |
| [type='password'], | |
| [type='url'], | |
| [type='tel'], | |
| [type='number'], | |
| [type='date'], | |
| [type='datetime-local'], | |
| [type='month'], | |
| [type='week'], | |
| [type='time'] | |
| ), | |
| textarea | |
| ):is(:focus, :focus-visible) { | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| html[data-input-modality='keyboard'] | |
| :where( | |
| input:not([type]), | |
| input:is( | |
| [type='text'], | |
| [type='search'], | |
| [type='email'], | |
| [type='password'], | |
| [type='url'], | |
| [type='tel'], | |
| [type='number'], | |
| [type='date'], | |
| [type='datetime-local'], | |
| [type='month'], | |
| [type='week'], | |
| [type='time'] | |
| ), | |
| textarea | |
| ):not(.lc-field):focus-visible { | |
| outline: var(--theme-focus-ring-width, 2px) solid rgb(var(--focus-control)) ; | |
| outline-offset: var(--theme-focus-ring-offset, 2px) ; | |
| } | |
| /* The focus outline is the theme's `focus-outline` role: black and white in the | |
| * default theme, and whatever a theme names, or its `ring-primary` when it names | |
| * only that (see `resolveTheme`). Its width and offset are the `focusRingWidth` | |
| * and `focusRingOffset` roles, 2px each by default. The contrast modes keep their | |
| * own 3px rule. */ | |
| @layer base { | |
| :focus-visible { | |
| outline: var(--theme-focus-ring-width, 2px) solid rgb(var(--focus-outline)); | |
| outline-offset: var(--theme-focus-ring-offset, 2px); | |
| } | |
| } | |
| .dark :focus-visible { | |
| outline: var(--theme-focus-ring-width, 2px) solid rgb(var(--focus-outline)); | |
| outline-offset: var(--theme-focus-ring-offset, 2px); | |
| } | |
| .popover-ui { | |
| display: flex; | |
| max-height: min(var(--popover-available-height, 1700px), 1700px); | |
| flex-direction: column; | |
| overflow: auto; | |
| overscroll-behavior: contain; | |
| border-radius: var(--theme-menu-radius, 0.7rem); | |
| border-width: 1px; | |
| border-style: solid; | |
| border-color: rgb(var(--border-menu) / var(--border-menu-alpha, var(--border-light-alpha, 1))); | |
| background-color: rgb(var(--surface-popover)); | |
| padding: 0.5rem; | |
| color: rgb(var(--text-primary)); | |
| /* The `menuShadow` role, whose light default is this literal. */ | |
| box-shadow: var( | |
| --theme-menu-shadow, | |
| 0 10px 15px -3px rgb(0 0 0 / 0.1), | |
| 0 4px 6px -4px rgb(0 0 0 / 0.1) | |
| ); | |
| transform-origin: var(--popover-transform-origin, top); | |
| opacity: 0; | |
| transition-property: opacity, scale; | |
| transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | |
| transition-duration: 150ms; | |
| scale: 0.95; | |
| margin-top: 4px; | |
| margin-right: -2px; | |
| } | |
| .popover-animate { | |
| opacity: 0; | |
| transform: scale(0.95) translateY(-0.5rem); | |
| transition: | |
| opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), | |
| transform 150ms cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .popover-animate[data-enter] { | |
| opacity: 1; | |
| transform: scale(1) translateY(0); | |
| } | |
| .popover-ui:focus-visible, | |
| .popover-ui[data-focus-visible] { | |
| outline: 2px solid rgb(var(--focus-control)); | |
| outline-offset: -1px; | |
| } | |
| .popover-ui:where(.dark, .dark *) { | |
| background-color: rgb(var(--surface-popover)); | |
| color: rgb(var(--text-secondary)); | |
| box-shadow: var( | |
| --theme-menu-shadow, | |
| 0 10px 15px -3px rgb(0 0 0 / 0.25), | |
| 0 4px 6px -4px rgb(0 0 0 / 0.1) | |
| ); | |
| } | |
| .select-item { | |
| display: flex; | |
| cursor: pointer; | |
| scroll-margin: 0.5rem; | |
| align-items: center; | |
| gap: 0.5rem; | |
| border-radius: var(--theme-radius-lg, 0.5rem); | |
| padding: 0.5rem; | |
| outline: none ; | |
| } | |
| .select-item[aria-disabled='true'] { | |
| opacity: 0.5; | |
| } | |
| .select-item[data-active-item] { | |
| background-color: rgb(var(--surface-hover)); | |
| color: rgb(var(--text-primary)); | |
| } | |
| .popover-ui[data-enter] { | |
| opacity: 1; | |
| scale: 1; | |
| } | |
| .popover-ui.popover-from-left { | |
| transform-origin: left; | |
| translate: -0.5rem 0; | |
| margin-top: 0; | |
| } | |
| .popover-ui.popover-from-left[data-enter] { | |
| translate: 0 0; | |
| } | |
| .animate-popover-top, | |
| .animate-popover { | |
| transform-origin: top; | |
| opacity: 0; | |
| transition: | |
| opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), | |
| transform 150ms cubic-bezier(0.4, 0, 0.2, 1); | |
| transform: scale(0.95) translateY(-0.5rem); | |
| } | |
| .animate-popover-top[data-enter], | |
| .animate-popover[data-enter] { | |
| opacity: 1; | |
| transform: scale(1) translateY(0); | |
| } | |
| /* Left (existing) */ | |
| .animate-popover-left { | |
| transform-origin: left; | |
| opacity: 0; | |
| transition: | |
| opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), | |
| transform 150ms cubic-bezier(0.4, 0, 0.2, 1); | |
| transform: scale(0.95) translateX(-0.5rem); | |
| } | |
| .animate-popover-left[data-enter] { | |
| opacity: 1; | |
| transform: scale(1) translateX(0); | |
| } | |
| /* Corners */ | |
| .animate-popover-top-left { | |
| transform-origin: top left; | |
| opacity: 0; | |
| transition: | |
| opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), | |
| transform 150ms cubic-bezier(0.4, 0, 0.2, 1); | |
| transform: scale(0.95) translate(-0.5rem, -0.5rem); | |
| } | |
| .animate-popover-top-left[data-enter] { | |
| opacity: 1; | |
| transform: scale(1) translate(0, 0); | |
| } | |
| /** | |
| * Composer popovers. Its own curve rather than `animate-popover`'s: these are | |
| * large surfaces, and the shared 150ms ease-in-out reads as a snap at that size. | |
| * Decelerating hard from the first frame and then settling is what makes a panel | |
| * feel placed rather than switched on. Leaving is quicker than entering, so | |
| * dismissing never feels like waiting. | |
| */ | |
| .animate-composer-popover { | |
| /* Ariakit resolves this to the edge nearest the trigger, so the panel grows | |
| out of the button whether it opens below or flips above. `animate-popover` | |
| pins the origin to the top and translates down, which is right one way | |
| round and backwards the other. */ | |
| transform-origin: var(--popover-transform-origin, top center); | |
| opacity: 0; | |
| transform: scale(0.94); | |
| transition: | |
| opacity 190ms cubic-bezier(0.32, 0.72, 0, 1), | |
| transform 260ms cubic-bezier(0.32, 0.72, 0, 1); | |
| will-change: transform, opacity; | |
| } | |
| .animate-composer-popover[data-enter] { | |
| opacity: 1; | |
| transform: scale(1); | |
| } | |
| .animate-composer-popover[data-leave] { | |
| transition-duration: 120ms, 140ms; | |
| } | |
| /* The Thinking pill's label slot resizes with the popover it opens: same | |
| duration and curve as the opacity leg above. */ | |
| .composer-slot-resize { | |
| transition: width 190ms cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| /** | |
| * Palette list. `.scrollbar-hover` fades its thumb in on pointer-over, so on a | |
| * list this dense the scrollbar reads as appearing out of nowhere, and where | |
| * the platform draws classic rather than overlay scrollbars, a gutter that only | |
| * exists while the thumb does shifts every row sideways under the cursor. The | |
| * thumb stays drawn and the gutter stays reserved; the class is only applied | |
| * when the list actually overflows, so a short list keeps its full width. | |
| * | |
| * Standard properties only, deliberately: styling `::-webkit-scrollbar` opts an | |
| * element out of overlay scrollbars altogether, which would spend 8px of gutter | |
| * on the platforms that never had the problem. | |
| */ | |
| .composer-palette-scroll { | |
| scrollbar-width: thin; | |
| scrollbar-color: rgb(var(--border-medium) / var(--border-medium-alpha, 1)) transparent; | |
| scrollbar-gutter: stable; | |
| } | |
| /** | |
| * The thinking-level slider's stops. Position and size glide on a spring with a | |
| * slight overshoot, so the thumb and the fill settle onto a stop rather than | |
| * stopping dead; both share the curve, so the fill's end stays under the thumb | |
| * throughout. Custom CSS because the overshoot curve has no theme token. | |
| */ | |
| .composer-effort-glide { | |
| transition-property: left, width, height; | |
| transition-duration: 280ms; | |
| transition-timing-function: cubic-bezier(0.34, 1.36, 0.64, 1); | |
| } | |
| /** | |
| * The held thumb leaning toward the pointer (set on the track as | |
| * `--effort-lean`, stretched along the pull and squashed across it). It tracks | |
| * the pointer directly while held and springs back on release. | |
| */ | |
| .composer-effort-thumb { | |
| transform: translateX(var(--effort-lean, 0px)) | |
| scale(var(--effort-stretch, 1), var(--effort-squash, 1)); | |
| transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1); | |
| } | |
| .composer-effort-thumb[data-dragging] { | |
| transition-duration: 60ms; | |
| transition-timing-function: linear; | |
| } | |
| /** | |
| * The fill follows the thumb's lean, so pulling toward a higher level stretches | |
| * the fill along with the thumb instead of leaving its end behind, uncovered, | |
| * as the thumb leans away. Same clocks as the thumb. | |
| */ | |
| .composer-effort-fill { | |
| width: calc(100% + var(--effort-lean, 0px)); | |
| transition: | |
| width 320ms cubic-bezier(0.34, 1.56, 0.64, 1), | |
| opacity 100ms ease-out; | |
| } | |
| .composer-effort-fill[data-dragging] { | |
| transition: | |
| width 60ms linear, | |
| opacity 100ms ease-out; | |
| } | |
| /** | |
| * The thinking button's label changing level: the old word blurs out in the | |
| * direction of the change while the new one arrives from the other side, | |
| * overlapping it briefly, like an odometer. `-up` for a higher level. | |
| */ | |
| @keyframes composer-label-out-up { | |
| to { | |
| transform: translateY(-70%); | |
| opacity: 0; | |
| filter: blur(3px); | |
| } | |
| } | |
| @keyframes composer-label-out-down { | |
| to { | |
| transform: translateY(70%); | |
| opacity: 0; | |
| filter: blur(3px); | |
| } | |
| } | |
| @keyframes composer-label-in-up { | |
| from { | |
| transform: translateY(70%); | |
| opacity: 0; | |
| filter: blur(3px); | |
| } | |
| } | |
| @keyframes composer-label-in-down { | |
| from { | |
| transform: translateY(-70%); | |
| opacity: 0; | |
| filter: blur(3px); | |
| } | |
| } | |
| .composer-label-out-up { | |
| animation: composer-label-out-up 220ms cubic-bezier(0.32, 0.72, 0, 1) forwards; | |
| } | |
| .composer-label-out-down { | |
| animation: composer-label-out-down 220ms cubic-bezier(0.32, 0.72, 0, 1) forwards; | |
| } | |
| .composer-label-in-up { | |
| animation: composer-label-in-up 280ms cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| .composer-label-in-down { | |
| animation: composer-label-in-down 280ms cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| /** Trigger glyphs that turn as their popover opens, on the same curve. */ | |
| .animate-composer-icon { | |
| /* Tailwind v4's rotate-* utilities set `rotate`, not `transform`. */ | |
| transition-property: transform, rotate; | |
| transition-duration: 260ms; | |
| transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| /** | |
| * The palette growing or shrinking as its list rearranges. The rows themselves | |
| * are moved from `Palette.tsx`, which plays each one back to where it was after | |
| * the list has been redrawn; a re-inserted node drops any transition it was | |
| * about to run, and starring an entry re-inserts every row it passed. The | |
| * panel's own height has no such problem: the list box is never re-inserted. | |
| */ | |
| .composer-palette-rows .ReactVirtualized__Grid { | |
| transition: height 260ms cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| /* Held for the frame a search redraws in: the list is being replaced rather | |
| than rearranged there, and growing into its new size reads as the panel | |
| lagging behind the typing. */ | |
| .composer-palette-instant .ReactVirtualized__Grid { | |
| transition-duration: 0s; | |
| } | |
| @keyframes composer-palette-row { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| .animate-composer-palette-row { | |
| animation: composer-palette-row 200ms cubic-bezier(0.32, 0.72, 0, 1) both; | |
| } | |
| @keyframes composer-palette-row-out { | |
| from { | |
| opacity: 1; | |
| } | |
| to { | |
| opacity: 0; | |
| } | |
| } | |
| /* Accelerating away, unlike everything else here: the shared decelerating curve | |
| spends this beat almost entirely at zero, leaving the rows gone well before | |
| the list starts closing over them. */ | |
| .animate-composer-palette-row-out { | |
| animation: composer-palette-row-out 110ms cubic-bezier(0.4, 0, 1, 1) both; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .animate-composer-popover, | |
| .animate-composer-popover[data-enter], | |
| .animate-composer-popover[data-leave], | |
| .animate-composer-icon, | |
| .composer-slot-resize, | |
| .composer-effort-glide, | |
| .composer-effort-thumb, | |
| .composer-effort-fill, | |
| .composer-palette-rows .ReactVirtualized__Grid { | |
| transition-duration: 1ms; | |
| } | |
| .animate-composer-palette-row, | |
| .animate-composer-palette-row-out, | |
| .composer-label-out-up, | |
| .composer-label-out-down, | |
| .composer-label-in-up, | |
| .composer-label-in-down { | |
| animation-duration: 1ms; | |
| } | |
| .animate-composer-popover, | |
| .animate-composer-popover[data-enter], | |
| .animate-composer-popover[data-leave] { | |
| transform: none; | |
| } | |
| } | |
| /** Note: ensure KaTeX can spread across visible space */ | |
| .message-content pre:has(> span.katex) { | |
| overflow: visible ; | |
| height: auto ; | |
| max-height: none ; | |
| } | |
| /** AnimatedSearchInput style */ | |
| @keyframes gradient-x { | |
| 0% { | |
| background-position: 0% 50%; | |
| } | |
| 50% { | |
| background-position: 100% 50%; | |
| } | |
| 100% { | |
| background-position: 0% 50%; | |
| } | |
| } | |
| .animate-gradient-x { | |
| background-size: 200% 200%; | |
| animation: gradient-x 15s ease infinite; | |
| } | |
| .animate-pulse-slow { | |
| animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(8px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .animate-fadeIn { | |
| animation: fadeIn 0.5s ease-out forwards; | |
| } | |
| /* Chat Badges Animation */ | |
| @keyframes ios-wiggle { | |
| 0% { | |
| transform: rotate(-1deg); | |
| } | |
| 50% { | |
| transform: rotate(1deg); | |
| } | |
| 100% { | |
| transform: rotate(-1deg); | |
| } | |
| } | |
| .ios-wiggle { | |
| animation: ios-wiggle 0.2s ease-in-out infinite; | |
| } | |
| .ghost-badge { | |
| transition: | |
| left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), | |
| top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| } | |
| .badge-icon { | |
| transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| } | |
| @keyframes shimmer { | |
| 0% { | |
| background-position: 200% 0; | |
| } | |
| 100% { | |
| background-position: -200% 0; | |
| } | |
| } | |
| /* The sweep every in-flight label shares: a running tool call, streaming | |
| reasoning, the elapsed timer. Painted from theme roles rather than fixed | |
| black/white keyed off `.dark`, so a stored or custom theme restates it the | |
| way it restates any other color. Unset, the base falls back to whatever | |
| `--text-primary` is in scope AT THE LABEL — resolving it in a `:root` | |
| declaration instead would freeze the default and ignore theme scopes applied | |
| further down. Dark declares a base outright: its established value is dimmer | |
| than that theme's text color rather than equal to it. */ | |
| .shimmer { | |
| display: inline-block; | |
| position: relative; | |
| background: linear-gradient( | |
| 90deg, | |
| rgb(var(--shimmer-base, var(--text-primary)) / var(--shimmer-base-alpha, 1)) 25%, | |
| rgb(var(--shimmer-dip) / var(--shimmer-dip-alpha, 1)) 50%, | |
| rgb(var(--shimmer-base, var(--text-primary)) / var(--shimmer-base-alpha, 1)) 75% | |
| ); | |
| background-size: 200% 100%; | |
| background-clip: text; | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| animation: shimmer 4s linear infinite; | |
| } | |
| /* Halting the animation alone is not a fallback: the background would settle | |
| at position 0 and show only half the sweep, stranding the tail of the label | |
| in the near-invisible dip. Drop the gradient and hand the glyphs back to the | |
| color they would have had. */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .shimmer { | |
| background: none; | |
| animation: none; | |
| -webkit-text-fill-color: currentcolor; | |
| } | |
| } | |
| .sharepoint-picker-bg { | |
| background-color: rgb(var(--surface-dialog)); | |
| } | |
| /* ask_user_question popover <-> chat-card morph (view transition) */ | |
| ::view-transition-group(ask-question), | |
| ::view-transition-old(ask-question), | |
| ::view-transition-new(ask-question), | |
| ::view-transition-group(ask-question-chevron), | |
| ::view-transition-old(ask-question-chevron), | |
| ::view-transition-new(ask-question-chevron) { | |
| animation-duration: 280ms; | |
| animation-timing-function: cubic-bezier(0.32, 0.72, 0.22, 1); | |
| } | |
| /* The move control's chevron is its own group, so the morph also turns it | |
| (down in the composer, up in the chat): the group interpolates the icon's | |
| rotate-180. Above its card, below the composer like the card itself. */ | |
| ::view-transition-group(ask-question-chevron) { | |
| z-index: 1; | |
| } | |
| /* The composer keeps its own snapshot group stacked above the morphing | |
| question card, so the card travels behind the ChatForm, not over it. */ | |
| ::view-transition-group(chat-form) { | |
| z-index: 2; | |
| } | |