Skip to content

Commit ac27676

Browse files
committed
Add sub title to query table
1 parent ac70830 commit ac27676

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ a.tag:hover {
188188

189189
.white-theme,
190190
html[data-theme=light] {
191+
--ct-inline-code-color: #333;
191192
--ct-query-background: #fafafa;
192193
--ct-query-header-background: #789959;
193194
--ct-query-header-color: #fff;
@@ -318,6 +319,7 @@ html[data-theme=light] .extensions__code-lang {
318319

319320
.dark-theme,
320321
html[data-theme=dark] {
322+
--ct-inline-code-color: #c9d1d9;
321323
--ct-query-background: var(--ct-page-properties-background);
322324
--ct-query-header-background: #30403c;
323325
--ct-query-header-color: #fff;
@@ -676,4 +678,41 @@ a.tooltip-priority:first-of-type::before {
676678
}
677679
.foldable-title .page-ref:hover {
678680
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";
679718
}

0 commit comments

Comments
 (0)