forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes flutter#2974
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Overrides for printing so only page content is printed | ||
@media print { | ||
// Ignore navigation elements and other non-necessary interactive ones | ||
.site-header, .subnav, .site-footer, .site-sidebar, .navbar, | ||
#site-toc--side, #page-github-links, #cookie-notice, .site-banner, | ||
.code-excerpt__copy-btn, .breadcrumb { | ||
display: none !important; | ||
} | ||
|
||
// Make sure content fills up 100% of width | ||
.site-content { | ||
max-width: 100% !important; | ||
margin-left: 0; | ||
padding-left: 0; | ||
border: none; | ||
flex: 1; | ||
} | ||
|
||
// Remove DartPad iframes since they are not functional | ||
.code-excerpt iframe { | ||
display: none; | ||
} | ||
|
||
// Display underlines under links | ||
a { | ||
text-decoration: underline; | ||
} | ||
|
||
// Remove external link icon and link path | ||
a:after { | ||
content: none !important; | ||
} | ||
|
||
// Show borders around notes and code blocks | ||
.alert, pre { | ||
border: 1px solid black; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -53,3 +53,4 @@ | |
|
||
// -- Overrides | ||
@import 'base/site_overrides'; | ||
@import 'base/print_overrides'; |