mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix help-text display style
This commit is contained in:
1 parent
d67b7f4f74
commit
f2ec6997af
2 files changed
+21
-8
No files matched your search
@@ -2,23 +2,36 @@
|
|||||||
display: none !important
|
display: none !important
|
||||||
|
|
||||||
.autocomplete-wrapper
|
.autocomplete-wrapper
|
||||||
width: 300px
|
|
||||||
border: 1px solid #d9d9d9
|
border: 1px solid #d9d9d9
|
||||||
background-color: #fff
|
|
||||||
padding: 1px
|
padding: 1px
|
||||||
display: flex
|
display: flex
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
overflow-y: auto
|
overflow-y: auto
|
||||||
|
|
||||||
|
form-styles()
|
||||||
|
background-color: $input-background-color
|
||||||
|
outline: $input-outline
|
||||||
|
transition: outline-color .2s, border-color .2s
|
||||||
|
transition-timing-function: ease-out-cubic
|
||||||
|
|
||||||
|
&:focus, &.focused
|
||||||
|
border-color: $input-focus-border-color
|
||||||
|
outline: $input-focus-outline
|
||||||
|
outline-offset: 0
|
||||||
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2)
|
||||||
|
|
||||||
|
// Overwrite, for IE compatibility
|
||||||
|
&:read-only
|
||||||
|
outline: 0
|
||||||
|
|
||||||
|
&:disabled
|
||||||
|
opacity: 0.5
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
border-color: #40a9ff
|
border-color: #40a9ff
|
||||||
|
|
||||||
&.focused
|
|
||||||
border-color: #40a9ff
|
|
||||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2)
|
|
||||||
|
|
||||||
input
|
input
|
||||||
background-color: #fff
|
background-color: $input-background-color
|
||||||
color: rgba(0,0,0,.85)
|
color: rgba(0,0,0,.85)
|
||||||
height: 30px
|
height: 30px
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ const AutoComplete = forwardRef(function Impl<T>(props: AutoCompleteProps<T>, re
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ display: 'inline-block', width: '100%' }}>
|
<div style={{ display: 'inline-block', width: '100%', marginBottom: '1rem' }}>
|
||||||
<div
|
<div
|
||||||
className={focused ? 'autocomplete-wrapper focused' : 'autocomplete-wrapper'}
|
className={focused ? 'autocomplete-wrapper focused' : 'autocomplete-wrapper'}
|
||||||
style={{ width, height }}
|
style={{ width, height }}
|
||||||
|
|||||||
Reference in new issue
Block a user