Skip to content

Commit

Permalink
Hide Fork me banner on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Mar 2, 2015
1 parent 85fd6d0 commit 708d440
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_themes/kr_small/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
{% block relbar2 %}
{% if theme_github_fork %}

<a href="http://github.com/sloria/webargs"><img style="position: fixed; top: 0; right: 0; border: 0;"
<a href="http://github.com/sloria/webargs" class="github">
<img style="position: fixed; top: 0; right: 0; border: 0;"
src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>

{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions docs/_themes/kr_small/static/flasky.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,9 @@ tt.xref, a tt {
a:hover tt {
background: #EEE;
}

@media screen and (max-width: 870px) {
.github {
display: none;
}
}

0 comments on commit 708d440

Please sign in to comment.