This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/components/slides/deckdeckgo-slide-code Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ div.deckgo-code-container {
1010 overflow-y : auto ;
1111 width : 100% ;
1212
13- margin-bottom : var (--margin-bottom , 64px );
13+ color : var (--code-color , inherit );
14+
15+ margin-bottom : var (--code-margin-bottom , 64px );
1416
1517 transform-origin : bottom left ;
1618 transition : all .2s ease-in-out ;
@@ -20,6 +22,8 @@ div.deckgo-code-container {
2022 white-space : pre-wrap ;
2123 overflow-y : scroll ;
2224
25+ font-size : var (--code-font-size );
26+
2327 div :empty {
2428 min-height : 1rem ;
2529 }
@@ -31,6 +35,10 @@ div.deckgo-code-container {
3135 }
3236}
3337
38+ ::slotted([slot = " title" ]) {
39+ transition : opacity 0.5s ease-in ;
40+ }
41+
3442@media print {
3543 div .deckgo-slide {
3644 height : 100% ;
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ export class DeckdeckgoSlideCode implements DeckdeckgoSlide {
8686 container . style . setProperty ( '--zoom-code' , zoom ? '2' : '1' ) ;
8787 }
8888
89+ const title : HTMLElement = this . el . querySelector ( '[slot=\'title\']' ) ;
90+ if ( title ) {
91+ title . style . setProperty ( 'opacity' , zoom ? '0' : '1' ) ;
92+ }
93+
8994 resolve ( ) ;
9095 } ) ;
9196 }
You can’t perform that action at this time.
0 commit comments