yungpunks
/
stable-diffusion-webui
/extensions
/sd-webui-lobe-theme
/src
/styles
/components
/input.ts
| 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; | |
| } | |
| } | |
| `; | |
| }; | |