Skip to content

Commit

Permalink
fix: print styles for blocks (#761)
Browse files Browse the repository at this point in the history
* fix: print styles for blocks

* fix: block print styles

* fix: print styles

* fix: removed unused class

* fix: removed style from all_pages

* fix: restored squaresImageTemplate listing variation name to avoid breaking
  • Loading branch information
sabrina-bongiovanni authored Sep 6, 2024
1 parent af375cd commit 131931e
Show file tree
Hide file tree
Showing 5 changed files with 668 additions and 8 deletions.
20 changes: 20 additions & 0 deletions src/theme/ItaliaTheme/Print/_all_pages.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
@media print {
@page {
margin: 0.2cm; /* 1 inch margin for all sides */
}

body {
display: block !important;
}

.public-ui {
h2 {
font-size: 1.5rem;
}
}

.public-ui {
// removed underlining from links
a {
Expand Down Expand Up @@ -223,6 +233,16 @@
box-shadow: none;
font-size: 1rem;
}

.callout {
page-break-inside: avoid;
.callout-inner {
// padding-top: 0px;
p {
margin-top: -2rem;
}
}
}
}

.draft-text-larger {
Expand Down
Loading

0 comments on commit 131931e

Please sign in to comment.