diff options
author | Scott Main <smain@google.com> | 2012-11-13 07:40:16 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2012-11-13 07:40:16 -0800 |
commit | bbffb4bfb48eb0adb7dc827594f41428f8ffcc19 (patch) | |
tree | 2b0f690739ba043d109b37b849a2f7add6214f22 /tools | |
parent | 705e8a4f6100486dbcf1530490e9761c1afa1a6e (diff) | |
download | build-bbffb4bfb48eb0adb7dc827594f41428f8ffcc19.zip build-bbffb4bfb48eb0adb7dc827594f41428f8ffcc19.tar.gz build-bbffb4bfb48eb0adb7dc827594f41428f8ffcc19.tar.bz2 |
docs: add support for templated tabs with the doc title
Change-Id: I820a2704d21c94a9a452854a46ea88749d8274d0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/droiddoc/templates-sdk/assets/css/default.css | 44 | ||||
-rw-r--r-- | tools/droiddoc/templates-sdk/docpage.cs | 12 |
2 files changed, 55 insertions, 1 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index db5bd01..65040f8 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -486,6 +486,50 @@ video.with-shadow { float:right; text-transform:uppercase; } + + + + /* inner-doc tabs w/ title */ + +div#title-tabs-wrapper { + border-bottom:1px solid #ccc; + margin:20px 0 30px; +} +h1.with-title-tabs { + display:inline-block; + margin:0 0 -1px 0; + padding:0 60px 0 0; + border-bottom:1px solid #F9F9F9; +} +ul#title-tabs { + list-style:none; + padding:0; + height:29px; + margin:0; + font-size:16px; + line-height:26px; + display:inline-block; + vertical-align:bottom; +} +ul#title-tabs li { + display:block; + float:left; + margin-right:40px; + border-bottom: 3px solid transparent; +} +ul#title-tabs li.selected { + border-bottom: 3px solid #93C; +} +ul#title-tabs li a { + color:#333; +} +ul#title-tabs li a:hover, +ul#title-tabs li a:visited, +ul#title-tabs li a:active { + color:#93C !important; +} + + /* content body */ @-webkit-keyframes glowheader { diff --git a/tools/droiddoc/templates-sdk/docpage.cs b/tools/droiddoc/templates-sdk/docpage.cs index 63abceb..3ea55fa 100644 --- a/tools/droiddoc/templates-sdk/docpage.cs +++ b/tools/droiddoc/templates-sdk/docpage.cs @@ -101,7 +101,17 @@ <?cs /if ?> </div> <?cs else ?> - <h1 itemprop="name"><?cs var:page.title ?></h1> + <?cs if:tab1 ?><div id="title-tabs-wrapper"> + <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs + if:tab1 ?><ul id="title-tabs"> + <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li> + <?cs if:tab2 ?> + <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?> + <?cs if:tab3 ?> + <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?> + </ul> + <?cs /if ?></div><!-- end tab-wrapper --> + <?cs /if ?> <?cs /if ?> <?cs /if ?> <?cs /if ?><?cs # end if design ?> |