Skip to content

Commit 2257700

Browse files
DRDimov21DRDimov21
authored andcommitted
Improve survey design
1 parent ce90693 commit 2257700

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

My_path_team9/student/templates/survey.html

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,105 @@
248248
transition: all 0.3s ease;
249249
}
250250

251+
.radio-option:hover label {
252+
background: rgba(59, 130, 246, 0.05);
253+
border-color: rgba(59, 130, 246, 0.4);
254+
transform: translateX(5px);
255+
}
256+
257+
.radio-option input[type="radio"]:checked + label {
258+
background: rgba(59, 130, 246, 0.1);
259+
border-color: var(--primary-blue);
260+
color: var(--primary-blue);
261+
font-weight: 600;
262+
transform: translateX(5px);
263+
}
264+
265+
.radio-option input[type="radio"]:checked + label::before {
266+
border-color: var(--primary-blue);
267+
}
268+
269+
.radio-option input[type="radio"]:checked + label::after {
270+
opacity: 1;
271+
}
272+
273+
/* Checkbox Styling */
274+
.checkbox-group {
275+
display: grid;
276+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
277+
gap: 1rem;
278+
margin-top: 1.5rem;
279+
}
280+
281+
.checkbox-option {
282+
position: relative;
283+
cursor: pointer;
284+
}
285+
286+
.checkbox-option input[type="checkbox"] {
287+
position: absolute;
288+
opacity: 0;
289+
cursor: pointer;
290+
}
291+
292+
.checkbox-option label {
293+
display: flex;
294+
align-items: center;
295+
padding: 1rem;
296+
background: rgba(255, 255, 255, 0.8);
297+
border: 2px solid rgba(59, 130, 246, 0.2);
298+
border-radius: 12px;
299+
font-weight: 500;
300+
color: var(--dark-blue);
301+
transition: all 0.3s ease;
302+
}
303+
304+
.checkbox-option label::before {
305+
content: '';
306+
width: 18px;
307+
height: 18px;
308+
border: 2px solid rgba(59, 130, 246, 0.3);
309+
border-radius: 4px;
310+
margin-right: 0.75rem;
311+
transition: all 0.3s ease;
312+
position: relative;
313+
}
314+
315+
.checkbox-option label::after {
316+
content: '✓';
317+
position: absolute;
318+
left: 0.75rem;
319+
top: 50%;
320+
transform: translateY(-50%);
321+
color: white;
322+
font-weight: bold;
323+
font-size: 0.8rem;
324+
opacity: 0;
325+
transition: all 0.3s ease;
326+
}
327+
328+
.checkbox-option:hover label {
329+
background: rgba(59, 130, 246, 0.05);
330+
border-color: rgba(59, 130, 246, 0.4);
331+
}
332+
333+
.checkbox-option input[type="checkbox"]:checked + label {
334+
background: rgba(59, 130, 246, 0.1);
335+
border-color: var(--primary-blue);
336+
color: var(--primary-blue);
337+
font-weight: 600;
338+
}
339+
340+
.checkbox-option input[type="checkbox"]:checked + label::before {
341+
background: var(--primary-blue);
342+
border-color: var(--primary-blue);
343+
}
344+
345+
.checkbox-option input[type="checkbox"]:checked + label::after {
346+
opacity: 1;
347+
}
348+
349+
251350

252351
</style>
253352

0 commit comments

Comments
 (0)