Download sd-webui-lobe-theme/src/modules/PromptHighlight/style.ts from imspidey/ThemeSD: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/imspidey/ThemeSD/resolve/main/sd-webui-lobe-theme/src/modules/PromptHighlight/style.ts
- Command line
-
hf download hf://imspidey/ThemeSD/sd-webui-lobe-theme/src/modules/PromptHighlight/style.ts
-
curl -L -o style.ts https://huggingface.co/imspidey/ThemeSD/resolve/main/sd-webui-lobe-theme/src/modules/PromptHighlight/style.ts
1.35 kB
| import { createStyles } from 'antd-style'; | |
| export const useStyles = createStyles(({ css, token, cx, stylish, prefixCls }) => { | |
| const prefix = `${prefixCls}-highlighter`; | |
| return { | |
| container: css` | |
| pointer-events: none; | |
| position: absolute; | |
| overflow-x: hidden; | |
| overflow-y: auto; | |
| padding: 8px; | |
| pre { | |
| font-family: ${token.fontFamilyCode} ; | |
| font-size: 13px ; | |
| line-height: 1.5 ; | |
| color: ${token.colorSuccess}; | |
| text-overflow: ellipsis ; | |
| word-wrap: break-word; | |
| white-space: pre-wrap; | |
| vertical-align: bottom ; | |
| } | |
| `, | |
| loading: cx( | |
| stylish.blur, | |
| css` | |
| position: absolute; | |
| z-index: 10; | |
| top: 0; | |
| right: 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| height: 34px; | |
| padding: 0 8px; | |
| font-family: ${token.fontFamilyCode}; | |
| color: ${token.colorTextTertiary}; | |
| border-radius: ${token.borderRadius}; | |
| `, | |
| ), | |
| shiki: cx( | |
| `${prefix}-shiki`, | |
| css` | |
| margin: 0; | |
| padding: 0; | |
| .shiki { | |
| overflow-x: auto; | |
| margin: 0; | |
| padding: 0; | |
| background: none ; | |
| } | |
| `, | |
| ), | |
| }; | |
| }); | |