More actions
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
/* Style for collapsed sections */ | /* Style for collapsed sections */ | ||
/* Header styling (collapsed by default) */ | |||
/* Remove default margins between accordion sections */ | |||
.accordion-section { | |||
margin: 0; /* Reset any inherited margins */ | |||
padding: 0; /* Reset any inherited padding */ | |||
} | |||
/* Header styling (collapsed by default) */ | /* Header styling (collapsed by default) */ | ||
.accordion-header { | .accordion-header { | ||
Line 59: | Line 66: | ||
width: 100%; /* Full width */ | width: 100%; /* Full width */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin-bottom: 0; /* No gap below header */ | |||
} | } | ||
Line 75: | Line 83: | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin-top: 0; /* No gap above content */ | |||
} | |||
/* Ensure no extra spacing between sections */ | |||
.accordion-section + .accordion-section { | |||
margin-top: 5px; /* Small, controlled gap between sections */ | |||
} | } |