Skip to content

Commit

Permalink
hide the banner when page width is smaller than 960px
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 9, 2013
1 parent e48a5e0 commit 6780d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/themes/dinky/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h4>contact</h4>
<section>
{{ content }}
</section>
<a href="https://github.com/supstat/vistat"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="banner"><a href="https://github.com/supstat/vistat"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a></div>

</div>
<!--[if !IE]><script>fixScale(document);</script><!--<![endif]-->
Expand Down
4 changes: 4 additions & 0 deletions assets/themes/dinky/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ ul.author {
margin:0;
}

div.banner {
display: none;
}

header, section, footer {
float:none;
position:static;
Expand Down

0 comments on commit 6780d7e

Please sign in to comment.