chore: update style

This commit is contained in:
zerosoul
2022-05-20 11:30:28 +08:00
parent b056cd56c5
commit 17ef9a31b1
5 changed files with 22 additions and 10 deletions
+10 -2
View File
@@ -80,7 +80,11 @@ export default function Input({
};
return type == "password" ? (
<StyledWrapper className={className}>
<StyledInput type={inputType} className="inner" {...rest} />
<StyledInput
type={inputType}
className={`inner ${className}`}
{...rest}
/>
<div className="view" onClick={togglePasswordVisible}>
{inputType == "password" ? (
<HiEyeOff color="#78787c" />
@@ -92,7 +96,11 @@ export default function Input({
) : prefix ? (
<StyledWrapper className={className}>
<span className="prefix">{prefix}</span>
<StyledInput className="inner" type={inputType} {...rest} />
<StyledInput
className={`inner ${className}`}
type={inputType}
{...rest}
/>
</StyledWrapper>
) : (
<StyledInput type={inputType} className={className} {...rest} />
+7 -3
View File
@@ -12,7 +12,7 @@ const StyledMenu = styled.ul`
.item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
white-space: nowrap;
cursor: pointer;
@@ -23,13 +23,17 @@ const StyledMenu = styled.ul`
font-size: 14px;
line-height: 20px;
color: #616161;
.icon {
width: 12px;
height: 12px;
width: 20px;
height: 20px;
path {
fill: #475467;
}
}
&.sb {
justify-content: space-between;
}
&:hover {
background-color: #22ccee;
color: #fff;