-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following improves the ability to print documentation themed with Furo. This includes hiding various elements (such as the mobile bar) that are not useful in printed media, as well as deals with color scheming issues for browsers who do not default to light scheme in a print media state. Signed-off-by: James Knight <james.d.knight@live.com>
- Loading branch information
Showing
5 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "print" | ||
@import "screen-readers" | ||
@import "theme" | ||
@import "typography" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// This file contains styles for managing print media. | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// Hide elements not relevant to print media. | ||
//////////////////////////////////////////////////////////////////////////////// | ||
@media print | ||
// Hide icon container. | ||
.content-icon-container | ||
display: none !important | ||
|
||
// Hide showing header links if hovering over when printing. | ||
.headerlink | ||
display: none !important | ||
|
||
// Hide mobile header. | ||
.mobile-header | ||
display: none !important | ||
|
||
// Hide navigation links. | ||
.related-pages | ||
display: none !important | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Tweaks related to decolorization. | ||
//////////////////////////////////////////////////////////////////////////////// | ||
@media print | ||
// Apply a border around code which no longer have a color background. | ||
.highlight | ||
border: 0.1pt solid var(--color-foreground-border) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters