8225802: Remove unused CSS classes from HTML doclet
authorhannesw
Fri, 21 Jun 2019 12:23:46 +0200
changeset 55460 17ba7ce18564
parent 55459 00f29fe98900
child 55461 e764228f71dc
child 57420 c84d7dc9e434
8225802: Remove unused CSS classes from HTML doclet Reviewed-by: jjg
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java	Fri Jun 21 08:07:18 2019 +0000
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java	Fri Jun 21 12:23:46 2019 +0200
@@ -43,7 +43,6 @@
     altColor,
     annotations,
     arguments,
-    bar,
     block,
     blockList,
     bottomNav,
@@ -69,7 +68,6 @@
     descfrmTypeLabel,
     details,
     detail,
-    docSummary,
     emphasizedPhrase,
     exceptions,
     externalLink,
@@ -80,18 +78,11 @@
     helpSection,
     hierarchy,
     horizontal,
-    footer,
     implementationLabel,
-    indexContainer,
-    indexNav,
     inheritance,
     inheritedList,
     interfaceName,
-    leftContainer,
-    leftTop,
-    leftBottom,
     legalCopy,
-    mainContainer,
     memberDetails,
     memberName,
     memberNameLabel,
@@ -99,7 +90,6 @@
     memberSignature,
     memberSummary,
     methodDetails,
-    methodSignature,
     methodSummary,
     modifiers,
     moduleDescription,
@@ -128,8 +118,6 @@
     requiresSummary,
     returnLabel,
     returnType,
-    rightContainer,
-    rightIframe,
     rowColor,
     searchTagLink,
     searchTagResult,
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css	Fri Jun 21 08:07:18 2019 +0000
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css	Fri Jun 21 12:23:46 2019 +0200
@@ -121,13 +121,6 @@
 .legalCopy {
     margin-left:.5em;
 }
-.bar a, .bar a:link, .bar a:visited, .bar a:active {
-    color:#FFFFFF;
-    text-decoration:none;
-}
-.bar a:hover, .bar a:focus {
-    color:#bb7a2a;
-}
 .tab {
     background-color:#0066FF;
     color:#ffffff;
@@ -138,14 +131,6 @@
 /*
  * Styles for navigation bar.
  */
-.bar {
-    background-color:#4D7A97;
-    color:#FFFFFF;
-    padding:.8em .5em .4em .8em;
-    height:auto;/*height:1.8em;*/
-    font-size:11px;
-    margin:0;
-}
 .navPadding {
     padding-top: 107px;
 }
@@ -246,29 +231,11 @@
 /*
  * Styles for page header and footer.
  */
-.header, .footer {
+.header {
     clear:both;
     margin:0 20px;
     padding:5px 0 0 0;
 }
-.indexNav {
-    position:relative;
-    font-size:12px;
-    background-color:#dee3e9;
-}
-.indexNav ul {
-    margin-top:0;
-    padding:5px;
-}
-.indexNav ul li {
-    display:inline;
-    list-style-type:none;
-    padding-right:10px;
-    text-transform:uppercase;
-}
-.indexNav h1 {
-    font-size:13px;
-}
 .title {
     color:#2c4557;
     margin:10px 0;
@@ -280,9 +247,6 @@
     margin:0 0 15px 0;
     padding:0;
 }
-.footer ul {
-    margin:20px 0 5px 0;
-}
 .header ul li, .footer ul li {
     list-style:none;
     font-size:13px;
@@ -315,23 +279,6 @@
     padding:10px 20px;
     position:relative;
 }
-.indexContainer {
-    margin:10px;
-    position:relative;
-    font-size:12px;
-}
-.indexContainer h2 {
-    font-size:13px;
-    padding:0 0 3px 0;
-}
-.indexContainer ul {
-    margin:0;
-    padding:0;
-}
-.indexContainer ul li {
-    list-style:none;
-    padding-top:2px;
-}
 .contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
     font-size:12px;
     font-weight:bold;
@@ -558,9 +505,6 @@
     margin:0;
     padding:10px 0;
 }
-.docSummary {
-    padding:0;
-}
 div.block {
     font-size:14px;
     font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
@@ -632,61 +576,6 @@
     font-style:normal;
 }
 /*
- * Styles for IFRAME.
- */
-.mainContainer {
-    margin:0 auto;
-    padding:0;
-    height:100%;
-    width:100%;
-    position:fixed;
-    top:0;
-    left:0;
-}
-.leftContainer {
-    height:100%;
-    position:fixed;
-    width:320px;
-}
-.leftTop {
-    position:relative;
-    float:left;
-    width:315px;
-    top:0;
-    left:0;
-    height:30%;
-    border-right:6px solid #ccc;
-    border-bottom:6px solid #ccc;
-}
-.leftBottom {
-    position:relative;
-    float:left;
-    width:315px;
-    bottom:0;
-    left:0;
-    height:70%;
-    border-right:6px solid #ccc;
-    border-top:1px solid #000;
-}
-.rightContainer {
-    position:absolute;
-    left:320px;
-    top:0;
-    bottom:0;
-    height:100%;
-    right:0;
-    border-left:1px solid #000;
-}
-.rightIframe {
-    margin:0;
-    padding:0;
-    height:100%;
-    right:30px;
-    width:100%;
-    overflow:visible;
-    margin-bottom:30px;
-}
-/*
  * Styles specific to HTML5 elements.
  */
 main, nav, header, footer, section {
@@ -772,9 +661,6 @@
     margin: -100px 0 0 100px;
     z-index: 1;
 }
-.methodSignature {
-    white-space:normal;
-}
 .inheritedList {
     margin: 10px 0 10px 0;
 }