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

styles.css

105 lines1.5 KB

1:root {
2 color-scheme: light;
3 font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
4 line-height: 1.4;
5}
6​
7* {
8 box-sizing: border-box;
9}
10​
11body {
12 margin: 0;
13 background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
14 color: #1f2430;
16​
17.app-shell {
18 max-width: 720px;
19 margin: 0 auto;
20 padding: 2rem 1rem 3rem;
22​
23.subtitle {
24 margin-top: 0.5rem;
25 margin-bottom: 1.5rem;
26 color: #495266;
28​
29.todo-card {
30 background: #fff;
31 border: 1px solid #d8deea;
32 border-radius: 12px;
33 padding: 1rem;
35​
36.todo-input-row {
37 display: flex;
38 gap: 0.5rem;
39 margin-bottom: 1rem;
41​
42.todo-input {
43 flex: 1;
44 border: 1px solid #c5cede;
45 border-radius: 8px;
46 padding: 0.6rem 0.75rem;
47 font-size: 1rem;
49​
50.todo-button {
51 border: none;
52 border-radius: 8px;
53 background: #2258e5;
54 color: #fff;
55 padding: 0.6rem 0.9rem;
56 cursor: pointer;
58​
59.todo-button:disabled,
60.todo-toggle:disabled {
61 opacity: 0.55;
62 cursor: not-allowed;
64​
65.todo-list {
66 list-style: none;
67 margin: 0;
68 padding: 0;
69 display: flex;
70 flex-direction: column;
71 gap: 0.5rem;
73​
74.todo-item {
75 display: flex;
76 align-items: center;
77 justify-content: space-between;
78 border: 1px solid #e2e8f3;
79 border-radius: 8px;
80 padding: 0.6rem 0.75rem;
82​
83.todo-item.done .todo-text {
84 text-decoration: line-through;
85 opacity: 0.65;
87​
88.todo-toggle {
89 border: 1px solid #c5cede;
90 border-radius: 6px;
91 background: #f7f9ff;
92 padding: 0.35rem 0.6rem;
93 cursor: pointer;
95​
96.error-text {
97 color: #b00020;
98 margin: 0.5rem 0 0;
100​
101.tip {
102 margin-top: 1rem;
103 color: #54607a;
104 font-size: 0.92rem;