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

Commit 24a4450

Browse files
appsforartistsIgorMinar
authored andcommitted
docs(header): replace logo.png with logo.svg
The current logo looks awful on high-density displays. SVG is a better choice because it can scale to any resolution without increasing file size. Amending #2775 to add support for IE 8 by falling back to existing PNG with img.onerror Using relative URLs as directed by @btford and @petebacondarwin. (commit by Brenton Simpson - @appsforartists) Closes #2874
1 parent fad626f commit 24a4450

File tree

3 files changed

+60
-4
lines changed

3 files changed

+60
-4
lines changed
+41
Loading

docs/src/templates/css/docs.css

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* Logo */
2+
3+
.header .brand {
4+
padding-top: 6px;
5+
padding-bottom: 0px;
6+
}
7+
8+
.header .brand img {
9+
height: 25px;
10+
width: 92px;
11+
}
12+
13+
/* end: Logo */
14+
15+
116
/* this is here to avoid the display=block shuffling of ngShow */
217
.breadcrumb li > * {
318
float:left;
@@ -356,7 +371,7 @@ ul.events > li > h3 {
356371
opacity:1;
357372
}
358373

359-
.popover-incode code,
374+
.popover-incode code,
360375
.popover-incode pre {
361376
white-space:nowrap;
362377
}

docs/src/templates/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@
122122
<div class="navbar navbar-inverse navbar-fixed-top">
123123
<div class="navbar-inner">
124124
<div class="container">
125-
<a class="brand" href="http://angularjs.org" style="padding-top: 6px; padding-bottom: 0;">
126-
<img class="AngularJS-small" src="http://angularjs.org/img/AngularJS-small.png">
125+
<a class="brand" href="http://angularjs.org">
126+
<img class="logo" src="img/angularjs-for-header-only.svg">
127127
</a>
128128
<ul class="nav">
129129
<li class="divider-vertical"></li>
@@ -274,7 +274,7 @@ <h4>{{ key }}</h4>
274274
<a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
275275
</li>
276276
</ul>
277-
277+
278278
<ul class="nav nav-list well api-list-item" ng-repeat="module in modules track by module.url">
279279
<li class="nav-header module">
280280
<a class="guide" href="{{URL.module}}">module</a>

0 commit comments

Comments
 (0)