From 6040ffa1e8311278c9ef72a0c52ec4e048eb5006 Mon Sep 17 00:00:00 2001 From: "smain@google.com" Date: Fri, 13 Jun 2014 15:06:23 -0700 Subject: [PATCH] add About secondary nav bar and delete the Wear custom header Change-Id: If7ac93556586d369a2dbf7e1fc4044473ace7bc9 --- .../templates-sdk/assets/css/default.css | 3 + .../droiddoc/templates-sdk/assets/js/docs.js | 12 +++ .../templates-sdk/components/masthead.cs | 74 ++++++------------- tools/droiddoc/templates-sdk/docpage.cs | 2 +- 4 files changed, 40 insertions(+), 51 deletions(-) diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index 0a5174cf85..9bfe3d5107 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -1526,6 +1526,9 @@ Header, Login, Nav-X, Search color: #333; font-size: 16px; } +.about a.selected { + color: #9933CC; +} .design a.selected { color: #33b5e5; } diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index ffd9eef34d..4b5dee2c01 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -173,6 +173,18 @@ $(document).ready(function() { $("#header li.design a").addClass("selected"); $("#sticky-header").addClass("design"); + // highlight About tabs + } else if ($("body").hasClass("about")) { + var rootDir = pagePathOriginal.substring(1,pagePathOriginal.indexOf('/', 1)); + if (rootDir == "about") { + $("#nav-x li.about a").addClass("selected"); + } else if (rootDir == "wear") { + $("#nav-x li.wear a").addClass("selected"); + } else if (rootDir == "tv") { + $("#nav-x li.tv a").addClass("selected"); + } else if (rootDir == "auto") { + $("#nav-x li.auto a").addClass("selected"); + } // highlight Develop tab } else if ($("body").hasClass("develop") || $("body").hasClass("google")) { $("#header li.develop a").addClass("selected"); diff --git a/tools/droiddoc/templates-sdk/components/masthead.cs b/tools/droiddoc/templates-sdk/components/masthead.cs index d0ff64d054..908ed2546f 100644 --- a/tools/droiddoc/templates-sdk/components/masthead.cs +++ b/tools/droiddoc/templates-sdk/components/masthead.cs @@ -1,7 +1,4 @@ - - - @@ -126,7 +123,27 @@ - + + + + + + + + - + @@ -202,6 +219,7 @@ Developer Console + - - - - - - - -
- - - - -
- - - - diff --git a/tools/droiddoc/templates-sdk/docpage.cs b/tools/droiddoc/templates-sdk/docpage.cs index 3c99f16689..f6e1caccc2 100644 --- a/tools/droiddoc/templates-sdk/docpage.cs +++ b/tools/droiddoc/templates-sdk/docpage.cs @@ -18,7 +18,7 @@ if:(google || reference.gms || reference.gcm) ?>google monetize disttools storiesaboutaboutdesign trainingcourse