diff --git a/src/static/css/common.css b/src/static/css/common.css index 48ccb68..cd2c266 100644 --- a/src/static/css/common.css +++ b/src/static/css/common.css @@ -2,6 +2,27 @@ background-color: rgba(0, 0, 0, 0.05); /* Change this color as needed */ } +/* Ensure list group items display correctly and don't overlap + Using high specificity to override Bootstrap's flexbox styles */ +ul.list-group > li.list-group-item { + display: block; + position: relative; + clear: both; +} + +/* Ensure labels take full width in list items */ +ul.list-group > li.list-group-item .form-check-label { + display: block; + width: 100%; +} + +/* Ensure form-check elements don't use problematic flexbox */ +ul.list-group > li.list-group-item .form-check { + display: block; + position: relative; + padding-left: 1.25rem; +} + .footer { background-color: white; } diff --git a/src/templates/exercise.html b/src/templates/exercise.html index 721472b..470d7b1 100644 --- a/src/templates/exercise.html +++ b/src/templates/exercise.html @@ -120,9 +120,9 @@