2022-02-02 21:57:47 +00:00
|
|
|
import styled from "styled-components";
|
2022-11-13 00:09:27 +00:00
|
|
|
import Base from "../themes/base";
|
2022-02-02 21:57:47 +00:00
|
|
|
|
|
|
|
const InputWrapper = styled.div`
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-06-14 07:25:59 +00:00
|
|
|
direction: ltr;
|
2022-02-02 21:57:47 +00:00
|
|
|
input {
|
|
|
|
height: 120px;
|
|
|
|
width: 100px;
|
|
|
|
display: block;
|
2022-11-13 00:09:27 +00:00
|
|
|
background: ${(props) => props.theme.codeInput.background};
|
|
|
|
border: ${(props) => props.theme.codeInput.border};
|
|
|
|
color: ${(props) => props.theme.codeInput.color};
|
2022-02-02 21:57:47 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 0 4px;
|
|
|
|
text-align: center;
|
2022-02-03 09:49:27 +00:00
|
|
|
font-size: 72px;
|
2022-02-02 21:57:47 +00:00
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
height: 76px;
|
|
|
|
width: 64px;
|
2022-02-03 09:49:27 +00:00
|
|
|
font-size: 48px;
|
2022-02-02 21:57:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 414px) {
|
|
|
|
height: 48px;
|
|
|
|
width: 40px;
|
2022-02-03 09:49:27 +00:00
|
|
|
font-size: 32px;
|
2022-02-02 21:57:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-03 09:49:27 +00:00
|
|
|
input:focus {
|
2022-11-13 00:09:27 +00:00
|
|
|
border: 1px solid #5299e0;
|
|
|
|
outline: none;
|
2022-02-03 09:49:27 +00:00
|
|
|
}
|
|
|
|
|
2022-02-03 11:08:45 +00:00
|
|
|
input:disabled {
|
2022-11-15 19:53:24 +00:00
|
|
|
color: ${(props) => props.theme.codeInput.disabledColor};
|
|
|
|
background: ${(props) => props.theme.codeInput.disabledBackground};
|
|
|
|
border: ${(props) => props.theme.codeInput.disabledBorder};
|
2022-02-07 05:00:20 +00:00
|
|
|
outline: none;
|
2022-02-03 11:08:45 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 21:57:47 +00:00
|
|
|
hr {
|
|
|
|
width: 24px;
|
|
|
|
height: 1px;
|
2022-11-13 00:09:27 +00:00
|
|
|
background: ${(props) => props.theme.codeInput.lineColor};
|
2022-02-02 21:57:47 +00:00
|
|
|
border: none;
|
|
|
|
margin: 0 16px;
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
|
|
|
}
|
2023-06-14 07:25:59 +00:00
|
|
|
:placeholder-shown {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
2022-02-02 21:57:47 +00:00
|
|
|
`;
|
|
|
|
|
2022-11-13 00:09:27 +00:00
|
|
|
InputWrapper.defaultProps = { theme: Base };
|
|
|
|
|
2022-02-02 21:57:47 +00:00
|
|
|
export default InputWrapper;
|