File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
website/src/components/PresentationMode Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 131131 font-size : 0.65em ;
132132 line-height : 1.3 ;
133133 margin : 0.5em auto 0 auto;
134- max-width : var (--pres-component-max-width );
135134 border-radius : 6px ;
136135 background : # 1e1e1e ;
137- padding : 1 em ;
136+ padding : 0.75 em ;
138137 text-align : left;
139138 overflow-y : auto;
140139 overflow-x : auto;
158157.comparison {
159158 display : grid;
160159 grid-template-columns : 1fr 1fr ;
161- gap : clamp (1 em , 2 vw , 1.5 em );
160+ gap : clamp (0.75 em , 1.5 vw , 1.25 em );
162161 margin : 1.5em auto 0.5em auto;
163- max-width : var ( --pres-component-max-width ) ;
162+ max-width : 98 % ;
164163 flex : 1 ;
165164 min-height : 0 ;
166165 max-height : none;
167166}
168167
168+ /* Code comparison specific overrides - tighter spacing for maximum code readability */
169+ .comparisonCode {
170+ gap : clamp (0.5em , 1vw , 0.85em );
171+ margin : 1em auto 0.5em auto;
172+ max-width : 99% ;
173+ }
174+
175+ .comparisonCode .comparisonLeft ,
176+ .comparisonCode .comparisonRight {
177+ padding : clamp (0.5em , 1vw , 0.75em );
178+ border-width : 1px ;
179+ }
180+
181+ .comparisonCode .ineffective ,
182+ .comparisonCode .effective {
183+ margin-bottom : 0.2em ;
184+ }
185+
169186.comparisonLeft ,
170187.comparisonRight {
171188 composes : gpuOptimized;
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export default function RevealSlideshow({
291291 data-notes = { formatSpeakerNotes ( slide . speakerNotes ) }
292292 >
293293 < h2 > { slide . title } </ h2 >
294- < div className = { styles . comparison } >
294+ < div className = { ` ${ styles . comparison } ${ styles . comparisonCode } ` } >
295295 { slide . leftCode && (
296296 < div className = { styles . comparisonLeft } >
297297 < h3 className = { styles . ineffective } > { slide . leftCode . label } </ h3 >
You can’t perform that action at this time.
0 commit comments