Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/templates/exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ <h5 id="{{ qindex }}question_text" class="card-title mb-2">

<ul class="list-group">
{% for option in q.options %}
<li class="list-group-item mb-2 d-flex">
<label class="form-check-label" for="{{ qindex }}option{{ loop.index }}">
<div class="form-check flex-grow-1">
<li class="list-group-item mb-2">
<label class="form-check-label w-100 d-block" for="{{ qindex }}option{{ loop.index }}">
<div class="form-check">
<input class="form-check-input" type="radio" name="{{ qindex }}option"
id="{{ qindex }}option{{ loop.index }}" class="option"
value="{{ option.option }}" data-misconceptions="{{ option.misconceptions }}"
Expand Down
15 changes: 11 additions & 4 deletions src/templates/stepper.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,20 @@

<style>
#statecontainer {
display: flex;
justify-content: center;
flex-wrap: wrap;
display: block;
text-align: center;
}

.stepper-container {
width: 100%;
max-width: 100%;
box-sizing: border-box;
}

.formula-tree-container,
.trace-container {
justify-content: center;
display: block;
text-align: center;
}

/* Center align .mermaid divs */
Expand All @@ -47,6 +53,7 @@
/* Centers the div within its flex container */
display: block;
/* Ensures the div is treated as a block-level element */
overflow-x: auto;
}

.cycle-state-col {
Expand Down