forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: rev 36266 - in forrest/trunk/src/core/context/skins/pelt-dev: . css xslt/html
Date Thu, 12 Aug 2004 02:47:52 GMT
Author: thorsten
Date: Wed Aug 11 19:47:51 2004
New Revision: 36266

Modified:
   forrest/trunk/src/core/context/skins/pelt-dev/css/profile.css.xslt
   forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css
   forrest/trunk/src/core/context/skins/pelt-dev/note.txt
   forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
Log:
- added external link image support
- enhanced the underline 


Modified: forrest/trunk/src/core/context/skins/pelt-dev/css/profile.css.xslt
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt-dev/css/profile.css.xslt	(original)
+++ forrest/trunk/src/core/context/skins/pelt-dev/css/profile.css.xslt	Wed Aug 11 19:47:51
2004
@@ -62,7 +62,8 @@
 
 <xsl:template match="color[@name='subheading']">
 .boxed { background-color: <xsl:value-of select="@value"/>;} 
-.underlined 	{border-bottom: solid 1px <xsl:value-of select="@value"/>;}
+.underlined_5 	{border-bottom: solid 5px <xsl:value-of select="@value"/>;}
+.underlined_10 	{border-bottom: solid 10px <xsl:value-of select="@value"/>;}
 </xsl:template> 
 <xsl:template match="color[@name='feedback']">    
 #feedback {

Modified: forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css	(original)
+++ forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css	Wed Aug 11 19:47:51 2004
@@ -335,7 +335,8 @@
 
 acronym { cursor: help; }
 .boxed 	 { background-color: #a5b6c6;}
-.underlined 	{border-bottom: solid 1px #4C6C8F;}
+.underlined_5 	{border-bottom: solid 5px #4C6C8F;}
+.underlined_10 	{border-bottom: solid 10px #4C6C8F;}
 #minitoc-area {
 	border-top: solid 1px #4C6C8F;
 	border-bottom: solid 1px #4C6C8F;	

Modified: forrest/trunk/src/core/context/skins/pelt-dev/note.txt
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt-dev/note.txt	(original)
+++ forrest/trunk/src/core/context/skins/pelt-dev/note.txt	Wed Aug 11 19:47:51 2004
@@ -1,25 +1,34 @@
 Notes for developer:
 
+--Legend-------------------
+TODO -> blocker
+DONE -> blocker
+ToDo -> enhancement bug
+done -> enhancement bug
+
+--Issues-------------------
 - the corner images should be rendered through svg with the header color.
--> DONE (ToDo: get rid of the images and use only divs!)
+-> DONE 
+-> ToDo: get rid of the images and use only divs!
 
 - the menu points should be displayed "better". 
 -> TODO
 -- Use the krysalis-site menu approach for the overall menu display.
 -> TODO
--- Use the old lenya innermenu approch to further enhance the menu.
--> TODO
--- make the lenya approach configurable.
+-- Use the old lenya innermenu approch to further enhance the menu .
 -> TODO
 
 - the content area needs some attention.
--> TODO (1/3)
+-> DONE
 -- introduce the heading scheme from krysalis (<headings type="clean|box|underlined"/>)
--> DONE (ToDo: make the boxed with round corners)
+-> DONE 
+-> ToDo: make box with round corners
+-> done: make underlined with variable border height
+-> ToDo: make underline with bottom round corner
 -- introduce the toc for each html-page
 -> DONE
 -- introduce the external-link-images.
--> TODO
+-> DONE
 
 - the publish note should be where now only a border is. 
 Like <div id="published"/>
@@ -38,4 +47,4 @@
 -> DONE
 
 - border for published / breadtrail / menu /tab divs 
--> TODO
\ No newline at end of file
+-> ToDo
\ No newline at end of file

Modified: forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	Wed Aug 11 19:47:51
2004
@@ -325,7 +325,7 @@
 <xsl:template match="div[@class = 'skinconf-heading-1']">
     <xsl:choose>
       <xsl:when test="//skinconfig/headings/@type='underlined'">
-      	<h3 class="underlined"><xsl:value-of select="h1"/></h3>
+      	<h3 class="underlined_10"><xsl:value-of select="h1"/></h3>
       </xsl:when>
       <xsl:when test="//skinconfig/headings/@type='boxed'">
 	       <h3 class="boxed"><xsl:value-of select="h1"/></h3>
@@ -339,7 +339,7 @@
   <xsl:template match="div[@class = 'skinconf-heading-2']">
     <xsl:choose>
       <xsl:when test="//skinconfig/headings/@type='underlined'">
-        <h4 class="underlined"><xsl:value-of select="h1"/></h4>
+        <h4 class="underlined_5"><xsl:value-of select="h1"/></h4>
       </xsl:when>
       <xsl:when test="//skinconfig/headings/@type='boxed'">
        	<h4 class="boxed"><xsl:value-of select="h1"/></h4>
@@ -361,7 +361,28 @@
           alt="Valid CSS!" style="height: 31px; width: 88px;"/></a>
     </xsl:if>
   </xsl:template>
-
+ <!-- handle all obfuscating mail links and disabling external link images -->
+  <xsl:template match="a">
+    <xsl:choose>
+      <xsl:when test="$obfuscate-mail-links='true' and starts-with(@href, 'mailto:') and
contains(@href, '@')">
+        <xsl:variable name="mailto-1" select="substring-before(@href,'@')"/>
+        <xsl:variable name="mailto-2" select="substring-after(@href,'@')"/>
+          <a href="{$mailto-1}.at.{$mailto-2}">
+            <xsl:apply-templates/>
+          </a>
+       </xsl:when>
+       <xsl:when test="not($disable-external-link-image='true') and contains(@href, ':')
and not(contains(@href, //skinconfig/group-url)) and not(contains(@href, //skinconfig/project-url))">
+          <a href="{@href}" class="external">
+            <xsl:apply-templates/>
+          </a>
+       </xsl:when>       
+       <xsl:otherwise>
+        <!-- xsl:copy-of makes sure we copy <a href> as well as <a name>
+             or any other <a ...> forms -->
+        <xsl:copy-of select="."/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
   <xsl:template name="menu">
 <xsl:comment>+
     |start Menu

Mime
View raw message