Browse files

Add retina logo.

  • Loading branch information...
1 parent 395b5d9 commit ad40a4b846e3e81b95f75b96beeec0f52f122343 @philippbosch committed Jul 25, 2011
Showing with 24 additions and 2 deletions.
  1. BIN images/logo-retina.png
  2. +22 −1 sass/mobile.scss
  3. +2 −1 stylesheets/mobile.css
View
BIN images/logo-retina.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
23 sass/mobile.scss
@@ -42,4 +42,25 @@ footer {
#github-ribbon {
display: none;
-}
+}
+
+
+@media
+ only screen and (-webkit-min-device-pixel-ratio: 2),
+ only screen and (min-device-pixel-ratio: 2) {
+
+ #header {
+ h1 {
+ width: 193px;
+ height: 134px;
+ display: block;
+ margin: 0 auto;
+ background: image-url("logo-retina.png");
+ background-size: 100%;
+
+ img {
+ display: none;
+ }
+ }
+ }
+}
View
3 stylesheets/mobile.css
@@ -1 +1,2 @@
-body{padding:24px 16px;padding-top:0}#header{width:100%}#header h1{height:135px;display:inline;float:none}#header p{margin-top:24px;margin-bottom:16px;text-align:center}.group{width:100%;padding:0;display:inline;float:none}.features li .title{padding-top:0.5em;padding-bottom:0.5em}footer{margin-left:-16px;margin-right:-16px}#github-ribbon{display:none}
+body{padding:24px 16px;padding-top:0}#header{width:100%}#header h1{height:135px;display:inline;float:none}#header p{margin-top:24px;margin-bottom:16px;text-align:center}.group{width:100%;padding:0;display:inline;float:none}.features li .title{padding-top:0.5em;padding-bottom:0.5em}footer{margin-left:-16px;margin-right:-16px}#github-ribbon{display:none}@media only screen and (-webkit-min-device-pixel-ratio: 2),
+ only screen and (min-device-pixel-ratio: 2){#header h1{width:193px;height:134px;display:block;margin:0 auto;background:url('/images/logo-retina.png?1311583587');background-size:100%}#header h1 img{display:none}}

0 comments on commit ad40a4b

Please sign in to comment.