Skip to content

Commit

Permalink
Hide sample request on print
Browse files Browse the repository at this point in the history
  • Loading branch information
shvelo committed Aug 30, 2016
1 parent cd4f9d1 commit 5445021
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apidoc-template-bs3",
"version": "0.1.1",
"version": "0.1.2",
"description": "Bootstrap 3 template for apiDoc",
"main": "template/index.html",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion template/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,10 @@ ul.nav-tabs {
margin: 10px 0 20px 0;
}

} /* /@media print */
}

@media print {
.hide-print {
display: none;
}
}
4 changes: 2 additions & 2 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ <h2>{{__ @key}}</h2>

<script id="template-article-sample-request" type="text/x-handlebars-template">
{{#if article.sampleRequest}}
<h2>{{__ "Send a Sample Request"}}</h2>
<form>
<h2 class="hide-print">{{__ "Send a Sample Request"}}</h2>
<form class="hide-print">
<fieldset>
<div class="form-group">
<div class="input-group">
Expand Down

0 comments on commit 5445021

Please sign in to comment.