Skip to content

Commit efe8b43

Browse files
committed
create styling for number input
1 parent e3c8872 commit efe8b43

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

src/components/settings/Settings.styles.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import styled from 'styled-components';
2-
import { Input } from 'antd';
2+
import { Input, InputNumber } from 'antd';
33

44
export const InputField = styled(Input)`
55
border-radius: 7px !important;
66
padding: 0.7rem !important;
7-
&:focus{
8-
border-color: var(--ant-primary-5) !important;
9-
box-shadow: 0 0 0 2px var(--ant-primary-color-outline) !important;
7+
&:focus {
8+
border-color: var(--ant-primary-5) !important;
9+
box-shadow: 0 0 0 2px var(--ant-primary-color-outline) !important;
1010
}
1111
`;
1212

@@ -22,7 +22,6 @@ export const InputFieldWithPrefix = styled(Input)`
2222
background-color: transparent !important;
2323
}
2424
.ant-input-prefix {
25-
2625
padding: 0.7rem 0rem 0.7rem 0.7rem !important;
2726
}
2827
}
@@ -42,9 +41,22 @@ export const PasswordField = styled(Input.Password)`
4241
.ant-input-suffix {
4342
padding: 0.7rem 0.7rem 0.7rem 0 !important;
4443
.ant-input-password-icon.anticon {
45-
color: var(--text-color) !important;
44+
color: var(--text-main-color) !important;
4645
opacity: 0.7 !important;
4746
}
4847
}
4948
}
5049
`;
50+
export const InputNumberField = styled(InputNumber)`
51+
&.ant-input-number {
52+
border-radius: 7px !important;
53+
padding: 0rem !important;
54+
}
55+
&.ant-input-number:focus {
56+
border-color: var(--ant-primary-5) !important;
57+
box-shadow: 0 0 0 2px var(--ant-primary-color-outline) !important;
58+
}
59+
.anticon-up.ant-input-number-handler-up-inner, .anticon-down.ant-input-number-handler-down-inner {
60+
color: var(--text-main-color) !important;
61+
opacity: 0.7 !important;}
62+
`;

0 commit comments

Comments
 (0)