Repository navigation
Expand file tree
/
Copy pathApp.css
More file actions
166 lines (154 loc) · 2.61 KB
/
Copy pathApp.css
File metadata and controls
166 lines (154 loc) · 2.61 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* ===== File: src/App.css ===== */
/* Light theme colors (default) */
:root {
--bg: linear-gradient(135deg, #f6f7fb 0%, #e2e8f0 100%);
--card: #ffecfbe5;
--text: #03070e;
--muted: #6b7280;
--accent: #664629;
--danger: #dc2626;
}
/* Dark theme overrides */
.app-root.dark {
--bg: #e0e0e0;
--card: #d4d4d4;
--text: #e6eef8;
--muted: #9aa7bd;
--accent: #ffffff;
--danger: #dfd8d8;
}
/* Global styles */
html,
body,
#root {
height: 100%;
margin: 0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
'Helvetica Neue', Arial Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
body {
background: var(--bg);
color: var(--text);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
/* Card container */
.card {
background: var(--card);
width: 760px;
max-width: 95vw;
border-radius: 12px;
box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
padding: 18px;
}
/* Header */
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.card-header h1 {
margin: 0;
font-size: 40px;
}
/* Buttons */
.btn {
background: #b6c1ffe5;
border: 1px solid rgba(0, 0, 0, 0.08);
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn:hover {
background: var(--accent);
color: white;
}
.btn.big {
font-size: 28px;
padding: 10px 18px;
}
.btn.danger {
border-color: var(--danger);
color: var(--danger);
}
.btn.danger:hover {
background: var(--danger);
color: white;
}
/* Body */
.card-body {
margin-top: 12px;
}
.counter-row {
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
margin-bottom: 12px;
}
.value {
min-width: 80px;
text-align: center;
font-size: 28px;
font-weight: 600;
}
/* Controls */
.controls {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.group {
display: flex;
align-items: center;
gap: 8px;
}
.group label {
font-size: 12px;
color: var(--muted);
display: block;
}
.group input {
width: 80px;
padding: 6px 8px;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.08);
}
.actions {
margin-left: auto;
}
/* History section */
.history {
margin-top: 12px;
}
.history ol {
padding-left: 20px;
}
.muted {
color: var(--muted);
}
.small {
font-size: 12px;
}
.card-footer {
margin-top: 12px;
color: var(--muted);
}
/* Dark mode button borders */
.app-root.dark .btn {
border-color: rgba(255, 255, 255, 0.08);
}
/* Mobile responsive */
@media (max-width: 600px) {
.controls {
flex-direction: column;
}
.actions {
margin-left: 0;
}
}