diff options
author | Scott Main <smain@google.com> | 2012-08-08 12:48:58 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-08 12:48:58 -0700 |
commit | c8b7dfb1e308d7dbe426724d21b932b8b79d9ab5 (patch) | |
tree | 084f28f5ec47129b0bc5c0c6a5185153ae8b960d /tools | |
parent | fe9a455a24a863eaf96520b761ea284cc3cd15ee (diff) | |
parent | 0e71cee2bbe5aac3a5e502936cac46b830af0067 (diff) | |
download | build-c8b7dfb1e308d7dbe426724d21b932b8b79d9ab5.zip build-c8b7dfb1e308d7dbe426724d21b932b8b79d9ab5.tar.gz build-c8b7dfb1e308d7dbe426724d21b932b8b79d9ab5.tar.bz2 |
am 0e71cee2: docs: make landing pages w/o image span the full page width
* commit '0e71cee2bbe5aac3a5e502936cac46b830af0067':
docs: make landing pages w/o image span the full page width
Diffstat (limited to 'tools')
-rw-r--r-- | tools/droiddoc/templates-sdk/assets/css/default.css | 13 | ||||
-rw-r--r-- | tools/droiddoc/templates-sdk/docpage.cs | 6 |
2 files changed, 12 insertions, 7 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index 12f7e66..4e27c49 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -4026,21 +4026,24 @@ a.download-sdk { .landing-docs { margin:20px 0 0; } -.landing-banner { - height:280px; -} .landing-banner .col-6:first-child, -.landing-docs .col-6:first-child { +.landing-docs .col-6:first-child, +.landing-docs .col-12 { margin-left:0; + min-height:280px; } .landing-banner .col-6:last-child, -.landing-docs .col-6:last-child { +.landing-docs .col-6:last-child, +.landing-docs .col-12 { margin-right:0; } .landing-banner h1 { margin-top:0; } +.landing-docs { + clear:left; +} .landing-docs h3 { font-size:14px; line-height:21px; diff --git a/tools/droiddoc/templates-sdk/docpage.cs b/tools/droiddoc/templates-sdk/docpage.cs index 963e9cf..3f9c01a 100644 --- a/tools/droiddoc/templates-sdk/docpage.cs +++ b/tools/droiddoc/templates-sdk/docpage.cs @@ -44,17 +44,19 @@ <?cs if:(!fullpage && !header.hide) ?> <?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?> <div class="landing-banner"> + <?cs if:page.landing.image ?><?cs # use two-column layout only if there's an image ?> <div class="col-6"> - <?cs if:page.landing.image ?> <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" /> - <?cs /if ?> </div> <div class="col-6"> + <?cs /if ?> <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> <p itemprop="description"><?cs var:page.landing.intro ?></p> <p><a class="next-page-link topic-start-link"></a></p> + <?cs if:page.landing.image ?> </div> + <?cs /if ?> </div> <?cs else ?> <h1 itemprop="name"><?cs var:page.title ?></h1> |