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

index.css

77 lines1.5 KB

1#root {
2 width: 70rem;
3 max-width: 100%;
4 margin: 0 auto;
5 text-align: center;
6 border-inline: 1px solid var(--border);
7 min-height: 100svh;
8 box-sizing: border-box;
9 font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
11​
12#root button {
13 font-size: 16px;
14 padding: 5px 10px;
15 border-radius: 5px;
16 color: #08060d;
17 background: #f4f3ec;
18 border: 2px solid transparent;
19 border-top-color: transparent;
20 border-right-color: transparent;
21 border-bottom-color: transparent;
22 border-left-color: transparent;
23 transition: border-color 0.3s;
24 margin-inline: 0.5rem;
25 margin-top: 0.5rem;
26 font-family: ui-monospace, Consolas, monospace;
27 display: inline-flex;
28 cursor: pointer;
30​
31#root button:hover {
32 border: 2px solid rgba(8, 6, 13, 0.5);
34​
35#root label {
36 display: grid;
37 gap: 0.35rem;
39​
40#root label > input {
41 width: 100%;
42 max-width: 16rem;
43 margin-inline: auto;
44 border: 1px solid #d4d4d8;
45 border-radius: 0.5rem;
46 padding: 0.5rem 0.75rem;
47 outline: none;
48 transition:
49 border-color 120ms ease,
50 box-shadow 120ms ease,
51 background-color 120ms ease;
53​
54#root label > input:focus-visible {
55 border-color: #71717a;
56 box-shadow: 0 0 0 3px rgb(113 113 122 / 0.12);
58​
59#root small {
60 min-height: 1.25rem;
61 font-size: 0.8125rem;
62 color: #dc2626;
63 white-space: pre-line;
65​
66#root label.validating > input {
67 border-color: #93c5fd;
69​
70#root label > input[aria-invalid='true'] {
71 border-color: #fca5a5;
72 background-color: #fef2f2;
74​
75#root label > input[aria-invalid='true']:focus-visible {
76 box-shadow: 0 0 0 3px rgb(248 113 113 / 0.16);