Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Guide and API Docs print-friendly #24

Open
sorcamarian opened this issue Aug 7, 2016 · 1 comment
Open

Make Guide and API Docs print-friendly #24

sorcamarian opened this issue Aug 7, 2016 · 1 comment

Comments

@sorcamarian
Copy link

sorcamarian commented Aug 7, 2016

Currently, this is how these sections(Guide and API Docs) appear in Chrome(v52) print-mode(ctrl + p):

image

I suggest the use of CSS ``@media print` rule in order to:

  • hide the navigation and sidebar sections
  • remove the left margin from the content section

In code:

@media print {
  .sidebar,
  .nav { 
    display: none; 
  }
  .content {
    margin: 0;
  }
}

After the CSS codes were added:

image

Commit NOTE:
Because LESS is used, I have split the codes and added them in the appropriate files.

@abernix
Copy link
Contributor

abernix commented Sep 15, 2016

@sorcamarian Could you open a PR for this? It appears you made the commit on your own branch but never opened the actual PR. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants