am b83d8f15: am f5cbe002: Merge "docs: update template and css for android u Add a custom version of docpage.cs to the droiddoc template, because it adds a good deal of custom design and behavior (instead of updating the doclava version of the file). Add CSS for next/

* commit 'b83d8f15ccc276b190a6c02002f6af94aa2e9cb4':
  docs: update template and css for android u Add a custom version of docpage.cs to the droiddoc template, because it adds a good deal of custom design and behavior (instead of updating the doclava version of the file). Add CSS for next/previous links in android u lessons and revise style for download button.
This commit is contained in:
Scott Main 2011-12-01 20:42:55 -08:00 committed by Android Git Automerger
commit d34204b9ec
2 changed files with 203 additions and 35 deletions

View file

@ -1038,78 +1038,138 @@ padding:0 0 0 0em;
div#tb-wrapper {
float: right;
width:480px; /* +25px padding = 505 */
clear:right;
width:380px; /* +25px padding = 405 */
background-color:#fff;
margin:-48px 0 2px 0;
margin:0 0 2px 0;
padding:0 0 20px 25px;
}
div#tb {
margin:0;
padding:15px;
width:450px; /* +15px padding = 480 */
padding:0 15px;
width:350px; /* +15px padding = 380 */
font-size:.9em;
background:#e9e9e9;
border:1px solid #aaa;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
overflow:auto;
}
div#tb h2 {
font-size:1.3em;
font-weight:bold;
margin:12px 0 .25em 0;
padding:10px 0;
margin:1em 0;
padding:0;
background-color:transparent;
border:none;
clear:both;
}
div.download-box a.button {
color:#eee;
font-weight:bold;
color: #069;
font-size:1.1em;
font-weight:bold;
text-decoration:none;
height:40px;
line-height:40px;
padding:5px 10px;
border:2px solid #99be27;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
/* thanks http://www.colorzilla.com/gradient-editor/ */
background: #aed33c; /* Old browsers */
background: -moz-linear-gradient(top, #aed33c 20%, #a1c730 80%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#aed33c), color-stop(80%,#a1c730)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#AED33C', endColorstr='#A1C730',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #aed33c 20%,#a1c730 80%); /* W3C */
height:27px;
line-height:27px;
text-align:center;
padding:5px 8px;
background-color: #fff;
border: 1px solid #aaa;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
div.download-box a.button:hover {
border:2px solid #b2d841;
border-color: #09C;
background-color: #4CADCB;
background-image: -webkit-gradient(linear,left top,left bottom,from(#5dbcd9),to(#4cadcb));
background-image: -webkit-linear-gradient(top,#5dbcd9,#4cadcb);
background-image: -moz-linear-gradient(top,#5dbcd9,#4cadcb);
background-image: -ms-linear-gradient(top,#5dbcd9,#4cadcb);
background-image: -o-linear-gradient(top,#5dbcd9,#4cadcb);
background-image: linear-gradient(top,#5dbcd9,#4cadcb);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#5dbcd9',EndColorStr='#4cadcb');
color: #fff;
}
div.download-box a.button:active {
background: #a1c730; /* Old browsers */
background: -moz-linear-gradient(top, #a1c730 15%, #aed33c 70%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(15%,#a1c730), color-stop(70%,#aed33c)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a1c730', endColorstr='#aed33c',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #a1c730 15%,#aed33c 70%); /* W3C */
background-color: #1E799A;
background-image: none;
border-color: #30B7E6;
}
div.download-box p.filename {
font-size:0.8em;
font-size:0.85em;
color:#888;
margin:0 0 0 12px;
margin:4px 0 1em 10px;
}
/* End developer training bar */
/* Training nav bar (previous/next) */
div.training-nav-top {
float: right;
width:380px; /* +25px padding = 405 */
margin:-58px 0 0 0;
padding:0 0 20px 25px;
}
div.training-nav-bottom {
padding:1px; /* for weird FF bug (scrollbar appears) */
margin:3em 0;
overflow:auto;
}
div.training-nav-button-next a,
div.training-nav-button-previous a {
display:block;
width:160px;
height:55px;
padding:4px 7px;
border:1px solid #aaa;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
text-decoration:none;
font-weight:bold;
}
div.training-nav-button-next a:hover,
div.training-nav-button-previous a:hover {
border:1px solid #069; /* match link color */
}
div.training-nav-button-next a:active,
div.training-nav-button-previous a:active {
border:1px solid #f00; /* match link color */
}
div.training-nav-button-previous {
float:left;
text-align:left;
}
div.training-nav-button-next {
float:right;
text-align:right;
}
span.training-nav-button-title {
display:block;
font-size:.85em;
font-weight:normal;
line-height:1.3em;
margin:.5em 0 0;
}
/* End training nav bar */
/* BEGIN image and caption styles (originally for UI Guidelines docs) */
table.image-caption {

View file

@ -0,0 +1,108 @@
<?cs include:"doctype.cs" ?>
<?cs include:"macros.cs" ?>
<html>
<?cs include:"head_tag.cs" ?>
<body class="gc-documentation">
<?cs include:"header.cs" ?>
<div class="g-unit" id="doc-content"><a name="top"></a>
<div id="jd-header" class="guide-header">
<span class="crumb">
<?cs if:parent.link ?>
<a href="<?cs var:parent.link ?>"><?cs var:parent.title ?></a>:
<?cs else ?>&nbsp;
<?cs /if ?>
</span>
<h1><?cs var:page.title ?></h1>
</div>
<?cs # THIS IS THE MAIN DOC CONTENT ?>
<div id="jd-content">
<?cs if:trainingnavtop ?>
<div class="training-nav-top">
<?cs if:next.link ?>
<?cs if:startpage ?>
<div class="training-nav-button-next">
<a href="<?cs var:next.link ?>">
Get started
<span style="font-size:1.2em">&rsaquo;</span>
<span class="training-nav-button-title"><?cs var:next.title ?></span>
</a>
</div>
<?cs else ?><?cs # if not startpage ?>
<div class="training-nav-button-next">
<a href="<?cs var:next.link ?>">
Next lesson
<span style="font-size:1.2em">&rsaquo;</span>
<span class="training-nav-button-title"><?cs var:next.title ?></span>
</a>
</div>
<?cs /if ?><?cs # end if/else startpage ?>
<?cs /if ?><?cs # end if next.link ?>
<?cs if:previous.link ?>
<div class="training-nav-button-previous">
<a href="<?cs var:previous.link ?>">
<span style="font-size:1.2em">&lsaquo;</span>
Previous lesson
<span class="training-nav-button-title"><?cs var:previous.title ?></span>
</a>
</div>
<?cs /if ?><?cs # end if previous.link ?>
</div><!-- end training-nav-top -->
<?cs /if ?><?cs # end if trainingnavtop ?>
<div class="jd-descr">
<?cs call:tag_list(root.descr) ?>
</div>
<?cs if:!startpage && (previous.link || next.link) ?>
<div class="training-nav-bottom">
<?cs if:next.link ?>
<div class="training-nav-button-next">
<a href="<?cs var:next.link ?>">
Next lesson
<span style="font-size:1.2em">&rsaquo;</span>
<br/><span class="training-nav-button-title"><?cs var:next.title ?></span>
</a>
</div>
<?cs /if ?>
<?cs if:previous.link ?>
<div class="training-nav-button-previous">
<a href="<?cs var:previous.link ?>">
<span style="font-size:1.2em">&lsaquo;</span>
Previous lesson
<br/><span class="training-nav-button-title"><?cs var:previous.title ?></span>
</a>
</div>
<?cs /if ?>
</div> <!-- end training-nav -->
<?cs /if ?>
<a href="#top" style="float:right">&uarr; Go to top</a>
<?cs if:parent.link ?>
<p><a href="<?cs var:parent.link ?>">&larr; Back to <?cs var:parent.title ?></a></p>
<?cs /if ?>
</div> <!-- end jd-content -->
<?cs include:"footer.cs" ?>
</div><!-- end doc-content -->
<?cs include:"trailer.cs" ?>
</body>
</html>