Added basic print support in the stylesheet. Forced background color for code blocks in chrome, has to be tested in firefox and others. #41

This commit is contained in:
Mathieu David 2015-09-05 00:06:14 +02:00
parent 9e2a62f371
commit 7527975b41
1 changed files with 201 additions and 173 deletions

View File

@ -3,7 +3,7 @@ html, body {
color: #333;
}
@media only screen {
.sidebar {
position: absolute;
left: 0;
@ -210,6 +210,7 @@ html, body {
.next {
right: 0;
}
}
@media only screen and (max-width: 1060px) {
@ -258,3 +259,30 @@ html, body {
float: left;
}
}
@media only print {
.sidebar, .menu-bar, .nav-chapters, .mobile-nav-chapters {
display: none;
}
.page-wrapper {
left: 0;
}
.content {
max-width: 100%;
}
code {
background-color: #666666;
border-radius: 5px;
/* Force background to be printed in Chrome */
-webkit-print-color-adjust: exact;
}
a, a:visited, a:active, a:hover {
color: #4183c4;
text-decoration: none;
}
}