File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
224225
225226.reveal .slides section .code-walkthrough pre code {
226227 display : block;
227- height : min ( 80 vh , calc ( 100 vh - 11.5 rem ) );
228- max-height : min ( 80 vh , calc ( 100 vh - 11.5 rem ) );
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 ;
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 ;
You can’t perform that action at this time.
0 commit comments