1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Improve printing of code blocks

- Hide clipboard icon
 - Wrap code and hide the scrollbar
This commit is contained in:
Jonas Fonseca 2017-10-15 21:54:59 -04:00 committed by Martin Donath
parent 7ca03c017d
commit 2e728cc9f6
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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;