Skip to content

Commit 52b4221

Browse files
committed
CSS to not overlap
1 parent c74c7bb commit 52b4221

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/extra.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,27 @@
5454
/* Author metadata displayed below page title, right-aligned */
5555
.page-author {
5656
float: right;
57-
margin: -1rem 0 1rem 1rem;
57+
margin: -2rem 0 1rem 1rem;
5858
padding: .2rem .6rem;
5959
border-radius: .2rem;
6060
font-size: .75rem;
6161
font-style: italic;
6262
color: var(--md-default-fg-color--light);
6363
background: var(--md-code-bg-color);
6464
border-left: 2px solid var(--md-primary-fg-color);
65+
clear: right;
66+
}
67+
[data-md-color-scheme="slate"] .page-author {
68+
color: var(--md-default-fg-color--lighter);
69+
}
70+
71+
/* Ensure content after author box clears the float */
72+
.md-typeset h1 + .page-author + * {
73+
clear: both;
74+
}
75+
.md-typeset h1 + .page-author + p,
76+
.md-typeset h1 + .page-author + div {
77+
margin-top: 0;
6578
}
6679
[data-md-color-scheme="slate"] .page-author {
6780
color: var(--md-default-fg-color--lighter);

0 commit comments

Comments
 (0)