pages235/src/react/input.module.css
2024-05-10 05:59:54 +03:00

40 lines
695 B
CSS

.container {
position: relative;
width: 200px;
height: 20px;
background: black;
border: 1px solid grey;
box-sizing: content-box;
}
.input {
position: absolute;
outline: none;
border: none;
background: none;
left: 1px;
width: calc(100% - 2px);
height: 100%;
font-family: minecraft, mojangles, monospace;
font-size: 10px;
color: white;
text-shadow: 1px 1px #222;
padding-left: 2px;
}
.container:hover,
.container:focus-within {
border-color: white;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
appearance: textfield;
-moz-appearance: textfield;
}