Skip to content

Commit f4ae319

Browse files
committed
feat: add preview header styles
1 parent 12f857d commit f4ae319

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

custom.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ samp {
680680
}
681681

682682
.tippy-tooltip-content > .tippy-wrapper > .blocks-container {
683-
padding: 0 0.5em;
683+
margin-top: 1.5em;
684+
padding: 0.5em 1em 1em;
684685
min-width: 450px;
685686
}
686687

@@ -738,7 +739,7 @@ kbd {
738739
}
739740

740741
/* Page preview title */
741-
.tippy-wrapper > h2:first-of-type {
742+
.tippy-wrapper > :is(h2:first-of-type, .block-parents) {
742743
display: inline-flex;
743744
align-items: center;
744745
position: absolute;
@@ -757,6 +758,10 @@ kbd {
757758
text-shadow: 1px 1px 0px black, 1px 1px 1px rgb(136, 136, 136);
758759
}
759760

761+
.tippy-wrapper > :is(h2:first-of-type, .block-parents) a {
762+
color: var(--ct-query-header-color);
763+
}
764+
760765
/* Some tweaks on making this theme a bit more compact on mobile.
761766
Mobile cap is 640px */
762767
@media (max-width: 640px) {

0 commit comments

Comments
 (0)