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

index.css

76 lines1.4 KB

1#root {
2 max-width: 100%;
3 margin: 0 5rem;
4 text-align: center;
5 border-inline: 1px solid var(--border);
6 min-height: 100svh;
7 box-sizing: border-box;
8 font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
9 --color-text: #08060d;
11​
12#root button {
13 font-size: 16px;
14 padding: 5px 10px;
15 border-radius: 5px;
16 color: var(--color-text);
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 ul {
36 list-style: none;
37 margin: 0;
38 padding: 2rem 0 0 0;
39 display: grid;
40 grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
41 gap: 0.75rem;
43​
44#root li {
45 min-width: 0;
47​
48#root li label {
49 display: flex;
50 flex-direction: column;
51 gap: 0.35rem;
52 font-size: 0.95rem;
53 font-weight: 500;
54 color: var(--color-text);
56​
57#root input {
58 width: 100%;
59 box-sizing: border-box;
60 min-width: 0;
61 padding: 0.55rem 0.7rem;
62 border: 1px solid #ccc;
63 border-radius: 0.4rem;
64 font-size: 1rem;
66​
67#root #itemsAmount {
68 max-width: 10rem;
69 text-align: end;
71​
72#root li input:focus {
73 outline: none;
74 border-color: #646cff;
75 box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.2);