7052425: Change the look and feel of the javadoc generate HTML pages using stylesheet

Fri, 17 Jun 2011 20:12:46 -0700

author
bpatel
date
Fri, 17 Jun 2011 20:12:46 -0700
changeset 1033
7eba9df190ae
parent 1021
347349c981f2
child 1034
c3a3440fe6e8

7052425: Change the look and feel of the javadoc generate HTML pages using stylesheet
Reviewed-by: jjg

src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/inherit.gif file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/tab.gif file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar.gif file | annotate | diff | comparison | revisions
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar_end.gif file | annotate | diff | comparison | revisions
test/com/sun/javadoc/AccessH1/AccessH1.java file | annotate | diff | comparison | revisions
test/com/sun/javadoc/testStylesheet/TestStylesheet.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java	Thu Jun 09 09:13:50 2011 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java	Fri Jun 17 20:12:46 2011 -0700
     1.3 @@ -110,7 +110,10 @@
     1.4          String configstylefile = configuration.stylesheetfile;
     1.5          performCopy(configdestdir, confighelpfile);
     1.6          performCopy(configdestdir, configstylefile);
     1.7 -        Util.copyResourceFile(configuration, "inherit.gif", false);
     1.8 +        Util.copyResourceFile(configuration, "background.gif", false);
     1.9 +        Util.copyResourceFile(configuration, "tab.gif", false);
    1.10 +        Util.copyResourceFile(configuration, "titlebar.gif", false);
    1.11 +        Util.copyResourceFile(configuration, "titlebar_end.gif", false);
    1.12          // do early to reduce memory footprint
    1.13          if (configuration.classuse) {
    1.14              ClassUseWriter.generate(configuration, classtree);
     2.1 Binary file src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif has changed
     3.1 Binary file src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/inherit.gif has changed
     4.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css	Thu Jun 09 09:13:50 2011 -0700
     4.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css	Fri Jun 17 20:12:46 2011 -0700
     4.3 @@ -3,187 +3,290 @@
     4.4  Overall document style
     4.5  */
     4.6  body {
     4.7 -    font-family:Helvetica, Arial, sans-serif;
     4.8 -    color:#000000;
     4.9 +    background-color:#ffffff;
    4.10 +    color:#353833;
    4.11 +    font-family:Arial, Helvetica, sans-serif;
    4.12 +    font-size:76%;
    4.13 +    margin:0;
    4.14 +}
    4.15 +a:link, a:visited {
    4.16 +    text-decoration:none;
    4.17 +    color:#4c6b87;
    4.18 +}
    4.19 +a:hover, a:focus {
    4.20 +    text-decoration:none;
    4.21 +    color:#bb7a2a;
    4.22 +}
    4.23 +a:active {
    4.24 +    text-decoration:none;
    4.25 +    color:#4c6b87;
    4.26 +}
    4.27 +a[name] {
    4.28 +    color:#353833;
    4.29 +}
    4.30 +a[name]:hover {
    4.31 +    text-decoration:none;
    4.32 +    color:#353833;
    4.33  }
    4.34  pre {
    4.35 -    font-size:1.0em;
    4.36 +    font-size:1.3em;
    4.37  }
    4.38  h1 {
    4.39 +    font-size:1.8em;
    4.40 +}
    4.41 +h2 {
    4.42 +    font-size:1.5em;
    4.43 +}
    4.44 +h3 {
    4.45      font-size:1.4em;
    4.46  }
    4.47 -h2 {
    4.48 -    font-size:1.35em;
    4.49 -}
    4.50 -h3 {
    4.51 +h4 {
    4.52      font-size:1.3em;
    4.53  }
    4.54 -h4 {
    4.55 -    font-size:1.25em;
    4.56 +h5 {
    4.57 +    font-size:1.2em;
    4.58 +}
    4.59 +h6 {
    4.60 +    font-size:1.1em;
    4.61  }
    4.62  ul {
    4.63 -    margin:10px 0 10px 20px;
    4.64      list-style-type:disc;
    4.65  }
    4.66 -caption {
    4.67 -    background: #CCCCFF;
    4.68 -    color:#000000;
    4.69 -    text-align:left;
    4.70 -    font-size:150%;
    4.71 -    font-weight:bold;
    4.72 -    border-left:2px ridge;
    4.73 -    border-right:2px ridge;
    4.74 -    border-top:2px ridge;
    4.75 -    padding-left:5px;
    4.76 -    width:auto;
    4.77 +code, tt {
    4.78 +    font-size:1.2em;
    4.79 +}
    4.80 +dt code {
    4.81 +    font-size:1.2em;
    4.82 +}
    4.83 +table tr td dt code {
    4.84 +    font-size:1.2em;
    4.85 +    vertical-align:top;
    4.86 +}
    4.87 +sup {
    4.88 +    font-size:.6em;
    4.89  }
    4.90  /*
    4.91  Document title and Copyright styles
    4.92  */
    4.93 +.clear {
    4.94 +    clear:both;
    4.95 +    height:0px;
    4.96 +    overflow:hidden;
    4.97 +}
    4.98  .aboutLanguage {
    4.99      float:right;
   4.100 -    font-size:0.9em;
   4.101 -    color:#000000;
   4.102 +    padding:0px 21px;
   4.103 +    font-size:.8em;
   4.104 +    z-index:200;
   4.105 +    margin-top:-7px;
   4.106  }
   4.107  .legalCopy {
   4.108 -    margin:7px 0;
   4.109 +    margin-left:.5em;
   4.110  }
   4.111 -.bar {
   4.112 -    font-size:1em;
   4.113 -    margin:10px 0 0 2px;
   4.114 +.bar a, .bar a:link, .bar a:visited, .bar a:active {
   4.115 +    color:#FFFFFF;
   4.116 +    text-decoration:none;
   4.117  }
   4.118 -.bar a {
   4.119 -    font-weight:normal;
   4.120 +.bar a:hover, .bar a:focus {
   4.121 +    color:#bb7a2a;
   4.122 +}
   4.123 +.tab {
   4.124 +    background-color:#0066FF;
   4.125 +    background-image:url(resources/titlebar.gif);
   4.126 +    background-position:left top;
   4.127 +    background-repeat:no-repeat;
   4.128 +    color:#ffffff;
   4.129 +    padding:8px;
   4.130 +    width:5em;
   4.131 +    font-weight:bold;
   4.132  }
   4.133  /*
   4.134  Navigation bar styles
   4.135  */
   4.136 +.bar {
   4.137 +    background-image:url(resources/background.gif);
   4.138 +    background-repeat:repeat-x;
   4.139 +    color:#FFFFFF;
   4.140 +    padding:.8em .5em .4em .8em;
   4.141 +    height:auto;/*height:1.8em;*/
   4.142 +    font-size:1em;
   4.143 +    margin:0;
   4.144 +}
   4.145  .topNav {
   4.146 -    border-top:2px solid #C0C0C0;
   4.147 -    padding:7px 0;
   4.148 +    background-image:url(resources/background.gif);
   4.149 +    background-repeat:repeat-x;
   4.150 +    color:#FFFFFF;
   4.151 +    float:left;
   4.152 +    padding:0;
   4.153 +    width:100%;
   4.154 +    clear:right;
   4.155      height:2.8em;
   4.156 -    width:100%;
   4.157 -    min-width:600px;
   4.158 +    padding-top:10px;
   4.159 +    overflow:hidden;
   4.160  }
   4.161  .bottomNav {
   4.162 -    border-top:2px solid #C0C0C0;
   4.163 -    padding:7px 0;
   4.164 +    margin-top:10px;
   4.165 +    background-image:url(resources/background.gif);
   4.166 +    background-repeat:repeat-x;
   4.167 +    color:#FFFFFF;
   4.168 +    float:left;
   4.169 +    padding:0;
   4.170 +    width:100%;
   4.171 +    clear:right;
   4.172      height:2.8em;
   4.173 -    width:100%;
   4.174 +    padding-top:10px;
   4.175 +    overflow:hidden;
   4.176  }
   4.177  .subNav {
   4.178 -    border-bottom:2px solid #C0C0C0;
   4.179 +    background-color:#dee3e9;
   4.180 +    border-bottom:1px solid #9eadc0;
   4.181      float:left;
   4.182      width:100%;
   4.183 -    min-width:600px;
   4.184 +    overflow:hidden;
   4.185  }
   4.186  .subNav div {
   4.187      clear:left;
   4.188      float:left;
   4.189 -    padding:0 0 5px 2px;
   4.190 -    width:100%;
   4.191 +    padding:0 0 5px 6px;
   4.192  }
   4.193 -.topNav a:link,.topNav a:active, .topNav a:visited, .topNav a:hover,
   4.194 -.bottomNav a:link,.bottomNav a:active, .bottomNav a:visited, .bottomNav a:hover {
   4.195 -    color:#000000;
   4.196 -    font-weight:bold;
   4.197 -    text-decoration:underline;
   4.198 -    font-size:1em;
   4.199 -}
   4.200 -/* Navigation bar list styles */
   4.201 -.topNav ul.navList, .bottomNav ul.navList {
   4.202 -    background-color:#EEEEFF;
   4.203 -    padding:4px 4px;
   4.204 -    margin:0;
   4.205 +ul.navList, ul.subNavList {
   4.206      float:left;
   4.207 -    width:80%;
   4.208 +    margin:0 25px 0 0;
   4.209 +    padding:0;
   4.210  }
   4.211  ul.navList li{
   4.212      list-style:none;
   4.213      float:left;
   4.214 -    padding:0 4px;
   4.215 -    color:#000000;
   4.216 -    font-size:0.98em;
   4.217 -}
   4.218 -ul.navList li.navBarCell1Rev {
   4.219 -    background-color:#00008B;
   4.220 -    color:#FFFFFF;
   4.221 -    font-weight:bold;
   4.222 -    font-size:0.97em;
   4.223 -}
   4.224 -/* Sub-navigation bar list styles */
   4.225 -.subNav ul.navList {
   4.226 -    float:left;
   4.227 -    margin:0;
   4.228 -    padding:0;
   4.229 -    font-size:0.8em;
   4.230 -    width:350px;
   4.231 -}
   4.232 -ul.subNavList {
   4.233 -    float:left;
   4.234 -    font-size:0.8em;
   4.235 -    width:350px;
   4.236 -    margin:0;
   4.237 -    padding:0;
   4.238 +    padding:3px 6px;
   4.239  }
   4.240  ul.subNavList li{
   4.241      list-style:none;
   4.242      float:left;
   4.243 -    font-size:98%;
   4.244 +    font-size:90%;
   4.245 +}
   4.246 +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
   4.247 +    color:#FFFFFF;
   4.248 +    text-decoration:none;
   4.249 +}
   4.250 +.topNav a:hover, .bottomNav a:hover {
   4.251 +    text-decoration:none;
   4.252 +    color:#bb7a2a;
   4.253 +}
   4.254 +.navBarCell1Rev {
   4.255 +    background-image:url(resources/tab.gif);
   4.256 +    background-color:#a88834;
   4.257 +    color:#FFFFFF;
   4.258 +    margin: auto 5px;
   4.259 +    border:1px solid #c9aa44;
   4.260  }
   4.261  /*
   4.262  Page header and footer styles
   4.263  */
   4.264  .header, .footer {
   4.265      clear:both;
   4.266 -    padding:10px 0;
   4.267 +    margin:0 20px;
   4.268 +    padding:5px 0 0 0;
   4.269  }
   4.270  .indexHeader {
   4.271 -    font-size:0.9em;
   4.272 -    margin:10px 0 0 2px;
   4.273 +    margin:10px;
   4.274 +    position:relative;
   4.275 +}
   4.276 +.indexHeader h1 {
   4.277 +    font-size:1.3em;
   4.278 +}
   4.279 +.title {
   4.280 +    color:#2c4557;
   4.281 +    margin:10px 0;
   4.282 +}
   4.283 +.subTitle {
   4.284 +    margin:5px 0 0 0;
   4.285  }
   4.286  .header ul {
   4.287 -    padding-left:20px;
   4.288 +    margin:0 0 25px 0;
   4.289 +    padding:0;
   4.290  }
   4.291 -/* Header and footer title styles */
   4.292 -.header h1.title {
   4.293 -    font-size:1.4em;
   4.294 -    text-align:center;
   4.295 -    margin:0;
   4.296 +.footer ul {
   4.297 +    margin:20px 0 5px 0;
   4.298  }
   4.299 -.header h2.title {
   4.300 -    font-size:1.35em;
   4.301 -    margin:0;
   4.302 -}
   4.303 -.subTitle {
   4.304 -    padding-top:10px;
   4.305 +.header ul li, .footer ul li {
   4.306 +    list-style:none;
   4.307 +    font-size:1.2em;
   4.308  }
   4.309  /*
   4.310 -Content styles
   4.311 +Heading styles
   4.312  */
   4.313 -.deprecatedContent {
   4.314 -    margin:0;
   4.315 -    padding:10px 0;
   4.316 +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
   4.317 +    background-color:#dee3e9;
   4.318 +    border-top:1px solid #9eadc0;
   4.319 +    border-bottom:1px solid #9eadc0;
   4.320 +    margin:0 0 6px -8px;
   4.321 +    padding:2px 5px;
   4.322  }
   4.323 -.docSummary {
   4.324 -    padding-top:10px;
   4.325 +ul.blockList ul.blockList ul.blockList li.blockList h3 {
   4.326 +    background-color:#dee3e9;
   4.327 +    border-top:1px solid #9eadc0;
   4.328 +    border-bottom:1px solid #9eadc0;
   4.329 +    margin:0 0 6px -8px;
   4.330 +    padding:2px 5px;
   4.331 +}
   4.332 +ul.blockList ul.blockList li.blockList h3 {
   4.333 +    padding:0;
   4.334 +    margin:15px 0;
   4.335 +}
   4.336 +ul.blockList li.blockList h2 {
   4.337 +    padding:0px 0 20px 0;
   4.338  }
   4.339  /*
   4.340  Page layout container styles
   4.341  */
   4.342 -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer,
   4.343 -.constantValuesContainer {
   4.344 +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
   4.345      clear:both;
   4.346 +    padding:10px 20px;
   4.347      position:relative;
   4.348 -    padding-bottom:20px;
   4.349  }
   4.350  .indexContainer {
   4.351 -    padding:0 0 0 2px;
   4.352 +    margin:10px;
   4.353 +    position:relative;
   4.354 +    font-size:1.0em;
   4.355 +}
   4.356 +.indexContainer h2 {
   4.357 +    font-size:1.1em;
   4.358 +    padding:0 0 3px 0;
   4.359 +}
   4.360 +.indexContainer ul {
   4.361 +    margin:0;
   4.362 +    padding:0;
   4.363 +}
   4.364 +.indexContainer ul li {
   4.365 +    list-style:none;
   4.366 +}
   4.367 +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
   4.368 +    font-size:1.1em;
   4.369 +    font-weight:bold;
   4.370 +    margin:10px 0 0 0;
   4.371 +    color:#4E4E4E;
   4.372 +}
   4.373 +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
   4.374 +    margin:10px 0 10px 20px;
   4.375 +}
   4.376 +.serializedFormContainer dl.nameValue dt {
   4.377 +    margin-left:1px;
   4.378 +    font-size:1.1em;
   4.379 +    display:inline;
   4.380 +    font-weight:bold;
   4.381 +}
   4.382 +.serializedFormContainer dl.nameValue dd {
   4.383 +    margin:0 0 0 1px;
   4.384 +    font-size:1.1em;
   4.385 +    display:inline;
   4.386 +}
   4.387 +/*
   4.388 +List styles
   4.389 +*/
   4.390 +ul.horizontal li {
   4.391 +    display:inline;
   4.392      font-size:0.9em;
   4.393  }
   4.394 -/*
   4.395 -Class inheritance information styles
   4.396 -*/
   4.397  ul.inheritance {
   4.398      margin:0;
   4.399      padding:0;
   4.400 @@ -194,236 +297,178 @@
   4.401  }
   4.402  ul.inheritance li ul.inheritance {
   4.403      margin-left:15px;
   4.404 -    background-image:url(resources/inherit.gif);
   4.405 -    background-repeat:no-repeat;
   4.406      padding-left:15px;
   4.407      padding-top:1px;
   4.408  }
   4.409 -/*
   4.410 -Heading styles
   4.411 -*/
   4.412 -.indexContainer h2 {
   4.413 -    font-weight:normal;
   4.414 -    font-size:1.0em;
   4.415 -    padding:5px 0 0 0;
   4.416 -    margin:10px 0 0 0;
   4.417 -}
   4.418 -.contentContainer h2 {
   4.419 -    margin:10px 0;
   4.420 -}
   4.421 -.constantValuesContainer h2 {
   4.422 -    background:#CCCCFF;
   4.423 -    border:2px ridge;
   4.424 -    padding:3px;
   4.425 -    margin:0 0 10px 0;
   4.426 -}
   4.427 -.serializedFormContainer ul.blockList li.blockList h2 {
   4.428 -    background:#EEEEFF;
   4.429 -    border:2px ridge;
   4.430 -    padding:3px;
   4.431 -    margin:0 0 15px 0;
   4.432 -    text-align:center;
   4.433 -}
   4.434 -.classUseContainer ul li ul li h3 {
   4.435 -    margin-bottom:30px;
   4.436 -    padding:3px;
   4.437 -}
   4.438 -.serializedFormContainer ul.blockList li.blockList ul.blockList li.blockList h3 {
   4.439 -    background:#EEEEFF;
   4.440 -    margin:0 0 15px 0;
   4.441 -    padding:3px;
   4.442 -}
   4.443 -.serializedFormContainer ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList h3 {
   4.444 -    background:#CCCCFF;
   4.445 -    margin:0 0 15px 0;
   4.446 -    padding:3px;
   4.447 -    border:2px ridge;
   4.448 -}
   4.449 -ul.blockList ul.blockList li.blockList h3, ul.blockList ul.blockList li.blockList h3 {
   4.450 -    background:#CCCCFF;
   4.451 -    border:2px ridge;
   4.452 -    padding-left:5px;
   4.453 -}
   4.454 -div.summary ul.blockList ul.blockList li.blockList h3 {
   4.455 -    background:#CCCCFF;
   4.456 -    border:0;
   4.457 -    border:2px ridge;
   4.458 -    margin:0;
   4.459 -}
   4.460 -div.summary ul.blockList ul.blockList ul.blockList li.blockList h3 {
   4.461 -    background:#EEEEFF;
   4.462 -    border:0;
   4.463 -    border-bottom:2px ridge;
   4.464 -}
   4.465 -div.details ul.blockList ul.blockList ul.blockList li.blockList h4,
   4.466 -div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
   4.467 -    font-size:1.15em;
   4.468 -    font-weight:bold;
   4.469 -    padding:0 0 5px 0;
   4.470 -    margin:0;
   4.471 -}
   4.472 -/*
   4.473 -Table styles
   4.474 -*/
   4.475 -.contentContainer table {
   4.476 -    border-collapse:collapse ;
   4.477 -    width:100%;
   4.478 -}
   4.479 -.contentContainer table td, .contentContainer table th {
   4.480 -    border:2px ridge;
   4.481 -}
   4.482 -/* Constant values page table styles */
   4.483 -.constantValuesContainer table {
   4.484 -    border-collapse:collapse;
   4.485 -}
   4.486 -.constantValuesContainer table caption{
   4.487 -    font-size:0.95em;
   4.488 -    padding:3px;
   4.489 -    background:#EEEEFF;
   4.490 -}
   4.491 -.constantValuesContainer table td, .constantValuesContainer table th {
   4.492 -    border:2px ridge;
   4.493 -    padding:3px;
   4.494 -}
   4.495 -/* Class-use/Package-use page table styles */
   4.496 -.classUseContainer table {
   4.497 -    border-collapse:collapse ;
   4.498 -    width:100%;
   4.499 -    margin:0 0 10px 0;
   4.500 -}
   4.501 -.classUseContainer ul li ul li table caption{
   4.502 -    font-size:0.95em;
   4.503 -    padding:3px;
   4.504 -    background:#EEEEFF;
   4.505 -}
   4.506 -.classUseContainer table td, .classUseContainer table th {
   4.507 -    border:2px ridge;
   4.508 -    padding:3px;
   4.509 -}
   4.510 -/* Summary table styles */
   4.511 -ul.blockList li.blockList table.overviewSummary {
   4.512 -    margin:0;
   4.513 -    margin-bottom:15px;
   4.514 -}
   4.515 -ul.blockList li.blockList table caption {
   4.516 -    padding:3px;
   4.517 -}
   4.518 -ul.blockList li.blockList table.overviewSummary td.colFirst{
   4.519 -    text-align:right;
   4.520 -}
   4.521 -table.packageSummary td.colFirst, table.overviewSummary th.colFirst {
   4.522 -    width:15%;
   4.523 -}
   4.524 -div.summary ul.blockList ul.blockList li.blockList caption {
   4.525 -    display:none;
   4.526 -}
   4.527 -div.summary ul.blockList li.blockList ul.blockList li.blockList table.overviewSummary th {
   4.528 -    border-top:0;
   4.529 -}
   4.530 -/* Table column block styles */
   4.531 -ul.blockList li.blockList table.overviewSummary td.colLast div.block{
   4.532 +ul.blockList, ul.blockListLast {
   4.533 +    margin:10px 0 10px 0;
   4.534      padding:0;
   4.535 -    padding-left:40px;
   4.536 -}
   4.537 -ul.blockList li.blockList table.overviewSummary td.colOne div.block{
   4.538 -    padding:0;
   4.539 -    padding-left:40px;
   4.540 -}
   4.541 -.contentContainer ul.blockList li.blockList table .colOne div.block{
   4.542 -    padding-left:40px;
   4.543 -}
   4.544 -.classUseContainer ul li ul li table .colLast div.block,
   4.545 -.classUseContainer ul li ul li table .colOne div.block{
   4.546 -    padding-left:40px;
   4.547 -}
   4.548 -/*
   4.549 -List styles
   4.550 -*/
   4.551 -ul.horizontal li {
   4.552 -    display:inline;
   4.553 -    font-size:0.9em;   
   4.554 -}
   4.555 -/* Container specific list styles */
   4.556 -.indexContainer ul {
   4.557 -    margin:0;
   4.558 -    padding:0;
   4.559 -}
   4.560 -.indexContainer ul li {
   4.561 -    list-style:none;
   4.562 -}
   4.563 -.serializedFormContainer ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList {
   4.564 -    border:0;
   4.565 -}
   4.566 -.serializedFormContainer ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList {
   4.567 -    list-style:none;
   4.568 -    border:0;
   4.569 -    border-bottom:2px ridge;
   4.570 -    height:1%;
   4.571 -}
   4.572 -.serializedFormContainer ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockListLast {
   4.573 -    list-style:none;
   4.574 -}
   4.575 -/* General list styles */
   4.576 -ul.blockList, ul.blockListLast {
   4.577 -    margin-left:0;
   4.578 -    padding-left:0;
   4.579  }
   4.580  ul.blockList li.blockList, ul.blockListLast li.blockList {
   4.581      list-style:none;
   4.582      margin-bottom:25px;
   4.583  }
   4.584 -ul.blockList ul.blockList ul.blockList li.blockList {
   4.585 -    border:2px ridge;
   4.586 +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
   4.587 +    padding:0px 20px 5px 10px;
   4.588 +    border:1px solid #9eadc0;
   4.589 +    background-color:#f9f9f9;
   4.590  }
   4.591 -div.details ul.blockList ul.blockList ul.blockList li.blockList {
   4.592 -    border:0;
   4.593 -    border-bottom:2px ridge;
   4.594 -    height:1%;
   4.595 +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
   4.596 +    padding:0 0 5px 8px;
   4.597 +    background-color:#ffffff;
   4.598 +    border:1px solid #9eadc0;
   4.599 +    border-top:none;
   4.600  }
   4.601 -/* Definition list styles */
   4.602 -ul.blockList li.blockList dl{
   4.603 -    margin-bottom:15px;
   4.604 +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
   4.605 +    margin-left:0;
   4.606 +    padding-left:0;
   4.607 +    padding-bottom:15px;
   4.608 +    border:none;
   4.609 +    border-bottom:1px solid #9eadc0;
   4.610  }
   4.611 -ul.blockList li.blockList dl dd{
   4.612 -    margin:0 0 0 30px;
   4.613 +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
   4.614 +    list-style:none;
   4.615 +    border-bottom:none;
   4.616 +    padding-bottom:0;
   4.617  }
   4.618 -ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList dl,
   4.619 -ul.blockList li.blockList ul.blockList li.blockList ul.blockListLast li.blockList dl{
   4.620 -    padding:0 0 10px 35px;
   4.621 +table tr td dl, table tr td dl dt, table tr td dl dd {
   4.622 +    margin-top:0;
   4.623 +    margin-bottom:1px;
   4.624  }
   4.625 -dl.nameValue dt, dl.nameValue dd{
   4.626 -    display:inline;
   4.627 +/*
   4.628 +Table styles
   4.629 +*/
   4.630 +.contentContainer table, .classUseContainer table, .constantValuesContainer table {
   4.631 +    border-bottom:1px solid #9eadc0;
   4.632 +    width:100%;
   4.633  }
   4.634 -ul.blockList li.blockList pre{
   4.635 -    margin:0 0 15px 0;
   4.636 +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table {
   4.637 +    width:100%;
   4.638  }
   4.639 -.description dl dt {
   4.640 -    font-size:0.95em;
   4.641 +.contentContainer .description table, .contentContainer .details table {
   4.642 +    border-bottom:none;
   4.643 +}
   4.644 +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{
   4.645 +    vertical-align:top;
   4.646 +    padding-right:20px;
   4.647 +}
   4.648 +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast,
   4.649 +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast,
   4.650 +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne,
   4.651 +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne {
   4.652 +    padding-right:3px;
   4.653 +}
   4.654 +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption {
   4.655 +    position:relative;
   4.656 +    text-align:left;
   4.657 +    background-repeat:no-repeat;
   4.658 +    color:#FFFFFF;
   4.659      font-weight:bold;
   4.660 -    margin:5px 0 0 0;
   4.661 +    clear:none;
   4.662 +    overflow:hidden;
   4.663 +    padding:0px;
   4.664 +    margin:0px;
   4.665  }
   4.666 -.description dl dd {
   4.667 -    margin:10px 0 10px 20px;
   4.668 +caption a:link, caption a:hover, caption a:active, caption a:visited {
   4.669 +    color:#FFFFFF;
   4.670  }
   4.671 -/* List content styles */
   4.672 -ul.blockList li.blockList ul.blockList li.blockList pre{
   4.673 -    margin:10px 0 10px 0;
   4.674 +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span {
   4.675 +    white-space:nowrap;
   4.676 +    padding-top:8px;
   4.677 +    padding-left:8px;
   4.678 +    display:block;
   4.679 +    float:left;
   4.680 +    background-image:url(resources/titlebar.gif);
   4.681 +    height:18px;
   4.682  }
   4.683 -ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList pre,
   4.684 -ul.blockList li.blockList ul.blockList li.blockList ul.blockListLast li.blockList pre{
   4.685 -    padding:0 0 10px 0;
   4.686 +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd {
   4.687 +    width:10px;
   4.688 +    background-image:url(resources/titlebar_end.gif);
   4.689 +    background-repeat:no-repeat;
   4.690 +    background-position:top right;
   4.691 +    position:relative;
   4.692 +    float:left;
   4.693  }
   4.694 -ul.blockList li.blockList ul.blockList li.blockList ul.blockList li.blockList div.block,
   4.695 -ul.blockList li.blockList ul.blockList li.blockList ul.blockListLast li.blockList div.block{
   4.696 -    padding:0 0 10px 35px;
   4.697 +ul.blockList ul.blockList li.blockList table {
   4.698 +    margin:0 0 12px 0px;
   4.699 +    width:100%;
   4.700 +}
   4.701 +.tableSubHeadingColor {
   4.702 +    background-color: #EEEEFF;
   4.703 +}
   4.704 +.altColor {
   4.705 +    background-color:#eeeeef;
   4.706 +}
   4.707 +.rowColor {
   4.708 +    background-color:#ffffff;
   4.709 +}
   4.710 +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td {
   4.711 +    text-align:left;
   4.712 +    padding:3px 3px 3px 7px;
   4.713 +}
   4.714 +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th {
   4.715 +    background:#dee3e9;
   4.716 +    border-top:1px solid #9eadc0;
   4.717 +    border-bottom:1px solid #9eadc0;
   4.718 +    text-align:left;
   4.719 +    padding:3px 3px 3px 7px;
   4.720 +}
   4.721 +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
   4.722 +    font-weight:bold;
   4.723 +}
   4.724 +td.colFirst, th.colFirst {
   4.725 +    border-left:1px solid #9eadc0;
   4.726 +    white-space:nowrap;
   4.727 +}
   4.728 +td.colLast, th.colLast {
   4.729 +    border-right:1px solid #9eadc0;
   4.730 +}
   4.731 +td.colOne, th.colOne {
   4.732 +    border-right:1px solid #9eadc0;
   4.733 +    border-left:1px solid #9eadc0;
   4.734 +}
   4.735 +table.overviewSummary  {
   4.736 +    padding:0px;
   4.737 +    margin-left:0px;
   4.738 +}
   4.739 +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst,
   4.740 +table.overviewSummary td.colOne, table.overviewSummary th.colOne {
   4.741 +    width:25%;
   4.742 +    vertical-align:middle;
   4.743 +}
   4.744 +table.packageSummary td.colFirst, table.overviewSummary th.colFirst {
   4.745 +    width:25%;
   4.746 +    vertical-align:middle;
   4.747 +}
   4.748 +/*
   4.749 +Content styles
   4.750 +*/
   4.751 +.description pre {
   4.752 +    margin-top:0;
   4.753 +}
   4.754 +.deprecatedContent {
   4.755 +    margin:0;
   4.756 +    padding:10px 0;
   4.757 +}
   4.758 +.docSummary {
   4.759 +    padding:0;
   4.760  }
   4.761  /*
   4.762  Formatting effect styles
   4.763  */
   4.764 -.strong {
   4.765 -    font-weight:bold;
   4.766 -}
   4.767  .sourceLineNo {
   4.768      color:green;
   4.769      padding:0 30px 0 0;
   4.770  }
   4.771 +h1.hidden {
   4.772 +    visibility:hidden;
   4.773 +    overflow:hidden;
   4.774 +    font-size:.9em;
   4.775 +}
   4.776 +.block {
   4.777 +    display:block;
   4.778 +    margin:3px 0 0 0;
   4.779 +}
   4.780 +.strong {
   4.781 +    font-weight:bold;
   4.782 +}
     5.1 Binary file src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/tab.gif has changed
     6.1 Binary file src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar.gif has changed
     7.1 Binary file src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar_end.gif has changed
     8.1 --- a/test/com/sun/javadoc/AccessH1/AccessH1.java	Thu Jun 09 09:13:50 2011 -0700
     8.2 +++ b/test/com/sun/javadoc/AccessH1/AccessH1.java	Fri Jun 17 20:12:46 2011 -0700
     8.3 @@ -1,5 +1,5 @@
     8.4  /*
     8.5 - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     8.6 + * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     8.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     8.8   *
     8.9   * This code is free software; you can redistribute it and/or modify it
    8.10 @@ -23,7 +23,7 @@
    8.11  
    8.12  /*
    8.13   * @test
    8.14 - * @bug 4636667
    8.15 + * @bug 4636667 7052425
    8.16   * @summary  Use <H1, <H2>, and <H3> in proper sequence for accessibility
    8.17   * @author dkramer
    8.18   * @run main AccessH1
    8.19 @@ -42,7 +42,7 @@
    8.20   */
    8.21  public class AccessH1 {
    8.22  
    8.23 -    private static final String BUGID = "4636667";
    8.24 +    private static final String BUGID = "4636667-7052425";
    8.25      private static final String BUGNAME = "AccessH1";
    8.26      private static final String FS = System.getProperty("file.separator");
    8.27      private static final String PS = System.getProperty("path.separator");
    8.28 @@ -85,8 +85,7 @@
    8.29      private static final String[][] testArray = {
    8.30          // Test the style sheet
    8.31          {
    8.32 -            ".header h1.title {" + LS + "    font-size:1.4em;" + LS +
    8.33 -            "    text-align:center;" + LS + "    margin:0;" + LS +
    8.34 +            "h1 {" + LS + "    font-size:1.8em;" + LS +
    8.35              "}",
    8.36              TMPDEST_DIR1 + "stylesheet.css"
    8.37          },
     9.1 --- a/test/com/sun/javadoc/testStylesheet/TestStylesheet.java	Thu Jun 09 09:13:50 2011 -0700
     9.2 +++ b/test/com/sun/javadoc/testStylesheet/TestStylesheet.java	Fri Jun 17 20:12:46 2011 -0700
     9.3 @@ -23,7 +23,7 @@
     9.4  
     9.5  /*
     9.6   * @test
     9.7 - * @bug      4494033 7028815
     9.8 + * @bug      4494033 7028815 7052425
     9.9   * @summary  Run tests on doclet stylesheet.
    9.10   * @author   jamieh
    9.11   * @library  ../lib/
    9.12 @@ -34,7 +34,7 @@
    9.13  public class TestStylesheet extends JavadocTester {
    9.14  
    9.15      //Test information.
    9.16 -    private static final String BUG_ID = "4494033-7028815";
    9.17 +    private static final String BUG_ID = "4494033-7028815-7052425";
    9.18  
    9.19      //Javadoc arguments.
    9.20      private static final String[] ARGS = new String[] {
    9.21 @@ -52,11 +52,12 @@
    9.22          {BUG_ID + FS + "stylesheet.css",
    9.23                  "/*" + NL + "Navigation bar styles" + NL + "*/"},
    9.24          {BUG_ID + FS + "stylesheet.css",
    9.25 -                "body {" + NL + "    font-family:Helvetica, Arial, sans-serif;" + NL +
    9.26 -                "    color:#000000;" + NL + "}"},
    9.27 +                "body {" + NL + "    background-color:#ffffff;" + NL +
    9.28 +                "    color:#353833;" + NL +
    9.29 +                "    font-family:Arial, Helvetica, sans-serif;" + NL +
    9.30 +                "    font-size:76%;" + NL + "    margin:0;" + NL + "}"},
    9.31          {BUG_ID + FS + "stylesheet.css",
    9.32 -                "ul {" + NL + "    margin:10px 0 10px 20px;" + NL +
    9.33 -                "    list-style-type:disc;" + NL + "}"},
    9.34 +                "ul {" + NL + "    list-style-type:disc;" + NL + "}"},
    9.35          // Test whether a link to the stylesheet file is inserted properly
    9.36          // in the class documentation.
    9.37          {BUG_ID + FS + "pkg" + FS + "A.html",

mercurial