Skip to content

Commit

Permalink
Merge pull request #638 from nature-of-code/bug-fix
Browse files Browse the repository at this point in the history
A few bugs' fix
  • Loading branch information
jasongao97 authored Jan 8, 2024
2 parents 656a62c + 4bedbda commit 83e4878
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion magicbook/stylesheets/components/callout.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions magicbook/stylesheets/components/codesplit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
}

.comment {
page-break-inside: avoid;
flex-grow: 1;
display: flex;
justify-content: flex-end;
Expand Down
2 changes: 1 addition & 1 deletion magicbook/stylesheets/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ table {
pre {
background: $color-gray-100;
border-radius: $rounded-radius-sm;
padding: 8pt;
padding: 4pt 8pt;
}
}

0 comments on commit 83e4878

Please sign in to comment.