Skip to content

Commit 1d2ddd5

Browse files
mobile scaling
1 parent 77df82e commit 1d2ddd5

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

custom.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--slide-pad-top: 5.2rem;
77
--slide-pad-left: 4rem;
88
--slide-pad-right: 0.75rem;
9+
--walkthrough-code-height: min(54vh, calc(100vh - 17rem));
910
}
1011

1112
.reveal {
@@ -224,8 +225,8 @@
224225

225226
.reveal .slides section.code-walkthrough pre code {
226227
display: block;
227-
height: min(80vh, calc(100vh - 11.5rem));
228-
max-height: min(80vh, calc(100vh - 11.5rem));
228+
height: var(--walkthrough-code-height);
229+
max-height: var(--walkthrough-code-height);
229230
overflow: auto;
230231
box-sizing: border-box;
231232
padding-bottom: 0.9em;
@@ -237,6 +238,13 @@
237238
line-height: 1.34;
238239
}
239240

241+
@media (max-width: 768px) {
242+
:root {
243+
--slide-pad-top: 3.2rem;
244+
--walkthrough-code-height: min(46vh, calc(100vh - 11rem));
245+
}
246+
}
247+
240248
.reveal .slides section.code-walkthrough pre code::-webkit-scrollbar {
241249
width: 10px;
242250
height: 10px;

0 commit comments

Comments
 (0)