Download assets/custom.css from cyberandy/wl-chat: direct link, hf CLI and curl.
- Browser
- Download file 2.71 kB
-
https://huggingface.co/spaces/cyberandy/wl-chat/resolve/main/assets/custom.css
- Command line
-
hf download hf://spaces/cyberandy/wl-chat/assets/custom.css
-
curl -L -o custom.css https://huggingface.co/spaces/cyberandy/wl-chat/resolve/main/assets/custom.css
2.71 kB
| :root { | |
| --chatbot-color-light: #F3F3F3; | |
| --chatbot-color-dark: #121111; | |
| } | |
| /* status_display */ | |
| #status_display { | |
| display: flex; | |
| min-height: 2.5em; | |
| align-items: flex-end; | |
| justify-content: flex-end; | |
| } | |
| #status_display p { | |
| font-size: .85em; | |
| font-family: monospace; | |
| color: var(--body-text-color-subdued); | |
| } | |
| /* usage_display */ | |
| #usage_display { | |
| height: 1em; | |
| } | |
| #usage_display p { | |
| padding: 0 1em; | |
| font-size: .85em; | |
| font-family: monospace; | |
| color: var(--body-text-color-subdued); | |
| } | |
| /* list */ | |
| ol:not(.options), | |
| ul:not(.options) { | |
| padding-inline-start: 2em ; | |
| } | |
| /* Thank @Keldos-Li for fixing it */ | |
| /* Light mode (default) */ | |
| #chuanhu_chatbot { | |
| background-color: var(--chatbot-color-light) ; | |
| color: #000000 ; | |
| } | |
| [data-testid="bot"] { | |
| background-color: #FFFFFF ; | |
| } | |
| [data-testid="user"] { | |
| background-color: #a3d6ff ; | |
| } | |
| /* Dark mode */ | |
| .dark #chuanhu_chatbot { | |
| background-color: var(--chatbot-color-dark) ; | |
| color: #FFFFFF ; | |
| } | |
| .dark [data-testid="bot"] { | |
| background-color: #2C2C2C ; | |
| } | |
| .dark [data-testid="user"] { | |
| background-color: #a3d6ff ; | |
| } | |
| #chuanhu_chatbot { | |
| height: 100%; | |
| min-height: 400px; | |
| } | |
| [class *="message"] { | |
| border-radius: var(--radius-xl) ; | |
| border: none; | |
| padding: var(--spacing-xl) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--line-md) ; | |
| min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); | |
| min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); | |
| } | |
| [data-testid="bot"] { | |
| max-width: 85%; | |
| border-bottom-left-radius: 0 ; | |
| } | |
| [data-testid="user"] { | |
| max-width: 85%; | |
| width: auto ; | |
| border-bottom-right-radius: 0 ; | |
| } | |
| /* Table */ | |
| table { | |
| margin: 1em 0; | |
| border-collapse: collapse; | |
| empty-cells: show; | |
| } | |
| td, | |
| th { | |
| border: 1.2px solid var(--border-color-primary) ; | |
| padding: 0.2em; | |
| } | |
| thead { | |
| background-color: rgba(175, 184, 193, 0.2); | |
| } | |
| thead th { | |
| padding: .5em .2em; | |
| } | |
| /* Inline code */ | |
| #chuanhu_chatbot code { | |
| display: inline; | |
| white-space: break-spaces; | |
| border-radius: 6px; | |
| margin: 0 2px 0 2px; | |
| padding: .2em .4em .1em .4em; | |
| background-color: rgba(175, 184, 193, 0.2); | |
| } | |
| /* Code block */ | |
| #chuanhu_chatbot pre code { | |
| display: block; | |
| overflow: auto; | |
| white-space: pre; | |
| background-color: hsla(0, 0%, 0%, 80%) ; | |
| border-radius: 10px; | |
| padding: 1.4em 1.2em 0em 1.4em; | |
| margin: 1.2em 2em 1.2em 0.5em; | |
| color: #FFF; | |
| box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2); | |
| } |