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:
committed by
Martin Donath
parent
7ca03c017d
commit
2e728cc9f6
@@ -166,6 +166,11 @@ kbd {
|
|||||||
background-color: $md-code-background;
|
background-color: $md-code-background;
|
||||||
color: $md-code-color;
|
color: $md-code-color;
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
|
|
||||||
|
// Wrap text and hide scollbars
|
||||||
|
@media print {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inline code blocks, correct relative ems for smaller font size
|
// Inline code blocks, correct relative ems for smaller font size
|
||||||
|
|||||||
@@ -38,6 +38,11 @@
|
|||||||
// Hack: put everything on the GPU to omit flickering
|
// Hack: put everything on the GPU to omit flickering
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
|
|
||||||
|
// Hide for print
|
||||||
|
@media print {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
// Icon
|
// Icon
|
||||||
&::before {
|
&::before {
|
||||||
@extend %md-icon;
|
@extend %md-icon;
|
||||||
|
|||||||
Reference in New Issue
Block a user