Spaces:
Sleeping
Sleeping
File size: 1,856 Bytes
c001f24 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | {% block head %}
<style>
body {
padding-bottom: 100px; /* Extra padding to avoid taskbar overlap */
}
.container {
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
}
.question-card {
margin-bottom: 20px;
border: 1px solid #495057;
border-radius: 8px;
background-color: #212529;
padding: 12px;
}
.question-text img {
max-width: 100%;
max-height: 60vh; /* Limit image height to 60% of viewport */
height: auto;
width: auto;
object-fit: contain;
display: block;
margin: 10px auto;
}
.options-list {
list-style-type: upper-alpha;
padding-left: 20px;
margin-bottom: 10px;
}
.options-list img {
max-width: 100%;
max-height: 40vh; /* Smaller limit for option images */
height: auto;
width: auto;
object-fit: contain;
display: block;
margin: 5px 0;
}
.option-item {
margin-bottom: 8px;
}
.correct-answer {
color: #28a745; /* Green */
font-weight: bold;
}
.marked-answer {
color: #007bff; /* Blue */
font-weight: bold;
}
.answer-toggle-btn {
margin-top: 10px;
margin-right: 8px;
font-size: 0.9rem;
padding: 6px 12px;
}
.answers-section {
margin-top: 15px;
margin-bottom: 10px;
}
h1 {
font-size: 1.75rem;
}
h5 {
font-size: 1.25rem;
}
/* Top button controls */
.d-flex.justify-content-end {
flex-wrap: wrap;
gap: 8px;
}
.d-flex.justify-content-end .btn {
font-size: 0.85rem;
padding: 8px 12px;
}
</style>
{% endblock %}
|