3636 pre { padding : 1.5rem ; font-family : "SF Mono" , "Fira Code" , monospace; font-size : 13px ; line-height : 1.7 ; overflow-x : auto; white-space : pre; }
3737 .welcome h1 { font-size : 1.8rem ; font-weight : 600 ; margin-bottom : 1rem ; }
3838 .welcome p { color : # 555 ; line-height : 1.8 ; max-width : 500px ; }
39+ .cm-static-wrap .CodeMirror { height : auto; border-radius : 8px ; font-size : 13px ; line-height : 1.6 ; padding : 0.25rem 0 ; margin-bottom : 1.25rem ; font-family : "SF Mono" , "Fira Code" , monospace; }
40+ .cm-static-wrap .CodeMirror-scroll { overflow : hidden !important ; max-height : none; }
3941 footer { border-top : 1px solid # e0e0e0 ; padding : 2rem ; text-align : center; font-size : 13px ; color : # 888 ; }
4042 .footer-contact { margin-top : 0.4rem ; font-size : 12px ; }
4143 .footer-contact a { color : # aaa ; border-bottom : 1px solid transparent; }
4850 .content { padding : 2rem 1.25rem ; }
4951 .preview-wrap { max-width : 100% ; }
5052 pre { font-size : 12px ; }
51- }
52- height : auto; border-radius : 8px ; font-size : 13px ;
53- line-height : 1.6 ; padding : 0.25rem 0 ; margin-bottom : 1.25rem ;
54- font-family : "SF Mono" , "Fira Code" , monospace;
55- }
56- </ style >
53+ }</ style >
5754</ head >
5855< body >
5956< nav id ="site-nav ">
@@ -94,7 +91,7 @@ <h1>Alpha Mask</h1>
9491 image(img, width / 2, height / 2);
9592 image(img, mouseX, mouseY);
9693 }
97- </body></html>` ) ; doc . close ( ) ; } ) ( ) ; </ script >
94+ }<\/script> </body></html>`) ; doc . close ( ) ; } ) ( ) ; </ script >
9895 < div class ="code-block ">
9996 < div class ="code-header ">
10097 < span > alpha-mask.pde</ span >
@@ -154,6 +151,10 @@ <h1>Alpha Mask</h1>
154151 sec . style . display = open ? 'none' : 'block' ;
155152 arrow . textContent = open ? '▸' : '▾' ;
156153} </ script >
154+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/codemirror.min.js "> </ script >
155+ < script src ="../assets/cppmode-keywords.js "> </ script >
156+ < script src ="../assets/cm-cppmode.js "> </ script >
157+ < script src ="../assets/code-highlight.js "> </ script >
157158< script src ="../assets/nav.js "> </ script >
158159</ body >
159160</ html >
0 commit comments