Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Remove GitHub ribbon when screen < 450px
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Apr 6, 2012
1 parent 004da80 commit 96bbb0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions css/styles.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ html[os="iPhone/iPod"] #game #player-cards .card, html[os="iPhone/iPod"] #game #
height: 337.333333px; } height: 337.333333px; }
#game .card .icons { #game .card .icons {
display: none; } } display: none; } }
@media screen and (max-width: 450px) {
#github-ribbon {
display: none; } }
@media screen and (max-width: 480px) and (max-height: 320px) { @media screen and (max-width: 480px) and (max-height: 320px) {
#game h1 { #game h1 {
margin: 2% auto 0 auto; } margin: 2% auto 0 auto; }
Expand Down
3 changes: 3 additions & 0 deletions css/styles.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ html[os="iPhone/iPod"] {
} }
} }
} }
@media screen and (max-width: 450px) {
#github-ribbon { display: none; }
}
@media screen and (max-width: 480px) and (max-height: 320px){ @media screen and (max-width: 480px) and (max-height: 320px){
#game { #game {
h1 { h1 {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head> </head>
<body> <body>
<a href="https://github.com/heliom/bytesjack"><img style="z-index: 1; position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> <a id="github-ribbon" href="https://github.com/heliom/bytesjack"><img style="z-index: 1; position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<div id="game"> <div id="game">
<h1>BytesJack</h1> <h1>BytesJack</h1>
<div id="dealer-cards"> <div id="dealer-cards">
Expand Down

0 comments on commit 96bbb0b

Please sign in to comment.