diff options
| author | Brenton | 2013-07-15 16:00:51 -0700 | 
|---|---|---|
| committer | Igor Minar | 2013-07-31 11:48:13 -0700 | 
| commit | 24a4450f2b4bcc5b616fae34b6815252896d1756 (patch) | |
| tree | 4863ba63455b2d5d8dcf3887a133b264f4e9a608 /docs | |
| parent | fad626f3047cd4ff31fe7a4181ca63f275adbae6 (diff) | |
| download | angular.js-24a4450f2b4bcc5b616fae34b6815252896d1756.tar.bz2 | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/img/angularjs-for-header-only.svg | 41 | ||||
| -rw-r--r-- | docs/src/templates/css/docs.css | 17 | ||||
| -rw-r--r-- | docs/src/templates/index.html | 6 | 
3 files changed, 60 insertions, 4 deletions
| diff --git a/docs/img/angularjs-for-header-only.svg b/docs/img/angularjs-for-header-only.svg new file mode 100644 index 00000000..58a6cc19 --- /dev/null +++ b/docs/img/angularjs-for-header-only.svg @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?>
 +<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In  -->
 +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
 +	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
 +]>
 +<svg version="1.1"
 +	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
 +	 x="0px" y="0px" width="687px" height="176px" viewBox="0 0 687 176" overflow="visible" enable-background="new 0 0 687 176"
 +	 xml:space="preserve">
 +<defs>
 +</defs>
 +<path fill="#FFFFFF" d="M179.011,125.328V54.527h9.158l43.322,57.035V54.527h8.666v70.801h-9.158l-43.326-57.536v57.536H179.011z
 +	 M179.011,125.328"/>
 +<path fill="#FFFFFF" d="M310.46,122.554c-5.708,2.182-11.864,3.269-18.467,3.269c-25.644,0-38.469-12.294-38.469-36.887
 +	c0-23.27,12.378-34.908,37.134-34.908c7.096,0,13.7,0.994,19.802,2.976v7.921c-6.103-2.311-12.378-3.468-18.813-3.468
 +	c-19.306,0-28.96,9.162-28.96,27.479c0,19.639,9.504,29.463,28.517,29.463c3.034,0,6.404-0.396,10.103-1.193V93.145h9.154V122.554z
 +	 M310.46,122.554"/>
 +<path fill="#FFFFFF" d="M325.067,97.996V54.523h9.154v43.473c0,13.598,6.768,20.4,20.303,20.4c13.531,0,20.301-6.803,20.301-20.4
 +	V54.523h9.158v43.473c0,18.556-9.82,27.825-29.459,27.825C334.886,125.821,325.067,116.552,325.067,97.996L325.067,97.996z
 +	 M325.067,97.996"/>
 +<path fill="#FFFFFF" d="M409.48,54.523v63.376h37.037v7.425h-46.191V54.523H409.48z M409.48,54.523"/>
 +<path fill="#FFFFFF" d="M459.736,125.327h-9.504l35.201-80.146l35.199,80.146h-10.15l-9.158-22.282h-23.418l2.527-7.424h17.82
 +	l-13.217-32.088L459.736,125.327z M459.736,125.327"/>
 +<path fill="#FFFFFF" d="M530.289,125.328V54.527h30.203c13.469,0,20.197,5.659,20.197,16.982c0,9.207-6.578,16.028-19.75,20.445
 +	l24.309,33.374h-12.086l-22.521-31.835v-5.992c13.531-2.151,20.301-7.344,20.301-15.598c0-6.533-3.766-9.801-11.293-9.801h-20.201
 +	v63.226H530.289z M530.289,125.328"/>
 +<path fill="#B52E31" d="M619.561,54.523v50.405c0,13.603-8.006,20.396-24.016,20.396V117.9c9.902,0,14.857-4.329,14.857-12.973
 +	V54.523H619.561z M619.561,54.523"/>
 +<path fill="#B52E31" d="M635.896,122.849v-8.418c7.428,2.639,15.447,3.965,24.064,3.965c12.178,0,18.271-4.457,18.271-13.372
 +	c0-7.584-4.492-11.385-13.469-11.385h-9.113c-14.818,0-22.234-6.435-22.234-19.31c0-13.531,9.492-20.303,28.479-20.303
 +	c8.25,0,15.922,0.998,23.021,2.976v8.418c-7.1-2.644-14.771-3.965-23.021-3.965c-12.875,0-19.311,4.293-19.311,12.875
 +	c0,7.588,4.352,11.385,13.066,11.385h9.113c15.08,0,22.627,6.439,22.627,19.31c0,13.864-9.141,20.796-27.43,20.796
 +	C651.344,125.819,643.324,124.826,635.896,122.849L635.896,122.849z M635.896,122.849"/>
 +<path fill="#B2B2B2" d="M82.688,0L0,29.1l13.066,108.335l69.71,38.314l70.069-38.834l13.062-108.331L82.688,0z M82.688,0"/>
 +<path fill="#B52E31" d="M157.66,34.846L82.496,9.214v157.381l62.991-34.861L157.66,34.846z M157.66,34.846"/>
 +<path fill="#E23237" d="M9.279,35.308l11.196,96.889l62.019,34.398V9.211L9.279,35.308z M9.279,35.308"/>
 +<path fill="#F2F2F2" d="M99.918,87.493L82.632,51.396L67.415,87.493H99.918z M106.508,102.672h-45.82l-10.251,25.64l-19.067,0.352
 +	L82.496,14.929l52.908,113.734h-17.673L106.508,102.672z M106.508,102.672"/>
 +<path fill="#B2B2B2" d="M82.496,14.929l0.136,36.467l17.268,36.125H82.534l-0.039,15.127l24.012,0.023l11.223,25.996l18.245,0.339
 +	L82.496,14.929z M82.496,14.929"/>
 +</svg>
 diff --git a/docs/src/templates/css/docs.css b/docs/src/templates/css/docs.css index 9a4ccfb0..354bb918 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -1,3 +1,18 @@ +/* Logo */ + +.header .brand { +  padding-top: 6px; +  padding-bottom: 0px; +} + +.header .brand img { +  height: 25px; +  width: 92px; +} + +/* end: Logo */ + +  /* this is here to avoid the display=block shuffling of ngShow */  .breadcrumb li > * {    float:left; @@ -356,7 +371,7 @@ ul.events > li > h3 {    opacity:1;  } -.popover-incode code,  +.popover-incode code,  .popover-incode pre {    white-space:nowrap;  } diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 3f3e83c8..2cfd6c9d 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -122,8 +122,8 @@      <div class="navbar navbar-inverse navbar-fixed-top">        <div class="navbar-inner">          <div class="container"> -          <a class="brand" href="http://angularjs.org" style="padding-top: 6px; padding-bottom: 0;"> -            <img class="AngularJS-small" src="http://angularjs.org/img/AngularJS-small.png"> +          <a class="brand" href="http://angularjs.org"> +            <img class="logo" src="img/angularjs-for-header-only.svg">            </a>            <ul class="nav">              <li class="divider-vertical"></li> @@ -274,7 +274,7 @@                  <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>                </li>              </ul> -             +              <ul class="nav nav-list well api-list-item" ng-repeat="module in modules track by module.url">                <li class="nav-header module">                  <a class="guide" href="{{URL.module}}">module</a> | 
