mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improve printing of code blocks
- Hide clipboard icon - Wrap code and hide the scrollbar
This commit is contained in:
parent
7ca03c017d
commit
2e728cc9f6
@ -166,6 +166,11 @@ kbd {
|
||||
background-color: $md-code-background;
|
||||
color: $md-code-color;
|
||||
font-size: 85%;
|
||||
|
||||
// Wrap text and hide scollbars
|
||||
@media print {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
// Inline code blocks, correct relative ems for smaller font size
|
||||
|
@ -38,6 +38,11 @@
|
||||
// Hack: put everything on the GPU to omit flickering
|
||||
backface-visibility: hidden;
|
||||
|
||||
// Hide for print
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Icon
|
||||
&::before {
|
||||
@extend %md-icon;
|
||||
|
Loading…
Reference in New Issue
Block a user