Compare commits

..

3 Commits

Author SHA1 Message Date
f4e0bed9cd Avoid line breaking inside figures
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:43:13 -07:00
109ff6ce95 Expand sidenotes inline in print
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:42:47 -07:00
99247db83d Disable margin content in print
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:41:36 -07:00
3 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,10 @@
2 * ($margin-width + $margin-inner-offset + $margin-outer-offset)) { 2 * ($margin-width + $margin-inner-offset + $margin-outer-offset)) {
@content; @content;
} }
@media print {
@content;
}
} }
@mixin below-one-margin { @mixin below-one-margin {
@ -15,6 +19,10 @@
($margin-width + $margin-inner-offset + $margin-outer-offset)) { ($margin-width + $margin-inner-offset + $margin-outer-offset)) {
@content; @content;
} }
@media print {
@content;
}
} }
@mixin margin-content { @mixin margin-content {

View File

@ -55,6 +55,10 @@
.sidenote-checkbox:checked ~ & { .sidenote-checkbox:checked ~ & {
display: block; display: block;
} }
@media print {
display: block;
}
} }
@include below-two-margins { @include below-two-margins {

View File

@ -252,6 +252,8 @@ ul.post-list {
} }
figure { figure {
break-inside: avoid;
img { img {
border: $standard-border; border: $standard-border;
border-radius: 0.5rem; border-radius: 0.5rem;