@@ -188,6 +188,7 @@ a.tag:hover {
188
188
189
189
.white-theme ,
190
190
html [data-theme = light ] {
191
+ --ct-inline-code-color : # 333 ;
191
192
--ct-query-background : # fafafa ;
192
193
--ct-query-header-background : # 789959 ;
193
194
--ct-query-header-color : # fff ;
@@ -318,6 +319,7 @@ html[data-theme=light] .extensions__code-lang {
318
319
319
320
.dark-theme ,
320
321
html [data-theme = dark ] {
322
+ --ct-inline-code-color : # c9d1d9 ;
321
323
--ct-query-background : var (--ct-page-properties-background );
322
324
--ct-query-header-background : # 30403c ;
323
325
--ct-query-header-color : # fff ;
@@ -676,4 +678,41 @@ a.tooltip-priority:first-of-type::before {
676
678
}
677
679
.foldable-title .page-ref : hover {
678
680
color : var (--ct-query-result-page-title-hover );
681
+ }
682
+
683
+ .ls-block : is (h1 , h2 , h3 , h4 , h5 )::after {
684
+ margin-left : 0.5rem ;
685
+ font-family : "Fira Code" , monospace;
686
+ font-size : 0.6rem ;
687
+ font-style : inherit !important ;
688
+ border-radius : 2px ;
689
+ padding : 2px 5px !important ;
690
+ background : var (--color-level-2 );
691
+ color : var (--ct-inline-code-color );
692
+ vertical-align : middle;
693
+ opacity : 0.3 ;
694
+ }
695
+
696
+ .ls-block : is (h1 , h2 , h3 , h4 , h5 ): hover ::after {
697
+ opacity : 1 ;
698
+ }
699
+
700
+ .ls-block h1 ::after {
701
+ content : "h1" ;
702
+ }
703
+
704
+ .ls-block h2 ::after {
705
+ content : "h2" ;
706
+ }
707
+
708
+ .ls-block h3 ::after {
709
+ content : "h3" ;
710
+ }
711
+
712
+ .ls-block h4 ::after {
713
+ content : "h4" ;
714
+ }
715
+
716
+ .ls-block h5 ::after {
717
+ content : "h5" ;
679
718
}
0 commit comments