@@ -1655,4 +1655,60 @@ div.observablehq table thead tr th {
16551655
16561656input , button , select , optgroup , textarea {
16571657 background-color : var (--bs-body-bg );
1658+ }
1659+
1660+ // change .column-screen-* to behave like .column-page (which hugs the body margins)
1661+ // cf https://github.com/quarto-dev/quarto-cli/issues/1824#issuecomment-1216018434
1662+ @media print {
1663+ .page-columns .column-screen-inset {
1664+ grid-column : page- start- inset / page- end- inset;
1665+ z-index : $zindex-pagelayout ;
1666+ transform : translate3d (0 , 0 , 0 );
1667+ @include column-spanning-element ();
1668+ }
1669+
1670+ .page-columns .column-screen-inset-left {
1671+ grid-column : page- start- inset / body- content- end;
1672+ z-index : $zindex-pagelayout ;
1673+ transform : translate3d (0 , 0 , 0 );
1674+ @include column-spanning-element ();
1675+ }
1676+
1677+ .page-columns .column-screen-inset-right {
1678+ grid-column : body- content- start / page- end- inset;
1679+ z-index : $zindex-pagelayout ;
1680+ transform : translate3d (0 , 0 , 0 );
1681+ @include column-spanning-element ();
1682+ }
1683+
1684+ .page-columns .column-screen {
1685+ grid-column : page- start / page- end;
1686+ z-index : $zindex-pagelayout ;
1687+ transform : translate3d (0 , 0 , 0 );
1688+ @include column-spanning-element ();
1689+ }
1690+
1691+ .page-columns .column-screen-left {
1692+ grid-column : page- start / body- content- end;
1693+ z-index : $zindex-pagelayout ;
1694+ transform : translate3d (0 , 0 , 0 );
1695+ @include column-spanning-element ();
1696+ }
1697+
1698+ .page-columns .column-screen-right {
1699+ grid-column : body- content- start / page- end;
1700+ z-index : $zindex-pagelayout ;
1701+ transform : translate3d (0 , 0 , 0 );
1702+ @include column-spanning-element ();
1703+ }
1704+
1705+ .page-columns .column-screen-inset-shaded {
1706+ grid-column : page- start- inset / page- end- inset;
1707+ padding : 1em ;
1708+ background : $light ;
1709+ z-index : $zindex-pagelayout ;
1710+ transform : translate3d (0 , 0 , 0 );
1711+ margin-bottom : 1em ;
1712+ }
1713+
16581714}
0 commit comments