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 2003/11/06 19:22:19 UTC
cvs commit: cocoon-lenya/src/webapp/lenya lenya.xmap
andreas 2003/11/06 10:22:19
Modified: src/webapp/lenya/resources/css menu.css
src/webapp/lenya/xslt/menu menu2xhtml.xsl
src/webapp/lenya lenya.xmap
Added: src/webapp/lenya/resources/css menu.xml css.xsl
Log:
dynamic CSS generation to include context prefix
Revision Changes Path
1.13 +2 -138 cocoon-lenya/src/webapp/lenya/resources/css/menu.css
Index: menu.css
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/resources/css/menu.css,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- menu.css 6 Nov 2003 17:49:00 -0000 1.12
+++ menu.css 6 Nov 2003 18:22:19 -0000 1.13
@@ -1,138 +1,2 @@
-
-#lenya-menubar {
- position: absolute;
- top: 0px;
- left: 0px;
- z-index: 2;
-}
-
-#lenya-cmsbody {
- position: absolute;
- top: 55px;
- left: 0px;
- z-index: 1;
-}
-
-table.lenya-menubar-menu a { color: #3360AA; text-decoration:none; background-color: transparent; }
-table.lenya-menubar-menu a:hover { color: #FF3333; background-color: transparent; }
-table.lenya-menubar-menu a:visited { color: #6688AA; background-color: transparent; }
-table.lenya-menubar-menu a:visited:hover { color: #FF3333; background-color: transparent; }
-
-table.lenya-menubar-menu img {border:0px}
-
-#navTopBG {
- font-family: verdana, helvetica, sans-serif;
- height: 22px;
- background-repeat: repeat-x;
- font-size: 10pt;
- color: #333333;
-}
-
-#navBlue {
- height: 6px;
- background-image: url('/lenya/lenya/menu/images/unten.gif');
- background-repeat: repeat-x;
- padding-top: 1px
-}
-
-#menuSearch, #menuHelp, #menuFile, #menuDebug {
- position:absolute;
- display:block;
- visibility:hidden;
- width:170px;
- top:54px;
- overflow: hidden;
-}
-
-.lenya-menubar-menu-disabled {
- color: #AAAAAA;
-}
-
-#menuFile {left:14px;}
-#menuSearch {left:114px;}
-#menuHelp {left:214px;}
-#menuDebug {left:314px;}
-
-
-.menuOutline {
- border: 1px solid #666666;
- border-top: 0px;
- padding: 2px;
- background-color: #EEEEEE;
-
-/*
- background-image: url('/lenya/lenya/menu/images/transparent_background_2.gif');
- background-position: 3px 3px;
- background-repeat: no-repeat;
-*/
-}
-
-.menuBg {
-
-/* width: 150; */
- padding: 2px;
- background-color: #EEEEEE;
- background-repeat: repeat;
- background-attachment: scroll;
- background-image: url('/lenya/lenya/menu/images/bottombg.gif');
-
-/* border: 1px solid #FFFFFF; */
- background-position: 0%;
- color: black;
-}
-
-.menuBg .mI, .menuBg .mI:visited {
- display:block;
- padding: 2px 4px;
- font:11px verdana, arial, sans-serif;
- color:#444444;
- background-color: transparent;
-}
-
-.lenya-menubar-separator {
- height: 1px;
- margin: 3px 0px;
- background-color: #EEEEEE;
- background-repeat: repeat;
- background-attachment: scroll;
- background-image: url('/lenya/lenya/menu/images/dotted.gif');
- background-position: 0% 50%;
-}
-
-.lenya-menubar-infoline {
- margin-right: 10px;
- color: #FFFFFF;
- font-size: x-small;
- font-family: verdana, geneva, arial, helvetica, sans-serif;
-}
-
-.menuBg a.mI:hover {
- background:#FFFFFF;
- color: black;
-}
-
-.menuBg span.mI {
- color: #AAAAAA;
- background-color: transparent;
-}
-
-.click {
- cursor:pointer
-}
-
-.menuBg a {
- color: #0066FF;
- text-decoration: none;
- background-color: transparent;
-}
-
-.menuBg a:visited {
- color: #0066FF;
- text-decoration: none;
- background-color: transparent;
-}
-
-#page {
- width:100%;
- height:100%;
-}
+just a dummy file
+use menu.xml instead
\ No newline at end of file
1.1 cocoon-lenya/src/webapp/lenya/resources/css/menu.xml
Index: menu.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<css>
#lenya-menubar {
position: absolute;
top: 0px;
left: 0px;
z-index: 2;
}
#lenya-cmsbody {
position: absolute;
top: 55px;
left: 0px;
z-index: 1;
}
table.lenya-menubar-menu a { color: #3360AA; text-decoration:none; background-color: transparent; }
table.lenya-menubar-menu a:hover { color: #FF3333; background-color: transparent; }
table.lenya-menubar-menu a:visited { color: #6688AA; background-color: transparent; }
table.lenya-menubar-menu a:visited:hover { color: #FF3333; background-color: transparent; }
table.lenya-menubar-menu img {border:0px}
#navTopBG {
font-family: verdana, helvetica, sans-serif;
height: 22px;
background-image: url('<context-prefix/>/lenya/menu/images/menu-bg_2.gif');
background-repeat: repeat-x;
font-size: 10pt;
color: #333333;
}
#navBlue {
height: 6px;
background-image: url('<context-prefix/>/lenya/menu/images/unten.gif');
background-repeat: repeat-x;
padding-top: 1px
}
#menuSearch, #menuHelp, #menuFile, #menuDebug {
position:absolute;
display:block;
visibility:hidden;
width:170px;
top:54px;
overflow: hidden;
}
.lenya-menubar-menu-disabled {
color: #AAAAAA;
}
#menuFile {left:14px;}
#menuSearch {left:114px;}
#menuHelp {left:214px;}
#menuDebug {left:314px;}
.menuOutline {
border: 1px solid #666666;
border-top: 0px;
padding: 2px;
background-color: #EEEEEE;
}
.menuBg {
/* width: 150; */
padding: 2px;
background-color: #EEEEEE;
background-repeat: repeat;
background-attachment: scroll;
/* border: 1px solid #FFFFFF; */
background-image: url('<contextprefix/>/lenya/menu/images/bottombg.gif');
background-position: 0%;
color: black;
}
.menuBg .mI, .menuBg .mI:visited {
display:block;
padding: 2px 4px;
font:11px verdana, arial, sans-serif;
color:#444444;
background-color: transparent;
}
.lenya-menubar-separator {
height: 1px;
margin: 3px 0px;
background-color: #EEEEEE;
background-repeat: repeat;
background-attachment: scroll;
background-image: url('<context-prefix/>/lenya/menu/images/dotted.gif');
background-position: 0% 50%;
}
.lenya-menubar-infoline {
margin-right: 10px;
color: #FFFFFF;
font-size: x-small;
font-family: verdana, geneva, arial, helvetica, sans-serif;
}
.menuBg a.mI:hover {
background:#FFFFFF;
color: black;
}
.menuBg span.mI {
color: #AAAAAA;
background-color: transparent;
}
.click {
cursor:pointer
}
.menuBg a {
color: #0066FF;
text-decoration: none;
background-color: transparent;
}
.menuBg a:visited {
color: #0066FF;
text-decoration: none;
background-color: transparent;
}
#page {
width:100%;
height:100%;
}
</css>
1.1 cocoon-lenya/src/webapp/lenya/resources/css/css.xsl
Index: css.xsl
===================================================================
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="contextprefix"/>
<xsl:output method="text"/>
<xsl:template match="css">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="context-prefix">
<xsl:value-of select="$contextprefix"/>
</xsl:template>
</xsl:stylesheet>
1.13 +2 -2 cocoon-lenya/src/webapp/lenya/xslt/menu/menu2xhtml.xsl
Index: menu2xhtml.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/menu/menu2xhtml.xsl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- menu2xhtml.xsl 6 Nov 2003 17:48:51 -0000 1.12
+++ menu2xhtml.xsl 6 Nov 2003 18:22:19 -0000 1.13
@@ -106,7 +106,7 @@
<tr valign="top">
<td valign="top" colspan="3">
<div id="navTop">
- <div id="navTopBG" style="background-image: url('{$contextprefix}/lenya/menu/images/menu-bg_2.gif');">
+ <div id="navTopBG">
<div style="height: 100%; padding: 3px 0px;">
<div style="float:left; width:12px; border-right: solid 1px #999999;"> </div>
<xsl:apply-templates select="menu:menus/menu:menu" mode="nav"/> 
@@ -175,7 +175,7 @@
<xsl:template match="menu:menu" mode="menu">
<div id="menu{@label}" class="menuOutline">
- <div class="menuBg">
+ <div class="menuBg" style="">
<xsl:apply-templates select="menu:block[not(@info = 'false') and starts-with($completearea, 'info') or not(@authoring = 'false') and not(starts-with($completearea, 'info'))]"/>
</div>
</div>
1.7 +7 -0 cocoon-lenya/src/webapp/lenya/lenya.xmap
Index: lenya.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/lenya.xmap,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- lenya.xmap 11 Apr 2003 15:47:43 -0000 1.6
+++ lenya.xmap 6 Nov 2003 18:22:19 -0000 1.7
@@ -32,6 +32,13 @@
</map:pipeline>
<map:pipeline>
<map:match pattern="css/**.css">
+ <map:act type="resource-exists" src="resources/css/{1}.xml">
+ <map:generate src="resources/css/{../1}.xml"/>
+ <map:transform src="resources/css/css.xsl">
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize type="text"/>
+ </map:act>
<map:read src="resources/css/{1}.css" mime-type="text/css"/>
</map:match>
<map:handle-errors>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org