DocSpace-buildtools/packages/components/code-input/styled-code-input.js

62 lines
1003 B
JavaScript
Raw Normal View History

2022-02-02 21:57:47 +00:00
import styled from "styled-components";
const InputWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
input {
height: 120px;
width: 100px;
display: block;
background: #ffffff;
border: 1px solid #d0d5da;
box-sizing: border-box;
border-radius: 8px;
margin: 0 4px;
text-align: center;
font-size: 72px;
2022-02-02 21:57:47 +00:00
@media (max-width: 768px) {
height: 76px;
width: 64px;
font-size: 48px;
2022-02-02 21:57:47 +00:00
}
@media (max-width: 414px) {
height: 48px;
width: 40px;
font-size: 32px;
2022-02-02 21:57:47 +00:00
}
&:last-child {
margin: 0;
}
}
input:focus {
border: 1px solid #3b72a7;
}
2022-02-03 11:08:45 +00:00
input:disabled {
color: #a3a9ae;
background: #f8f9f9;
border: 1px solid #eceef1;
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;
background: #c4c4c4;
border: none;
margin: 0 16px;
@media (max-width: 768px) {
margin: 0 4px;
}
}
`;
export default InputWrapper;