Skip to content

Commit 711b1ba

Browse files
committed
Don't scale logo
Looks horrible in some browsers. Use media queries for proper retina support instead.
1 parent f8b3323 commit 711b1ba

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

layouts/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="header-wrapper">
22
<div id="header">
33
<div>
4-
<a class="logo" href="/"><img src="/images/logo_developer.png" height="27" alt="GitHub:Developer" /></a>
4+
<a class="logo" href="/">GitHub:Developer</a>
55
<ul class="nav">
66
<li><a href="/" class="nav-overview">Overview</a></li>
77
<li><a href="/v3/" class="nav-api">API</a></li>

static/images/logo_developer.png

-11.9 KB
Loading
5.6 KB
Loading

static/shared/css/documentation.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ a img {
238238
float: left;
239239
margin-top: 17px;
240240
display: inline-block;
241+
width: 186px;
242+
height: 27px;
243+
background: url(/images/logo_developer.png) 0 0 no-repeat;
244+
text-indent: -999em;
241245
}
242246

243247
#header .nav {
@@ -1219,6 +1223,11 @@ li.api-status img {
12191223

12201224
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
12211225

1226+
#header .logo {
1227+
background-image: url(/images/logo_developer@2x.png);
1228+
background-size: 186px 27px;
1229+
}
1230+
12221231
.api-status .unknown {
12231232
background-image: url(/images/status-icon-unknown@2x.png);
12241233
background-size: 32px 32px;

0 commit comments

Comments
 (0)