@@ -510,13 +510,21 @@ textarea:focus {
510510}
511511
512512.preview-host {
513- flex : 1 1 auto;
514- min-height : 180px ;
515- padding : 18px ;
516- overflow : auto;
517- position : relative;
513+ --preview-host-display : block;
514+ --preview-host-flex : 1 1 auto;
515+ --preview-host-min-height : 180px ;
516+ --preview-host-padding : 18px ;
517+ --preview-host-overflow : auto;
518+ --preview-host-position : relative;
519+ --preview-host-z-index : 1 ;
520+ display : var (--preview-host-display );
521+ flex : var (--preview-host-flex );
522+ min-height : var (--preview-host-min-height );
523+ padding : var (--preview-host-padding );
524+ overflow : var (--preview-host-overflow );
525+ position : var (--preview-host-position );
518526 background : var (--surface-preview );
519- z-index : 1 ;
527+ z-index : var ( --preview-host-z-index ) ;
520528}
521529
522530.preview-host [data-style-compiling = 'true' ]::before {
@@ -613,7 +621,6 @@ textarea:focus {
613621 padding : 0 ;
614622}
615623
616- .shadow-hint ::before ,
617624.shadow-hint ::after {
618625 opacity : 0 ;
619626 visibility : hidden;
@@ -624,18 +631,6 @@ textarea:focus {
624631 visibility 120ms ease;
625632}
626633
627- .shadow-hint ::before {
628- content : '' ;
629- position : absolute;
630- top : calc (100% + 4px );
631- right : 4px ;
632- border-left : 6px solid transparent;
633- border-right : 6px solid transparent;
634- border-bottom : 6px solid var (--surface-tooltip );
635- transform : translateY (-4px );
636- z-index : 31 ;
637- }
638-
639634.shadow-hint ::after {
640635 content : attr (data-tooltip);
641636 position : absolute;
@@ -656,9 +651,7 @@ textarea:focus {
656651 z-index : 30 ;
657652}
658653
659- .shadow-hint : hover ::before ,
660654.shadow-hint : hover ::after ,
661- .shadow-hint : focus-visible ::before ,
662655.shadow-hint : focus-visible ::after {
663656 opacity : 1 ;
664657 visibility : visible;
0 commit comments