Skip to content

Commit 83c1fcd

Browse files
committed
Tweak styling for codeblock footer
1 parent 9a69cee commit 83c1fcd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/css/custom.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ samp {
642642
}
643643

644644
.code-block-footer {
645+
height: 2.5em;
646+
padding: 0 var(--ifm-pre-padding);
645647
margin-bottom: 25px;
646648
margin-top: -8px;
647649
justify-content: space-between;
@@ -652,13 +654,16 @@ samp {
652654
border: none;
653655
background: none;
654656
font-size: inherit;
655-
margin: 0;
656657
cursor: pointer;
657658
}
658659

659660
.code-block-expand,
660661
.code-block-snack-link {
661-
padding: calc(var(--ifm-pre-padding) / 3) var(--ifm-pre-padding);
662+
display: flex;
663+
align-items: center;
664+
padding: 0;
665+
margin: 0;
666+
height: 100%;
662667
}
663668

664669
.code-block-snack-link {

0 commit comments

Comments
 (0)