Update of /cvsroot/phpwebsite-comm/themes/debug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25352
Modified Files:
theme.php
Added Files:
blue-style.css
Log Message:
added alternate stylesheet example
Index: theme.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/themes/debug/theme.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** theme.php 22 May 2004 19:12:06 -0000 1.3
--- theme.php 24 May 2004 16:49:03 -0000 1.4
***************
*** 2,6 ****
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")){ header("Content-Type: application/xhtml+xml; charset=UTF-8");
$THEME["DOCTYPE"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
! <?xml-stylesheet href=\"./themes/Default/style.css\" type=\"text/css\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">
--- 2,7 ----
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")){ header("Content-Type: application/xhtml+xml; charset=UTF-8");
$THEME["DOCTYPE"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
! <?xml-stylesheet alternate=\"yes\" title=\"Blue\" href=\"./themes/Default/blue-style.css\" type=\"text/css\"?>
! <?xml-stylesheet title=\"Orange\" href=\"./themes/Default/style.css\" type=\"text/css\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">
--- NEW FILE: blue-style.css ---
BODY {
font-size : 1em;
font-family : Arial, Helvetica, sans-serif;
font-weight : normal;
color : #000000;
background-color : white;
margin : 0 0 0 0;
padding : 0 0 0 0;
width : auto;
}
H1 {
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : bold;
font-size : 1.2em;
color : #000000;
background-color : transparent;
}
p {
font-size : .9em;
font-family : Arial, Helvetica, sans-serif;
}
.smalltext {
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
font-size : .9em;
}
.smalltext a:link{
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
}
.smalltext a:visited{
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
}
.noline a:link{
text-decoration : none;
}
.noline a:visited{
text-decoration : none;
}
.largetext {
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
font-size : 1.2em;
}
.largetext a:link{
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
font-size : 1.2em;
}
.largetext a:visited{
font-family : Arial, Helvetica, sans-serif;
font-style : normal;
font-variant : normal;
font-weight : normal;
font-size : 1.2em;
}
.errortext {
font-family : Arial, Helvetica, sans-serif;
font-size : .9em;
color : red;
font-weight : bold;
}
.grid {
border : #efb240 .05em solid;
}
.white {
background-color : white;
}
.black {
background-color : black;
}
.bg_dark {
background-color : #006699;
}
.bg_medium {
background-color : #3399cc;
}
.bg_light {
background-color : #66ccff;
}
.alt_bg_dark {
background-color : #003399;
}
.alt_bg_medium {
background-color : #3366cc;
}
.alt_bg_light {
background-color : #6699ff;
}
|