Venice now groks Cascading StyleSheets; the stylesheet is generated by a
special servlet and cached at runtime; various JSP pages and formatter classes have been updated to respect the stylesheet settings
This commit is contained in:
@@ -41,6 +41,9 @@
|
||||
<!-- Specifies the default <FONT FACE=""> to use for all text. -->
|
||||
<font>Arial, Helvetica</font>
|
||||
|
||||
<!-- Specifies the location of the stylesheet template file. -->
|
||||
<stylesheet>WEB-INF/template.css</stylesheet>
|
||||
|
||||
<!-- Various HTML colors to render portions of the interface in. Note that these may either be
|
||||
standard HTML color names or #RRGGBB color values. -->
|
||||
<colors>
|
||||
@@ -50,6 +53,7 @@
|
||||
<title-link>yellow</title-link> <!-- title links -->
|
||||
<left-bg>#9999FF</left-bg> <!-- left menu bar background -->
|
||||
<left-fg>black</left-fg> <!-- left menu bar foreground -->
|
||||
<left-link>blue</left-link> <!-- left menu bar links -->
|
||||
<content-bg>white</content-bg> <!-- content background -->
|
||||
<content-fg>black</content-fg> <!-- content text -->
|
||||
<content-hdr>#3333AA</content-hdr> <!-- content header text -->
|
||||
@@ -59,6 +63,7 @@
|
||||
<sidebox-title-fg>white</sidebox-title-fg> <!-- foreground of sidebox title (front page) -->
|
||||
<sidebox-content-bg>#9999FF</sidebox-content-bg> <!-- background of sidebox content (front page) -->
|
||||
<sidebox-content-fg>black</sidebox-content-fg> <!-- foreground of sidebox content (front page) -->
|
||||
<sidebox-content-link>blue</sidebox-content-link> <!-- links in sidebox content (front page) -->
|
||||
<confirm-title-bg>#006600</confirm-title-bg> <!-- background of confirm box title bar -->
|
||||
<confirm-title-fg>white</confirm-title-fg> <!-- foreground of confirm box title bar -->
|
||||
<error-title-bg>#660000</error-title-bg> <!-- background of error box title bar -->
|
||||
|
||||
53
etc/template.css
Normal file
53
etc/template.css
Normal file
@@ -0,0 +1,53 @@
|
||||
<STYLE TYPE="text/css">
|
||||
<!--
|
||||
BODY { font-family: ${font}, sans-serif; background: ${color.frame};
|
||||
}
|
||||
.tbar { font-family: ${font}, sans-serif; background: ${color.top.background};
|
||||
color: ${color.top.foreground}; font-size: 14pt;
|
||||
}
|
||||
A.tbar { color: ${color.top.link};
|
||||
}
|
||||
A.tbar:link { color: ${color.top.link};
|
||||
}
|
||||
A.tbar:visited { color: ${color.top.link};
|
||||
}
|
||||
.lbar { font-family: ${font}, sans-serif; background: ${color.left.background};
|
||||
color: ${color.left.foreground}; font-size: 12pt;
|
||||
}
|
||||
A.lbar { color: ${color.left.link};
|
||||
}
|
||||
A.lbar:link { color: ${color.left.link};
|
||||
}
|
||||
A.lbar:visited { color: ${color.left.link};
|
||||
}
|
||||
.content { font-family: ${font}, sans-serif; background: ${color.content.background};
|
||||
color: ${color.content.foreground}; font-size: 12pt;
|
||||
}
|
||||
.chead1 { font-family: ${font}, sans-serif; font-size: 18pt; color: ${color.content.header};
|
||||
}
|
||||
.chead2 { font-family: ${font}, sans-serif; font-size: 14pt; color: ${color.content.header};
|
||||
}
|
||||
.cinput { font-family: Courier New, Courier, monospace; font-size: 10pt;
|
||||
}
|
||||
.c2 { font-family: ${font}, sans-serif; background: ${color.content.background};
|
||||
color: ${color.content.foreground}; font-size: 10pt;
|
||||
}
|
||||
.post { font-family: Courier New, Courier, monospace; font-size: 10pt;
|
||||
}
|
||||
.footer { font-family: ${font}, sans-serif; background: ${color.content.background};
|
||||
color: ${color.content.foreground}; font-size: 8pt;
|
||||
}
|
||||
.sideboxtop { font-family: ${font}, sans-serif; background: ${color.sidebox.top.background};
|
||||
color: ${color.sidebox.top.foreground}; font-size: 14pt;
|
||||
}
|
||||
.sidebox { font-family: ${font}, sans-serif; background: ${color.sidebox.background};
|
||||
color: ${color.sidebox.foreground}; font-size: 12pt;
|
||||
}
|
||||
A.sidebox { color: ${color.sidebox.link};
|
||||
}
|
||||
A.sidebox:link { color: ${color.sidebox.link};
|
||||
}
|
||||
A.sidebox:visited { color: ${color.sidebox.link};
|
||||
}
|
||||
-->
|
||||
</STYLE>
|
||||
27
etc/web.xml
27
etc/web.xml
@@ -32,16 +32,16 @@
|
||||
Modify as needed to suit your system. -->
|
||||
<context-param>
|
||||
<param-name>logging.config</param-name>
|
||||
<param-value>/home/erbo/venice/WEB-INF/logging-config.xml</param-value>
|
||||
<param-value>WEB-INF/logging-config.xml</param-value>
|
||||
<description>
|
||||
The full path and file name of the LOG4J configuration file, which needs
|
||||
to be loaded into LOG4J's DOMConfigurator at start-up.
|
||||
The path and file name, relative to the application root directory, of the LOG4J configuration file,
|
||||
which needs to be loaded into LOG4J's DOMConfigurator at start-up.
|
||||
</description>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<param-name>venice.config</param-name>
|
||||
<param-value>/home/erbo/venice/WEB-INF/venice-config.xml</param-value>
|
||||
<param-value>WEB-INF/venice-config.xml</param-value>
|
||||
<description>
|
||||
The full path and file name of the Venice engine configuration file, which
|
||||
needs to be loaded into the Venice engine at start-up.
|
||||
@@ -50,10 +50,10 @@
|
||||
|
||||
<context-param>
|
||||
<param-name>render.config</param-name>
|
||||
<param-value>/home/erbo/venice/WEB-INF/render-config.xml</param-value>
|
||||
<param-value>WEB-INF/render-config.xml</param-value>
|
||||
<description>
|
||||
The full path and file name of the Venice rendering configuration file, which
|
||||
needs to be loaded into the Venice rendering system at start-up.
|
||||
The path and file name, relative to the application root directory, of the Venice rendering
|
||||
configuration file, which needs to be loaded into the Venice rendering system at start-up.
|
||||
</description>
|
||||
</context-param>
|
||||
|
||||
@@ -222,6 +222,14 @@
|
||||
<servlet-class>com.silverwrist.venice.servlets.UserPhoto</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>stylesheet</servlet-name>
|
||||
<description>
|
||||
Generates the stylesheet included by the top-level JSP file).
|
||||
</description>
|
||||
<servlet-class>com.silverwrist.venice.servlets.StyleSheet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- the following are test servlets, they should go away -->
|
||||
|
||||
<servlet>
|
||||
@@ -335,6 +343,11 @@
|
||||
<url-pattern>/userphoto</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>stylesheet</servlet-name>
|
||||
<url-pattern>/stylesheet</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- the following are test servlets, they should go away -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>testformdata</servlet-name>
|
||||
|
||||
Reference in New Issue
Block a user