diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index f56fc9851d..db5bd01e8d 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -129,11 +129,14 @@ strong { em { font-style: italic; } -acronym { +acronym, +.tooltip-link { border-bottom: 1px dotted #555555; cursor: help; } -acronym:hover { +acronym:hover, +.tooltip-link:hover { + color: #7aa1b0; border-bottom-color: #7aa1b0; } img.with-shadow, @@ -938,9 +941,12 @@ dd { dd p { margin:10px 0 0; } -ul p, -ol p { - margin:5px 0 0; +li p, +li pre, +li ul, +li ol { + margin-top:5px; + margin-bottom:5px; } pre strong, pre b, a strong, a b, a code { color: inherit; @@ -1418,18 +1424,14 @@ Buttons color: #444; } a.button, a.button:visited, a.button-secondary, a.button-secondary:visited { - height: 28px; - line-height: 28px; margin-right: 16px; - font-weight: 400; + font-weight: 400; min-width: 54px; outline: 0; padding: 8px 15px; text-align: center; } .button, .button-secondary { - height: 34px; - line-height: 34px; margin-right: 16px; font-weight: 400; min-width: 54px; @@ -1455,6 +1457,9 @@ EndColorStr='#4cadcb',GradientType=0); background-image: none; border-color: #30b7e6; } +a.button.big.subtitle { + line-height:18px; +} .button-secondary:hover, a.button-secondary:hover { border-color: #dbdbdb; background-color: #f3f3f3; @@ -1469,7 +1474,7 @@ EndColorStr='#ececec'); color: #33B5E5 !important; } .button-secondary:active, a.button-secondary:active { - border-color: #dadada; + border-color: #dadada; background: #ebebeb; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: @@ -1510,12 +1515,20 @@ endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */ font-size:20px; display:inline-block; } +.button.big span.small { + font-size:14px; +} +.button-caption { + margin-top:10px; + font-size:12px; + font-style:italic; +} .button.disabled, .button.disabled:hover, .button.disabled:active { background:#ebebeb; - color:#999; + color:#999 !important; border-color:#999; cursor:default; } @@ -1832,15 +1845,54 @@ form .form-error input[type='text'], form .form-error textarea { border-color: #eff2f9; } */ + +/* SDK TOS styles */ + +div.sdk-terms { + white-space: pre-wrap; + word-wrap: break-word; + font-family: inherit; + font-size: inherit; + padding: 10px; + height: 370px; + width: 738px; + border: 1px solid #444; + background: transparent; + overflow:auto; + margin:0 0 10px; +} + +div.sdk-terms.fullsize { + padding: 0; + height: auto; + width: auto; + border:none; +} + +div.sdk-terms h3, +div.sdk-terms h2 { + margin:0; +} + +div#sdk-terms-form { + padding:0 0 0 10px; +} + +div#sdk-terms-form input#agree { + display:inline; + margin:4px 4px 4px 0; +} + + /* -------------------------------------------------------------------------- Code Style */ pre { - margin:0 0 1em 0; - padding: 1em; - overflow: auto; - border: solid 1px #ddd; - background: #f7f7f7; + margin:0 0 1em 0; + padding: 1em; + overflow: auto; + border: solid 1px #ddd; + background: #f7f7f7; } .str { color: #080; } .kwd { color: #008; } @@ -2332,6 +2384,29 @@ div.design-announce p { line-height:30px; } +.expandable { + height:34px; + padding-left:20px; + position:relative; +} +.expandable:before { + content: ''; + background-image: url(../images/styles/disclosure_down.png); + background-repeat:no-repeat; + background-position: -12px -9px; + width: 20px; + height: 20px; + display: inline-block; + position: absolute; + top: 0; + left: 0; } +} +.expandable.expanded:before { + background-image: url(../images/styles/disclosure_up.png); +} + + + /* ----------------------------------------------- Dialog box for popup messages */ diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index d18c4906e8..54e1fd4cd6 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -28,7 +28,7 @@ $(document).ready(function() { $('.scroll-pane').jScrollPane( {verticalGutter:0} ); // add HRs below all H2s (except for a few other h2 variants) - $('h2').not('#qv h2').not('#tb h2').not('.sidebox h2').not('#devdoc-nav h2').css({marginBottom:0}).after('
'); + $('h2').not('#qv h2').not('#tb h2').not('.sidebox h2').not('#devdoc-nav h2').not('h2.norule').css({marginBottom:0}).after('
'); // set search's onkeyup handler here so we can show suggestions // even while search results are visible @@ -384,11 +384,11 @@ false; // navigate across topic boundaries only in design docs // Set up tooltips var TOOLTIP_MARGIN = 10; - $('acronym').each(function() { + $('acronym,.tooltip-link').each(function() { var $target = $(this); var $tooltip = $('
') .addClass('tooltip-box') - .text($target.attr('title')) + .append($target.attr('title')) .hide() .appendTo('body'); $target.removeAttr('title'); @@ -1052,6 +1052,21 @@ function toggleContent(obj) { } +/* New version of expandable content */ +function toggleExpandable(link,id) { + if($(id).is(':visible')) { + $(id).slideUp(); + $(link).removeClass('expanded'); + } else { + $(id).slideDown(); + $(link).addClass('expanded'); + } +} + +function hideExpandable(ids) { + $(ids).slideUp(); +} + diff --git a/tools/droiddoc/templates-sdk/sdkpage.cs b/tools/droiddoc/templates-sdk/sdkpage.cs index 8de6668fdf..bbb94c0c20 100644 --- a/tools/droiddoc/templates-sdk/sdkpage.cs +++ b/tools/droiddoc/templates-sdk/sdkpage.cs @@ -76,7 +76,6 @@ # ?> - @@ -140,6 +139,49 @@
Platform
+ + + + + + + + + + + + + + + + + + + + + + + + +
PlatformPackageSizeMD5 Checksum
Windows + + bytes
Mac OS X (intel) + + bytes
Linux 32/64-bit (x86) + + bytes
+ + +

SDK Tools Only

@@ -150,7 +192,7 @@ @@ -159,7 +201,7 @@ @@ -169,7 +211,7 @@ var:sdk.win_installer @@ -179,7 +221,7 @@ var:sdk.mac_download @@ -187,51 +229,109 @@ var:sdk.linux_download
Platform
Windows - bytes
- (Recommended)
Mac OS X (intel) -
Linux (i386) -
+ + + + +
+ + + + + + +