Skip to content

Commit 9986d6e

Browse files
committed
Fix eraser lab spacing and improve control layout
Restructured the controls layout for better spacing and legibility: 1. Controls section layout: - Changed .controls from 2-column grid to flex column - Changed .erasure-controls to responsive auto-fit grid - Control groups now display in clean, bounded boxes 2. Checkbox improvements: - Increased spacing between checkboxes (12px margins) - Made checkboxes larger (1.3 scale) and easier to click - Fixed labels to not be uppercase/spaced for readability - Fixed width issues with proper box-sizing 3. Control group styling: - Added 25px padding for breathing room - Added visual separator under h3 headings - Better margins between elements 4. Slider improvements: - Increased height to 8px for easier interaction - Better spacing (20px bottom margin) - Improved label font weight All controls are now properly bounded, aligned, and legible.
1 parent 20c0be4 commit 9986d6e

1 file changed

Lines changed: 45 additions & 16 deletions

File tree

styles.css

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,26 +406,39 @@ input[type="file"],
406406
}
407407

408408
/* Controls */
409-
.controls,
409+
.controls {
410+
display: flex;
411+
flex-direction: column;
412+
gap: 20px;
413+
margin-bottom: 20px;
414+
}
415+
410416
.erasure-controls {
411417
display: grid;
412-
grid-template-columns: 1fr 1fr;
413-
gap: 15px;
414-
margin-bottom: 20px;
418+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
419+
gap: 20px;
420+
}
421+
422+
@media (max-width: 768px) {
423+
.erasure-controls {
424+
grid-template-columns: 1fr;
425+
}
415426
}
416427

417428
.control-group,
418429
.option-group {
419430
background: #ffffff;
420-
padding: 20px;
431+
padding: 25px;
421432
border-radius: 0;
422433
border: 2px solid #4a4a4a;
423-
margin-bottom: 15px;
424434
}
425435

426436
.control-group h3 {
427-
margin-bottom: 15px;
437+
margin-bottom: 18px;
438+
margin-top: 0;
428439
color: #1a1a1a;
440+
padding-bottom: 10px;
441+
border-bottom: 2px solid #e8e8e8;
429442
}
430443

431444
.control-group label,
@@ -448,6 +461,12 @@ input[type="file"],
448461
transition: all 0.3s ease;
449462
background: #ffffff;
450463
width: 100%;
464+
box-sizing: border-box;
465+
}
466+
467+
.control-group input[type="checkbox"] {
468+
width: auto;
469+
padding: 0;
451470
}
452471

453472
.control-group input:focus,
@@ -877,33 +896,45 @@ input[type="file"],
877896
.checkbox-container {
878897
display: flex;
879898
align-items: center;
880-
margin-bottom: 10px;
899+
margin-bottom: 12px;
900+
padding: 8px 0;
881901
}
882902

883903
.checkbox-container input[type="checkbox"] {
884-
margin-right: 10px;
885-
transform: scale(1.2);
904+
width: auto;
905+
margin-right: 12px;
906+
transform: scale(1.3);
886907
accent-color: #c41e3a;
887908
cursor: pointer;
909+
flex-shrink: 0;
910+
}
911+
912+
.checkbox-container label {
913+
cursor: pointer;
914+
margin: 0;
915+
font-size: 0.95em;
916+
text-transform: none;
917+
letter-spacing: normal;
888918
}
889919

890920
/* Sliders */
891921
.slider-container {
892-
margin-bottom: 15px;
922+
margin-bottom: 20px;
893923
}
894924

895925
.slider-label {
896926
display: flex;
897927
justify-content: space-between;
898928
align-items: center;
899-
margin-bottom: 8px;
900-
font-weight: 500;
929+
margin-bottom: 10px;
930+
font-weight: 600;
901931
color: #1a1a1a;
932+
font-size: 0.95em;
902933
}
903934

904935
.slider {
905936
width: 100%;
906-
height: 6px;
937+
height: 8px;
907938
border-radius: 0;
908939
background: #e8e8e8;
909940
outline: none;
@@ -1033,8 +1064,6 @@ input[type="file"],
10331064
padding: 20px;
10341065
}
10351066

1036-
.controls,
1037-
.erasure-controls,
10381067
.tools-section {
10391068
grid-template-columns: 1fr;
10401069
}

0 commit comments

Comments
 (0)