You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/10/26 11:47:29 UTC
svn commit: r467936 - in /lenya/trunk/src: modules/svg/shape/tab.js
webapp/lenya/resources/css/boxes.xml webapp/lenya/xslt/util/page2xhtml.xsl
Author: andreas
Date: Thu Oct 26 02:47:29 2006
New Revision: 467936
URL: http://svn.apache.org/viewvc?view=rev&rev=467936
Log:
Using extra <div> for lenya box bottoms. Looks good on Mac OS with Firefox 2.0.
Modified:
lenya/trunk/src/modules/svg/shape/tab.js
lenya/trunk/src/webapp/lenya/resources/css/boxes.xml
lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl
Modified: lenya/trunk/src/modules/svg/shape/tab.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/svg/shape/tab.js?view=diff&rev=467936&r1=467935&r2=467936
==============================================================================
--- lenya/trunk/src/modules/svg/shape/tab.js (original)
+++ lenya/trunk/src/modules/svg/shape/tab.js Thu Oct 26 02:47:29 2006
@@ -6,7 +6,7 @@
var x;
var y;
var width;
- var height = 1000;
+ var height = 50;
var maxWidth = 1500;
if (where == "topLeft") {
Modified: lenya/trunk/src/webapp/lenya/resources/css/boxes.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/resources/css/boxes.xml?view=diff&rev=467936&r1=467935&r2=467936
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/css/boxes.xml (original)
+++ lenya/trunk/src/webapp/lenya/resources/css/boxes.xml Thu Oct 26 02:47:29 2006
@@ -33,20 +33,30 @@
}
div.lenya-box-body {
- background: url('<context-prefix/>/modules/svg/tab-bottomLeft-5-F5F4E9-CCCCCC.png') left bottom no-repeat;
}
div.lenya-box-content {
- background: url('<context-prefix/>/modules/svg/tab-bottomRight-5-F5F4E9-CCCCCC.png') right bottom no-repeat;
padding: 10px;
color: Black;
+ background-color: #F5F4E9;
+ border-left: solid 1px #CCCCCC;
+ border-right: solid 1px #CCCCCC;
+}
+
+div.lenya-box-bottom {
+ background: url('<context-prefix/>/modules/svg/tab-bottomLeft-5-F5F4E9-CCCCCC.png') left bottom no-repeat;
+}
+
+div.lenya-box-bottom-content {
+ background: url('<context-prefix/>/modules/svg/tab-bottomRight-5-F5F4E9-CCCCCC.png') right bottom no-repeat;
+ height: 5px;
}
- span.switch {
- width: 2em;
- cursor: pointer;
- background-color: #F5F4E9;
- border: solid 1px #CCCCCC;
- color: Black;
+span.switch {
+ width: 2em;
+ cursor: pointer;
+ background-color: #F5F4E9;
+ border: solid 1px #CCCCCC;
+ color: Black;
}
</css>
Modified: lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl?view=diff&rev=467936&r1=467935&r2=467936
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl Thu Oct 26 02:47:29 2006
@@ -43,7 +43,7 @@
<xsl:if test="page:body//xhtml:div[@class = 'lenya-box-toggled']">
<xsl:call-template name="toggle-script"/>
</xsl:if>
-
+
<xsl:apply-templates select="page:title"/>
<table class="lenya-body" border="0" cellpadding="0" cellspacing="0">
<tr>
@@ -79,12 +79,25 @@
</xsl:template>
+ <xsl:template match="xhtml:div[@class = 'lenya-box']">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ <div class="lenya-box-bottom">
+ <div class="lenya-box-bottom-content"> </div>
+ </div>
+ </xsl:copy>
+ </xsl:template>
+
+
<xsl:template match="xhtml:div[@class = 'lenya-box-toggled']">
<xsl:variable name="number" select="count(preceding::xhtml:div[@class = 'lenya-box-toggled']) + 1"/>
<div class="lenya-box">
<xsl:apply-templates select="@*[local-name() != 'class']|node()">
<xsl:with-param name="number" select="$number"/>
</xsl:apply-templates>
+ <div class="lenya-box-bottom">
+ <div class="lenya-box-bottom-content"> </div>
+ </div>
</div>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org