Skip to content

Commit 0f5b859

Browse files
Adjust Scratch AC positioning
1 parent 20a1b66 commit 0f5b859

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

bases/rsptx/interactives/runestone/activecode/css/activecode.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@
240240
/* Hidden by default */
241241
position: fixed;
242242
/* Stay in place */
243-
z-index: 200;
243+
z-index: 9000;
244244
/* Sit on top */
245-
left: 200px;
246-
top: 200px;
245+
left: calc((100% - 800px) / 2);
247246
width: 800px;
247+
top: 5%;
248+
max-height: 90%;
248249
overflow: auto;
249250
/* Enable scroll if needed */
250251
padding: 20px;
@@ -253,9 +254,11 @@
253254
background-color: var(--background);
254255
}
255256

256-
.scratch-ac-modal {
257-
max-height: 90%;
258-
overflow-y: scroll;
257+
@media (max-width: 960px) {
258+
.scratch-ac-modal {
259+
width: 90%;
260+
left: 5%;
261+
}
259262
}
260263

261264
.ac-modal-body,

0 commit comments

Comments
 (0)