Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

styles.ts

66 lines986 Bytes

1import { css } from 'lit'
2​
3export const styles = css`
4 form {
5 max-width: 600px;
6 margin: 10px auto;
7 border: 1px solid #ccc;
8 border-radius: 3px;
9 box-shadow: 1 1 2px rgba(0, 0, 0, 0.3);
10 padding: 10px;
11 display: flex;
12 flex-flow: column nowrap;
13 }
14​
15 h1 {
16 text-align: center;
17 color: #333;
18 }
19​
20 p {
21 margin: 10px auto;
22 line-height: 1.2em;
23 max-width: 500px;
24 }
25​
26 div {
27 margin: 10px;
28 display: flex;
29 flex-flow: row nowrap;
30 justify-content: center;
31 }
32​
33 label {
34 width: 120px;
35 text-align: right;
36 margin-right: 15px;
37 padding: 5px;
38 }
39​
40 input {
41 padding: 5px;
42 flex: 1;
43 border: 1px solid #ccc;
44 border-radius: 3px;
45 }
46​
47 select {
48 flex: 1;
49 height: 24px;
50 border: 1px solid #ccc;
51 border-radius: 3px;
52 }
53​
54 span {
55 color: #600;
56 font-weight: bold;
57 margin: 0 0 0 10px;
58 line-height: 26px;
59 }
60​
61 button {
62 width: 80px;
63 display: block;
64 margin: 0 auto;
65 }