You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2007/01/20 16:32:32 UTC

svn commit: r498125 - in /maven: jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css

Author: vsiveton
Date: Sat Jan 20 07:32:31 2007
New Revision: 498125

URL: http://svn.apache.org/viewvc?view=rev&rev=498125
Log:
JXR-4: Each html tags in transformation must have their own css class with a "jxr." prefix

o used id in HTML tags for css
o updated css with "jxr_xxx" as suggested

Modified:
    maven/jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java
    maven/plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css

Modified: maven/jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java?view=diff&rev=498125&r1=498124&r2=498125
==============================================================================
--- maven/jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java (original)
+++ maven/jxr/trunk/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java Sat Jan 20 07:32:31 2007
@@ -100,7 +100,7 @@
     /**
      * start comment delimeter
      */
-    public static final String COMMENT_START = "<em class=\"comment\">";
+    public static final String COMMENT_START = "<em id=\"jxr_comment\">";
 
     /**
      * end comment delimeter
@@ -110,7 +110,7 @@
     /**
      * start javadoc comment delimeter
      */
-    public static final String JAVADOC_COMMENT_START = "<em>";
+    public static final String JAVADOC_COMMENT_START = "<em id=\"jxr_javadoccomment\">";
 
     /**
      * end javadoc comment delimeter
@@ -120,7 +120,7 @@
     /**
      * start String delimeter
      */
-    public static final String STRING_START = "<span class=\"string\">";
+    public static final String STRING_START = "<span id=\"jxr_string\">";
 
     /**
      * end String delimeter
@@ -130,7 +130,7 @@
     /**
      * start reserved word delimeter
      */
-    public static final String RESERVED_WORD_START = "<strong>";
+    public static final String RESERVED_WORD_START = "<strong id=\"jxr_keyword\">";
 
     /**
      * end reserved word delimeter

Modified: maven/plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css?view=diff&rev=498125&r1=498124&r2=498125
==============================================================================
--- maven/plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css (original)
+++ maven/plugins/trunk/maven-jxr-plugin/src/main/resources/stylesheet.css Sat Jan 20 07:32:31 2007
@@ -1,96 +1,116 @@
 /* Javadoc style sheet */
 /* Define colors, fonts and other style attributes here to override the defaults  */
-body { 
-	background-color: #fff;
-	font-family: Arial, Helvetica, sans-serif;
+body {
+    background-color: #fff;
+    font-family: Arial, Helvetica, sans-serif;
 }
 
 a:link {
- color: #00f;
+    color: #00f;
 }
 a:visited {
- color: #00a;
+    color: #00a;
 }
 
 a:active, a:hover {
- color: #f30 !important;
+    color: #f30 !important;
 }
 
-ul, li	{
-	list-style-type:none ;
-	margin:0;
-	padding:0;
+ul, li {
+    list-style-type:none;
+    margin:0;
+    padding:0;
 }
 
-table td{
-	padding: 3px;
-	border: 1px solid #000;
+table td {
+    padding: 3px;
+    border: 1px solid #000;
 }
-table{
-	width:100%;
-	border: 1px solid #000;
-	border-collapse: collapse;
+table {
+    width:100%;
+    border: 1px solid #000;
+    border-collapse: collapse;
 }
 
 div.overview {
-	background-color:#ddd;
-	padding: 4px 4px 4px 0;
+    background-color:#ddd;
+    padding: 4px 4px 4px 0;
 }
 div.overview li, div.framenoframe li {
-	display: inline;
+    display: inline;
 }
 div.framenoframe {
-	text-align: center;
-	font-size: x-small;
+    text-align: center;
+    font-size: x-small;
 }
 div.framenoframe li {
-	margin: 0 3px 0 3px;
+    margin: 0 3px 0 3px;
 }
 div.overview li {
-	margin:3px 3px 0 3px;
-	padding: 4px;
+    margin:3px 3px 0 3px;
+    padding: 4px;
 }
 li.selected {
-	background-color:#888;
-	color: #fff;
-	font-weight: bold;
+    background-color:#888;
+    color: #fff;
+    font-weight: bold;
 }
 
 table.summary {
-	margin-bottom: 20px;
+    margin-bottom: 20px;
 }
 table.summary td, table.summary th {
-	font-weight: bold;
-	text-align: left;
-	padding: 3px;
-}
-table.summary th{
-	background-color:#036;
-	color: #fff;
-}
-table.summary td{
-	background-color:#eee;
-	border: 1px solid black;
+    font-weight: bold;
+    text-align: left;
+    padding: 3px;
+}
+table.summary th {
+    background-color:#036;
+    color: #fff;
+}
+table.summary td {
+    background-color:#eee;
+    border: 1px solid black;
 }
 
 em {
-	color: #A00;
+    color: #A00;
 }
 em.comment {
-	color: #390;
+    color: #390;
 }
 .string {
-	color: #009;
+    color: #009;
 }
 div#footer {
-	text-align:center;
+    text-align:center;
 }
 #overview {
-	padding:2px;
+    padding:2px;
 }
-            
-            
+
 hr {
-	height: 1px;
-	color: #000;
-}
\ No newline at end of file
+    height: 1px;
+    color: #000;
+}
+
+/* JXR style sheet */
+#jxr_comment
+{
+    color: #390;
+}
+
+#jxr_javadoccomment
+{
+    color: #A00;
+}
+
+#jxr_string
+{
+    color: #009;
+}
+
+#jxr_keyword
+{
+    color: #000;
+}