Browse Source

feat: print-optimized css

pull/107/head
NGPixel 7 years ago
parent
commit
7ad5217390
2 changed files with 42 additions and 0 deletions
  1. 2
      client/scss/app.scss
  2. 40
      client/scss/base/print.scss

2
client/scss/app.scss

@ -38,3 +38,5 @@ $primary: 'indigo';
@import 'layout/_loader';
@import 'pages/_welcome';
@import 'base/print';

40
client/scss/base/print.scss

@ -0,0 +1,40 @@
@media print {
#header-container,
#alerts,
.sidebar,
.footer {
display: none;
}
#root {
padding-top: 0;
padding-bottom: 0;
}
body, main, .hero {
background: #FFF;
border: none;
}
.mkcontent {
color: mc('grey', '900');
h1, h2, h3 {
background: #FFF;
}
.toc-anchor {
display: none;
}
pre {
background-color: #FFF;
border-left: none;
padding-left: 20px;
> code {
color: mc('grey', '800');
}
}
}
@import 'node_modules/highlight.js/styles/atom-one-light';
}
Loading…
Cancel
Save