Spaces:
Running
Running
Download apps/chat/src/styles.css from leventkoldas/botpsy-0.8b-web: direct link, hf CLI and curl.
- Browser
- Download file 8.11 kB
-
https://huggingface.co/spaces/leventkoldas/botpsy-0.8b-web/resolve/main/apps/chat/src/styles.css
- Command line
-
hf download hf://spaces/leventkoldas/botpsy-0.8b-web/apps/chat/src/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/leventkoldas/botpsy-0.8b-web/resolve/main/apps/chat/src/styles.css
8.11 kB
| :root { | |
| color-scheme: light dark; | |
| --bg: #f5f6f2; | |
| --surface: #fff; | |
| --wash: #e9f1e8; | |
| --border: #bac8bf; | |
| --fg: #172720; | |
| --muted: #4d6256; | |
| --accent: #185c40; | |
| --on-accent: white; | |
| --error: #982e21; | |
| --code: #eef0ec; | |
| --shadow: 0 12px 36px #18352516; | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --bg: #101713; | |
| --surface: #18231d; | |
| --wash: #233a2d; | |
| --border: #4e6658; | |
| --fg: #eaf4eb; | |
| --muted: #adbeaf; | |
| --accent: #9ce0b6; | |
| --on-accent: #122619; | |
| --error: #ffb5a7; | |
| --code: #111914; | |
| --shadow: 0 12px 36px #0005; | |
| } | |
| } | |
| * { box-sizing: border-box; } | |
| [hidden] { display: none ; } | |
| body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.55 system-ui, sans-serif; } | |
| button, select, input, textarea { font: inherit; } | |
| :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; } | |
| a { color: var(--accent); } | |
| .app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(100%, 68rem); margin-inline: auto; padding-inline: clamp(.75rem, 3vw, 2rem); } | |
| .skip-link { position: fixed; z-index: 4; inset: .5rem auto auto .5rem; background: var(--surface); padding: .75rem; } | |
| .skip-link:not(:focus) { transform: translateY(-200%); } | |
| .topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .75rem; border-bottom: 1px solid var(--border); } | |
| .brand, .topbar-actions, .activity, .composer-actions, .row, .attachment-preview { display: flex; align-items: center; gap: .5rem; } | |
| .brand { gap: .75rem; } | |
| .brand-mark { display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border-radius: .85rem; color: var(--on-accent); background: var(--accent); font-weight: 750; } | |
| h1, h2, p { margin: 0; } | |
| h1 { font-size: 1.1rem; letter-spacing: -.025em; } | |
| .subtitle, .detail, .status, .activity { font-size: .85rem; color: var(--muted); } | |
| .topbar-actions { min-width: 0; flex-wrap: wrap; } | |
| #session-select { min-width: 0; width: clamp(6rem, 21vw, 14rem); } | |
| .conversation-menu { position: relative; } | |
| .conversation-menu summary { list-style: none; } | |
| .menu-panel { position: absolute; right: 0; z-index: 2; width: max-content; max-width: 85vw; padding: .45rem; display: grid; gap: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: .8rem; box-shadow: var(--shadow); } | |
| .button, .answer-copy, .code-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; text-align: center; } | |
| .button:not(:disabled):hover, .answer-copy:hover, .code-copy:hover { background: var(--wash); } | |
| .button.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 650; } | |
| .button.primary:not(:disabled):hover { background: var(--accent); box-shadow: inset 0 0 0 2px var(--on-accent); } | |
| .button:disabled { opacity: .58; cursor: not-allowed; } | |
| .transcript { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: .4rem .35rem 1.25rem; } | |
| .transcript:focus-visible { outline-offset: -3px; } | |
| .welcome, .starter { max-width: 43rem; margin: clamp(1rem, 6vh, 4rem) auto 1.5rem; padding: clamp(1rem, 4vw, 2.4rem); background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: var(--shadow); } | |
| .eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .11em; color: var(--accent); } | |
| .welcome h2, .starter h2 { margin-block: .25rem .65rem; line-height: 1.15; letter-spacing: -.045em; font-size: clamp(1.65rem, 5vw, 2.75rem); } | |
| .welcome > p:not(.eyebrow), .notice { color: var(--muted); } | |
| .setup-controls { display: grid; gap: .5rem; margin-top: 1.15rem; max-width: 27rem; } | |
| .setup-controls label { font-weight: 650; } | |
| progress { width: 100%; accent-color: var(--accent); } | |
| .suggestions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; } | |
| #messages { width: min(100%, 48rem); margin-inline: auto; } | |
| .message { margin-block: 1rem; overflow-wrap: anywhere; } | |
| .message.user { margin-inline-start: clamp(.8rem, 12%, 6rem); } | |
| .message.user .bubble { background: var(--wash); white-space: pre-wrap; } | |
| .bubble, .tool-card, .tool-result { border: 1px solid var(--border); background: var(--surface); padding: .8rem 1rem; border-radius: .85rem; min-width: 0; } | |
| .role { color: var(--muted); font-size: .82rem; font-weight: 700; margin-bottom: .25rem; } | |
| .reasoning { color: var(--muted); white-space: pre-wrap; margin-bottom: .55rem; } | |
| .reasoning summary { cursor: pointer; width: fit-content; min-height: 44px; line-height: 44px; } | |
| .reasoning > div { border-inline-start: 2px solid var(--border); padding-inline-start: .65rem; } | |
| .tool-card, .tool-result { margin-top: .5rem; } | |
| .tool-card pre, .approval pre { white-space: pre-wrap; overflow-wrap: anywhere; } | |
| .answer-content { white-space: pre-wrap; } | |
| .answer-content.rendered { white-space: normal; } | |
| .rendered :where(p, ul, ol, pre, blockquote, table) { margin: .65rem 0; } | |
| .rendered > :first-child { margin-top: 0; } | |
| .rendered pre { background: var(--code); padding: .75rem; border-radius: .65rem; overflow: auto; } | |
| .rendered code { font-family: ui-monospace, monospace; } | |
| .rendered table { display: block; overflow-x: auto; border-collapse: collapse; } | |
| .rendered :where(th, td) { border: 1px solid var(--border); padding: .35rem .55rem; } | |
| .answer-copy, .code-copy { font-size: .85rem; } | |
| .jump-latest { justify-self: center; margin-block: .3rem; } | |
| .chat-footer { width: min(100%, 48rem); margin-inline: auto; padding-block: .4rem max(.6rem, env(safe-area-inset-bottom)); } | |
| .activity { justify-content: space-between; flex-wrap: wrap; margin-bottom: .35rem; } | |
| .status { color: var(--fg); font-weight: 650; } | |
| .notice { border: 1px solid var(--error); border-radius: .65rem; color: var(--error); background: var(--surface); padding: .5rem .75rem; margin-bottom: .45rem; max-height: 20dvh; overflow: auto; overflow-wrap: anywhere; } | |
| .composer { display: grid; gap: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: .5rem; box-shadow: var(--shadow); } | |
| .composer textarea { width: 100%; min-height: 2.8rem; max-height: 24dvh; resize: vertical; padding: .45rem; border: 0; border-radius: .45rem; color: var(--fg); background: transparent; } | |
| .composer-actions { justify-content: flex-end; flex-wrap: wrap; } | |
| #attach { margin-inline-end: auto; } | |
| .composer-hint { margin-top: .35rem; } | |
| .attachment-preview { min-width: 0; padding: .3rem; gap: .65rem; } | |
| .attachment-preview span { min-width: 0; flex: 1; overflow-wrap: anywhere; } | |
| .copy-feedback { margin-inline-start: .55rem; font-size: .85rem; color: var(--muted); } | |
| .attachment-preview img, .attachment-preview video { width: 3rem; height: 3rem; object-fit: cover; border-radius: .5rem; } | |
| .bubble .attachment { display: block; max-width: min(100%, 24rem); max-height: 16rem; border-radius: .6rem; margin-bottom: .4rem; } | |
| .row { justify-content: flex-end; flex-wrap: wrap; margin-top: .6rem; } | |
| .approval { width: min(92vw, 32rem); max-height: 85dvh; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; color: var(--fg); background: var(--surface); } | |
| .approval::backdrop { background: #0008; } | |
| .approval label { display: grid; gap: .4rem; } | |
| .approval input { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: .6rem; padding: .4rem; color: var(--fg); background: var(--bg); } | |
| .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } | |
| @media (max-width: 36rem) { | |
| .topbar-actions { width: 100%; } | |
| #session-select { flex: 1 1 5.5rem; } | |
| .app:has(.welcome:not([hidden])) { height: auto; min-height: 100dvh; } | |
| .app:has(.welcome:not([hidden])) .transcript { overflow: visible; } | |
| .welcome { margin-top: 1rem; } | |
| } | |
| @media (max-height: 34rem) { .composer-hint { display: none; } .composer textarea { height: 2.8rem; } } | |