Merge pull request #638 from nature-of-code/bug-fix

A few bugs' fix
This commit is contained in:
Yifei Gao 2024-01-08 18:11:04 +08:00 committed by GitHub
commit 83e48788dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -1,7 +1,6 @@
span.highlight,
div[data-type='exercise'],
div[data-type='note'],
div[data-type='project'],
div[data-type='example'] {
margin: 12pt 0;
page-break-inside: avoid;
@ -12,6 +11,14 @@ div[data-type='example'] {
}
}
div[data-type='project'] {
margin: 12pt 0;
figure {
margin: 0;
}
}
span.highlight {
display: block;
padding-left: 12pt;

View file

@ -88,6 +88,7 @@
}
.comment {
page-break-inside: avoid;
flex-grow: 1;
display: flex;
justify-content: flex-end;

View file

@ -47,6 +47,6 @@ table {
pre {
background: $color-gray-100;
border-radius: $rounded-radius-sm;
padding: 8pt;
padding: 4pt 8pt;
}
}