Download sd-webui-lobe-theme/src/styles/components/input.ts from imspidey/ThemeSD: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/imspidey/ThemeSD/resolve/main/sd-webui-lobe-theme/src/styles/components/input.ts
- Command line
-
hf download hf://imspidey/ThemeSD/sd-webui-lobe-theme/src/styles/components/input.ts
-
curl -L -o input.ts https://huggingface.co/imspidey/ThemeSD/resolve/main/sd-webui-lobe-theme/src/styles/components/input.ts
1.54 kB
| import { Theme, css } from 'antd-style'; | |
| export default (token: Theme) => { | |
| return css` | |
| .block.gradio-checkbox { | |
| margin: 0 ; | |
| } | |
| input { | |
| &:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) { | |
| resize: none; | |
| overflow: hidden; | |
| width: 100%; | |
| height: 36px ; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| border-radius: ${token.borderRadius}px; | |
| } | |
| &[type='checkbox'], | |
| &[type='radio'] { | |
| cursor: pointer; | |
| flex: 0; | |
| width: ${token.fontSize}px; | |
| min-width: ${token.fontSize}px; | |
| max-width: ${token.fontSize}px; | |
| height: ${token.fontSize}px; | |
| min-height: ${token.fontSize}px; | |
| max-height: ${token.fontSize}px; | |
| appearance: none ; | |
| } | |
| &[type='checkbox'] { | |
| --ring-color: transparent; | |
| position: relative; | |
| line-height: var(--line-sm); | |
| background-color: ${token.colorFillTertiary} ; | |
| border: 1px solid ${token.colorBorder} ; | |
| border-radius: ${token.borderRadiusSM}px ; | |
| &:checked { | |
| background-color: ${token.colorPrimary} ; | |
| background-image: var(--checkbox-check) ; | |
| border-color: ${token.colorPrimaryBorder} ; | |
| } | |
| } | |
| &[type='number'] { | |
| height: 28px ; | |
| border-radius: ${token.borderRadius}px; | |
| } | |
| } | |
| `; | |
| }; | |