Skip to content

Instantly share code, notes, and snippets.

@hgoebl
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgoebl/18fea8015d52f7fc85b7 to your computer and use it in GitHub Desktop.
Save hgoebl/18fea8015d52f7fc85b7 to your computer and use it in GitHub Desktop.
AngularJS Guide CSS for print

Obviously printing out the interactive AngularJS Guide is not a really good idea, I admit. But for whatever reason I like to study the guide with my text-marker while sitting in the garden.

I only added the following CSS to the file <angular.js-root>/docs/app/assets/css/docs.css.

After building (grunt, gulp) the files get served by node-static (because I always use this as ad-hoc web-server, even if grunt delivers the page through grunt server).

@media print {
header,
footer,
.main-grid .grid-left,
a.improve-docs {
display: none !important;
}
.main-body-grid {
margin-top: 0;
font-size: 120%;
}
.main-grid > .grid-right {
margin-bottom: 0;
margin-left: 0;
}
#wrapper {
padding-bottom: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment