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/previous link
* commit 'f5cbe0024328f6d716dc13b8a836f058c9c74c64': 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:
commit
b83d8f15cc
2 changed files with 203 additions and 35 deletions
|
@ -1038,78 +1038,138 @@ padding:0 0 0 0em;
|
||||||
|
|
||||||
div#tb-wrapper {
|
div#tb-wrapper {
|
||||||
float: right;
|
float: right;
|
||||||
width:480px; /* +25px padding = 505 */
|
clear:right;
|
||||||
|
width:380px; /* +25px padding = 405 */
|
||||||
background-color:#fff;
|
background-color:#fff;
|
||||||
margin:-48px 0 2px 0;
|
margin:0 0 2px 0;
|
||||||
padding:0 0 20px 25px;
|
padding:0 0 20px 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#tb {
|
div#tb {
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:15px;
|
padding:0 15px;
|
||||||
width:450px; /* +15px padding = 480 */
|
width:350px; /* +15px padding = 380 */
|
||||||
font-size:.9em;
|
font-size:.9em;
|
||||||
background:#e9e9e9;
|
background:#e9e9e9;
|
||||||
|
border:1px solid #aaa;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
-moz-border-radius:5px;
|
-moz-border-radius:5px;
|
||||||
-webkit-border-radius:5px;
|
-webkit-border-radius:5px;
|
||||||
|
overflow:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#tb h2 {
|
div#tb h2 {
|
||||||
font-size:1.3em;
|
font-size:1.3em;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
margin:12px 0 .25em 0;
|
margin:1em 0;
|
||||||
padding:10px 0;
|
padding:0;
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
border:none;
|
border:none;
|
||||||
|
clear:both;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.download-box a.button {
|
div.download-box a.button {
|
||||||
color:#eee;
|
color: #069;
|
||||||
font-weight:bold;
|
|
||||||
font-size:1.1em;
|
font-size:1.1em;
|
||||||
|
font-weight:bold;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
height:40px;
|
height:27px;
|
||||||
line-height:40px;
|
line-height:27px;
|
||||||
padding:5px 10px;
|
text-align:center;
|
||||||
border:2px solid #99be27;
|
padding:5px 8px;
|
||||||
border-radius:5px;
|
background-color: #fff;
|
||||||
-moz-border-radius:5px;
|
border: 1px solid #aaa;
|
||||||
-webkit-border-radius:5px;
|
-webkit-border-radius: 2px;
|
||||||
/* thanks http://www.colorzilla.com/gradient-editor/ */
|
-moz-border-radius: 2px;
|
||||||
background: #aed33c; /* Old browsers */
|
border-radius: 2px;
|
||||||
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 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.download-box a.button:hover {
|
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 {
|
div.download-box a.button:active {
|
||||||
background: #a1c730; /* Old browsers */
|
background-color: #1E799A;
|
||||||
background: -moz-linear-gradient(top, #a1c730 15%, #aed33c 70%); /* FF3.6+ */
|
background-image: none;
|
||||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(15%,#a1c730), color-stop(70%,#aed33c)); /* Chrome,Safari4+ */
|
border-color: #30B7E6;
|
||||||
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 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.download-box p.filename {
|
div.download-box p.filename {
|
||||||
font-size:0.8em;
|
font-size:0.85em;
|
||||||
color:#888;
|
color:#888;
|
||||||
margin:0 0 0 12px;
|
margin:4px 0 1em 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End developer training bar */
|
/* 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) */
|
/* BEGIN image and caption styles (originally for UI Guidelines docs) */
|
||||||
|
|
||||||
table.image-caption {
|
table.image-caption {
|
||||||
|
|
108
tools/droiddoc/templates-sdk/docpage.cs
Normal file
108
tools/droiddoc/templates-sdk/docpage.cs
Normal 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 ?>
|
||||||
|
<?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">›</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">›</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">‹</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">›</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">‹</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">↑ Go to top</a>
|
||||||
|
<?cs if:parent.link ?>
|
||||||
|
<p><a href="<?cs var:parent.link ?>">← 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>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue