-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
150 lines (127 loc) · 2.97 KB
/
styles.css
File metadata and controls
150 lines (127 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
:root {
--bg: #0b1020;
--panel: #0f172a;
--text: #e2e8f0;
--muted: #94a3b8;
--primary: #0ea5e9;
--danger: #ef4444;
}
* { box-sizing: border-box; }
html, body {
height: 100%;
}
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: radial-gradient(1000px 1000px at 50% -200px, #0a1628 0%, var(--bg) 60%);
}
.container {
max-width: 720px;
margin: 0 auto;
padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
.toolbar {
display: flex;
justify-content: space-between;
margin-top: 20px;
gap: 12px;
}
.list { margin-top: 16px; display: grid; gap: 12px; }
.row {
background: var(--panel);
border: 1px solid #1f2937;
border-radius: 12px;
padding: 10px;
display: grid;
grid-template-columns: 180px 1fr auto auto;
gap: 10px;
align-items: center;
cursor: grab;
transition: transform 0.2s, box-shadow 0.2s;
}
.row.summary-row {
background: color-mix(in oklab, var(--panel), var(--primary) 15%);
border-color: var(--primary);
}
.row:active { cursor: grabbing; }
.row.dragging {
opacity: 0.5;
transform: rotate(2deg);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
@media (max-width: 560px) {
.row { grid-template-columns: 1fr; align-items: stretch; }
.row .actions { justify-content: flex-end; }
.toolbar { flex-direction: column; }
}
.time {
font-variant-numeric: tabular-nums;
font-size: 28px;
line-height: 1;
letter-spacing: 1px;
padding: 10px 12px;
border: 1px solid #1f2937;
border-radius: 8px;
background: #0b1222;
}
.input {
width: 100%;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #1f2937;
background: #0b1222;
color: var(--text);
}
.actions { display: flex; gap: 8px; }
.btn {
appearance: none;
border: 1px solid #1f2937;
background: #0b1222;
color: var(--text);
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
line-height: 1;
min-width: 44px;
display: flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.btn.primary { border-color: color-mix(in oklab, var(--primary), #000 60%); background: color-mix(in oklab, var(--primary), #000 85%); }
.btn.primary:active { transform: translateY(1px); }
.btn.danger { border-color: color-mix(in oklab, var(--danger), #000 60%); background: color-mix(in oklab, var(--danger), #000 85%); }
/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
.btn {
min-height: 44px;
padding: 12px 16px;
}
.input {
min-height: 44px;
font-size: 16px; /* Prevents zoom on iOS */
}
}
.label-row {
margin-top: 14px;
display: grid;
grid-template-columns: 72px 1fr;
gap: 10px;
align-items: center;
}
.label { color: var(--muted); }
.text {
width: 100%;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #1f2937;
background: #0b1222;
color: var(--text);
}
@media (max-width: 420px) {
.time { font-size: 24px; }
}