-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
218 lines (192 loc) · 4.1 KB
/
style.css
File metadata and controls
218 lines (192 loc) · 4.1 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
/* Global layout & typography */
* {
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
margin: 0;
padding: 0;
background: #f4f5fb;
color: #222;
}
/* Top navigation */
.top-nav {
max-width: 960px;
margin: 0 auto 1rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: flex-start;
}
.nav-btn {
display: inline-block;
padding: 0.4rem 0.9rem;
border-radius: 999px;
border: 1px solid #c4c7d4;
background: #f5f6ff;
font-size: 0.85rem;
font-weight: 600;
text-decoration: none;
color: #2f3c6e;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-btn:hover {
background: #e0e3ff;
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.nav-btn:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
/* Active nav button (current page) */
.nav-btn.active {
background: #2f6feb;
color: #ffffff;
border-color: #2f6feb;
cursor: default;
box-shadow: none;
pointer-events: none; /* makes it unclickable */
}
.nav-btn.active:hover,
.nav-btn.active:active {
background: #2f6feb;
transform: none;
box-shadow: none;
}
h1 {
text-align: center;
margin: 1.5rem 0 1rem;
font-size: 1.6rem;
}
/* Form container: looks like a card on the page */
form#test-form {
max-width: 960px;
margin: 0 auto 2rem;
padding: 1.5rem 2rem;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
/* Fieldsets behave like separate tables/sections */
fieldset {
border: 1px solid #d5d7e2;
border-radius: 8px;
padding: 1rem 1.25rem 1.25rem;
margin-bottom: 1.5rem;
background: #fafbff;
}
legend {
padding: 0 0.5rem;
font-weight: 600;
font-size: 0.95rem;
color: #394263;
}
/* Labels + inputs stacked clearly */
label {
display: flex;
flex-direction: column;
align-items: flex-start;
font-size: 0.9rem;
margin-bottom: 0.6rem;
}
label > input,
label > select,
label > textarea {
margin-top: 0.25rem;
}
/* Inputs styling */
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
width: 100%;
max-width: 260px;
padding: 0.4rem 0.5rem;
border-radius: 4px;
border: 1px solid #c4c7d4;
font-size: 0.9rem;
background: #ffffff;
}
input[type="number"] {
max-width: 140px;
}
textarea {
max-width: 100%;
min-height: 3rem;
resize: vertical;
}
/* Small descriptive paragraphs in fieldsets */
fieldset p {
margin-top: 0;
margin-bottom: 0.75rem;
font-size: 0.85rem;
color: #555b7a;
}
/* Button */
button[type="submit"] {
display: inline-block;
padding: 0.55rem 1.4rem;
border-radius: 6px;
border: none;
font-size: 0.95rem;
font-weight: 600;
background: #2f6feb;
color: #ffffff;
cursor: pointer;
box-shadow: 0 2px 4px rgba(47, 111, 235, 0.4);
transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
button[type="submit"]:hover {
background: #2555b8;
transform: translateY(-1px);
box-shadow: 0 3px 6px rgba(37, 85, 184, 0.45);
}
button[type="submit"]:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(37, 85, 184, 0.35);
}
/* Status message */
#status {
max-width: 960px;
margin: 0.5rem auto 2.5rem;
padding: 0.5rem 0.75rem;
font-size: 0.9rem;
text-align: center;
color: #1f2933;
}
/* Give success / error messages visual weight via simple heuristics */
#status:empty {
display: none;
}
/* If message contains ✅, make it green-ish */
#status:has(> span.success),
#status.success {
background: #e6f6ec;
border-radius: 6px;
border: 1px solid #83c39c;
color: #14532d;
}
/* If message contains "Error", make it red-ish (your JS can later add a class if you want) */
#status.error {
background: #fde8e8;
border-radius: 6px;
border: 1px solid #f19999;
color: #7f1d1d;
}
/* Slightly tighter spacing on mobile */
@media (max-width: 600px) {
form#test-form {
padding: 1.25rem 1.1rem;
margin: 0 0.5rem 1.5rem;
}
input[type="text"],
input[type="date"],
input[type="number"],
select {
max-width: 100%;
}
}