parent
2eec46e18e
commit
42337a58c2
@ -0,0 +1,37 @@ |
||||
.input { |
||||
display: block; |
||||
width: 100%; |
||||
margin: calc(21rem / 16) 0; |
||||
padding: calc(10rem / 16) calc(31rem / 16); |
||||
|
||||
box-sizing: border-box; |
||||
border: 0; |
||||
border-radius: calc(20rem / 16); |
||||
|
||||
background-color: var(--grey-1-24); |
||||
font-size: calc(18rem / 16); |
||||
line-height: calc(30rem / 16); |
||||
color: var(--grey-3); |
||||
} |
||||
|
||||
.input::placeholder { |
||||
color: var(--grey-2); |
||||
font-weight: 700; |
||||
} |
||||
|
||||
.input:is(:active, :hover, :focus) { |
||||
box-sizing: border-box; |
||||
border: calc(3rem / 16) solid var(--blue-1); |
||||
border-radius: calc(20rem / 16); |
||||
outline: none; |
||||
padding: calc(7rem / 16) calc(28rem / 16); |
||||
} |
||||
|
||||
/* TODO: make this only happen if the form is clicked on? */ |
||||
/* .form input:invalid { |
||||
box-sizing: border-box; |
||||
border: calc(3rem / 16) solid var(--red); |
||||
border-radius: calc(20rem / 16); |
||||
outline: none; |
||||
padding: calc(7rem / 16) calc(28rem / 16); |
||||
} */ |
@ -0,0 +1,8 @@ |
||||
import React, { InputHTMLAttributes } from "react"; |
||||
import styles from "./Input.module.css"; |
||||
|
||||
export function Input(props: InputHTMLAttributes<HTMLInputElement>) { |
||||
return ( |
||||
<input {...props} className={`${styles.input} ${props.className ?? ""}`} /> |
||||
); |
||||
} |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Loading…
Reference in new issue