forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 53939 - in forrest/trunk/src/core/context/skins/tigris: . css xslt/html
Date Thu, 07 Oct 2004 05:48:18 GMT
Author: crossley
Date: Wed Oct  6 22:48:18 2004
New Revision: 53939

Modified:
   forrest/trunk/src/core/context/skins/tigris/README.txt
   forrest/trunk/src/core/context/skins/tigris/css/tigris.css
   forrest/trunk/src/core/context/skins/tigris/xslt/html/site2xhtml.xsl
Log:
Fix the placement and size of "content icons/links".
A port of the (ugly) multi-template, multi-class patch to the pelt skin.
Submitted by: Arturo Vazquez arturo.vazquez<AT>gmail.com
Issue: FOR-313


Modified: forrest/trunk/src/core/context/skins/tigris/README.txt
==============================================================================
--- forrest/trunk/src/core/context/skins/tigris/README.txt	(original)
+++ forrest/trunk/src/core/context/skins/tigris/README.txt	Wed Oct  6 22:48:18 2004
@@ -13,3 +13,4 @@
  added: img { border: 0; }
  changed: for each image url(), removed the "../"
  changed: "inline-block" to "inline" at line 709 (fixes CSS validation error)
+ added: .pdflink .xmllink .podlink .printlink

Modified: forrest/trunk/src/core/context/skins/tigris/css/tigris.css
==============================================================================
--- forrest/trunk/src/core/context/skins/tigris/css/tigris.css	(original)
+++ forrest/trunk/src/core/context/skins/tigris/css/tigris.css	Wed Oct  6 22:48:18 2004
@@ -793,3 +793,93 @@
 #projectdocumentlist td.filebrowse-alt {
 	padding-right: .75em;
 }
+
+.pdflink {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.pdflink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.pdflink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.pdflink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}
+.xmllink {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.xmllink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.xmllink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.xmllink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}
+.podlink {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.podlink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.podlink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.podlink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}
+
+.printlink {
+    float: right;
+}
+.printlink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.printlink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+.printlink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}

Modified: forrest/trunk/src/core/context/skins/tigris/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/tigris/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/tigris/xslt/html/site2xhtml.xsl	Wed Oct  6 22:48:18
2004
@@ -192,39 +192,54 @@
   <!-- Generates the PDF link -->
   <xsl:template match="div[@id='skinconf-pdflink']">
     <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'"> 
-      <a href="{$filename-noext}.pdf"><img border="0" src="{$skin-img-dir}/pdfdoc.gif"
alt="PDF"/> PDF</a>
+      <div class="pdflink" title="Portable Document Format"><a href="{$filename-noext}.pdf"
class="dida">
+        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF -icon" /><br/>
+        PDF</a>
+      </div>
     </xsl:if>
   </xsl:template>
-  
   <!-- Generates the XML link -->
   <xsl:template match="div[@id='skinconf-xmllink']">
-    <xsl:if test="$disable-xml-link = 'false'">
-      <a href="{$filename-noext}.xml"><img border="0" src="{$skin-img-dir}/xmldoc.gif"
alt="xml"/> xml</a>
+    <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'"> 
+      <div class="xmllink" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
+        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+        XML</a>
+      </div>
+    </xsl:if>
+  </xsl:template>
+  <!-- generates the pod link -->
+  <xsl:template match="div[@id='skinconf-podlink']">
+    <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'"> 
+      <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod"
class="dida">
+        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+        POD</a>
+      </div>
     </xsl:if>
   </xsl:template>
-  
   <!-- Generates the "printer friendly version" link -->
   <xsl:template match="div[@id='skinconf-printlink']">
-    <xsl:if test="$disable-print-link = 'false'"> 
-<script type="text/javascript" language="Javascript">
+    <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">

+        <script type="text/javascript" language="Javascript">
 function printit() {
   if (window.print) {
     window.focus();
     window.print();
   }
 }
-</script>
+        </script>
 
-<script type="text/javascript" language="Javascript">
+        <script type="text/javascript" language="Javascript">
 var NS = (navigator.appName == "Netscape");
 var VERSION = parseInt(navigator.appVersion);
 if (VERSION > 3) {
-    document.write('  <a href="javascript:printit()">');
-    document.write('    <img border="0"  src="{$skin-img-dir}/printer.gif" alt="Print
this Page"/>');
-    document.write('  print</a>');
+  document.write('<div class="printlink" title="Print this Page">');
+  document.write('  <a href="javascript:printit()" class="dida">');
+  document.write('    <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print -
icon" />');
+  document.write('    <br />');
+  document.write('  PRINT</a>');
+  document.write('</div>');
 }
-</script>
-
+        </script>
     </xsl:if>
   </xsl:template>
   

Mime
View raw message