All temporary updates to make reference.xml SPARKLE!
It looks pretty damn sweet right now, but it could definitely still do with some work. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6635 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -0,0 +1,234 @@
|
||||
/* ZLIB licensed, (C) 2007 Adrian 'driAn' Henke, http://www.sprintf.org */
|
||||
|
||||
/*
|
||||
styles for the reference - the old one, HACKED TO PIECES!!
|
||||
|
||||
|
||||
this file can be as messy as whatever, it's gonna be deleted eventually :)
|
||||
*/
|
||||
|
||||
|
||||
/* fix positioned menu */
|
||||
|
||||
div#fixedmenu a
|
||||
{
|
||||
visibility: visible;
|
||||
position: fixed;
|
||||
padding: 5px;
|
||||
left: 10px;
|
||||
bottom: 10px;
|
||||
font-size: 16px;
|
||||
font-family: Courier New, Sans-Serif;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
border: solid 2px black;
|
||||
background-color: #444444;
|
||||
color: Black;
|
||||
}
|
||||
|
||||
body > div#fixedmenu a /* broken browsers will ignore this and therefore keep the menu hidden */
|
||||
{
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
div#fixedmenu a:hover
|
||||
{
|
||||
background-color: #555555;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* contents */
|
||||
|
||||
div#contents
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/* identifier */
|
||||
|
||||
div.section div.identifier
|
||||
{
|
||||
padding: 0 0 10px 0;
|
||||
margin: 0 0 0 20px;
|
||||
}
|
||||
|
||||
/* display name */
|
||||
|
||||
div.section div.identifier div.displayname
|
||||
{
|
||||
font-family: Courier New, Sans-Serif;
|
||||
margin: 1em 0 1em -20px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.displayname a
|
||||
{
|
||||
color: #007190;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* command arguments */
|
||||
|
||||
div.section div.identifier div.argumentDescriptions
|
||||
{
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-collapse: collapse;
|
||||
width : 100%;
|
||||
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table td
|
||||
{
|
||||
border: solid 1px #777777;
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table th
|
||||
{
|
||||
font-weight: normal;
|
||||
color: #333333;
|
||||
background-color: #777777;
|
||||
border: solid 1px #777777;
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table tr td.token
|
||||
{
|
||||
font-style: italic;
|
||||
width: 65px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table tr td.description
|
||||
{
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.argumentDescriptions table tr td.values
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/* variable value */
|
||||
|
||||
div.section div.identifier div.valueDescription
|
||||
{
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table td
|
||||
{
|
||||
border: solid 1px #777777;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table th
|
||||
{
|
||||
font-weight: normal;
|
||||
color: #333333;
|
||||
background-color: #777777;
|
||||
border: solid 1px #777777;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table tr td.token
|
||||
{
|
||||
font-style: italic;
|
||||
width: 65px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table tr td.description
|
||||
{
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table tr td.values
|
||||
{
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table tr td.range
|
||||
{
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
div.section div.identifier div.valueDescription table tr td.defaultValue
|
||||
{
|
||||
text-align: right;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
/* remarks */
|
||||
|
||||
div.section div.identifier div.remarks
|
||||
{
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.section div.identifier div.remarks div.remark
|
||||
{
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
|
||||
/* references */
|
||||
|
||||
div.section div.identifier div.references
|
||||
{
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
div.section div.identifier div.references a.internal
|
||||
{
|
||||
font-family: Courier New, Sans-Serif;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
div.section div.identifier div.references a.external
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
div.section div.identifier div.references span.none
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/* examples */
|
||||
|
||||
div.section div.identifier div.examples
|
||||
{
|
||||
margin: 0;
|
||||
padding : 0;
|
||||
}
|
||||
|
||||
div.section div.identifier div.examples div.code
|
||||
{
|
||||
margin: 10px 0 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.section div.identifier div.examples div.exampleExplanation
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
/* return value */
|
||||
|
||||
div.section div.identifier div.return
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/* side contentspanel */
|
||||
|
||||
.docsmain {
|
||||
clear : none;
|
||||
float : left;
|
||||
width : 720px;
|
||||
}
|
||||
|
||||
#gohome {
|
||||
width : 720px;
|
||||
}
|
||||
|
||||
.commandlist {
|
||||
margin-top : 15px;
|
||||
font-size : 17px;
|
||||
text-align : center;
|
||||
padding : 5px 0px;
|
||||
font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
color: #FFFFFF;
|
||||
border : solid 2px #00303D;
|
||||
background-color: #101010;
|
||||
float: right;
|
||||
clear : right;
|
||||
width : 136px;
|
||||
}
|
||||
|
||||
div#contentspanel
|
||||
{
|
||||
margin-top : 10px;
|
||||
float: right;
|
||||
clear : right;
|
||||
width: 140px;
|
||||
word-wrap: break-word;
|
||||
margin-left : 10px;
|
||||
font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
text-align: left;
|
||||
background-color: #101010;
|
||||
}
|
||||
|
||||
div#contentspanel div.sectiontitle
|
||||
{
|
||||
padding-left: 10px;
|
||||
height: 20px;
|
||||
background-color: #252525;
|
||||
border-bottom : solid 1px #000000;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
margin : 0px;
|
||||
line-height : 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
div#contentspanel ul
|
||||
{
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
padding-left : -10px;
|
||||
margin: 10px;
|
||||
|
||||
}
|
||||
|
||||
div#contentspanel a
|
||||
{
|
||||
text-decoration: none;
|
||||
color: #E0E0E0;
|
||||
}
|
||||
|
||||
div#contentspanel div.identifiers a
|
||||
{
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 110px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div#contentspanel div.identifiers a:hover
|
||||
{
|
||||
width: 110px;
|
||||
border-right: solid 10px #777777;
|
||||
background-color: #666666;
|
||||
|
||||
}
|
||||
@@ -1,12 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- ZLIB licensed, (C) 2007 Adrian 'driAn' Henke, http://www.sprintf.org -->
|
||||
|
||||
<!--
|
||||
transforms a cuberef document to a xhtml document
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:t="http://cubers.net/Schemas/CubeRef">
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:t="http://cubers.net/Schemas/CubeRef">
|
||||
<!-- ZLIB licensed, (C) 2007 Adrian 'driAn' Henke, http://www.sprintf.org -->
|
||||
<!-- This file transforms reference.xml into an XHTML webpage. -->
|
||||
<xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
|
||||
|
||||
|
||||
@@ -43,69 +38,57 @@
|
||||
<xsl:template match="/t:cuberef">
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="@name"/>
|
||||
</title>
|
||||
<meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />
|
||||
<link rel="stylesheet" href="styles/cuberef.css"/>
|
||||
<link rel="shortcut icon" href="images/favicon.ico" />
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8" />
|
||||
<meta name="robots" content="NOODP" />
|
||||
<meta name="author" content="Rabid Viper Productions" />
|
||||
<meta name="copyright" content="You may be able to redistribute this content under specific conditions.
|
||||
Please read the licensing information, available @ http://assault.cubers.net/docs/license.html for the
|
||||
conditions that would apply to what you may be redistributing." />
|
||||
<title>AssaultCube Documentation :: CubeScript command reference</title>
|
||||
<!-- TEMP -->
|
||||
<link rel="stylesheet" href="css/oldrefcss.css" />
|
||||
<!-- /TEMP -->
|
||||
<link rel="stylesheet" href="css/main.css" />
|
||||
<link rel="stylesheet" href="css/docs.css" />
|
||||
<link rel="stylesheet" href="css/referencexml.css" />
|
||||
<!--#include virtual="/SSI-HTML/docs/invisibility.html" -->
|
||||
<link rel="shortcut icon" href="images/favicon.ico" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="fixedmenu">
|
||||
<a href="#">TOP</a>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
||||
<div id="container">
|
||||
<div id="docsheader">
|
||||
AssaultCube Documentation
|
||||
</div>
|
||||
<div id="logo">
|
||||
<img src="images/head.gif" alt="AssaultCube logo" />
|
||||
<a href="index.html"><img src="images/aclogo.png"
|
||||
alt="AssaultCube" width="193px" height="81px" /></a>
|
||||
</div>
|
||||
<div id="menubar">
|
||||
<!--#include virtual="/SSI-HTML/docs/navigation_box_docs.html" -->  
|
||||
</div>
|
||||
<!--#include virtual="/SSI-HTML/docs/docswarn.html" -->
|
||||
<div class="docsmain">
|
||||
<div id="gohome">
|
||||
<a href="index.html">Go to documentation index ↵</a>
|
||||
</div>
|
||||
<div id="fixedmenu">
|
||||
<a href="#">TOP</a>
|
||||
</div>
|
||||
<h2>
|
||||
CubeScript command reference
|
||||
</h2>
|
||||
|
||||
|
||||
|
||||
<!-- reference title -->
|
||||
<div id="title">
|
||||
<h1>
|
||||
<xsl:value-of select="@name"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<!-- contents panel -->
|
||||
<div id="contentspanel">
|
||||
<xsl:if test="t:sections">
|
||||
<xsl:for-each select="t:sections/t:section">
|
||||
<xsl:sort select="@sortindex[not(../../@sort) or ../../@sort = 'true' or ../../@sort = '1']"/>
|
||||
<div class="sectiontitle">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>#section_</xsl:text>
|
||||
<xsl:value-of select="translate(@name, ' ', '_')"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@name"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="identifiers">
|
||||
<xsl:if test="t:identifiers">
|
||||
<ul>
|
||||
<xsl:for-each select="t:identifiers/*">
|
||||
<xsl:sort select="@name[not(../../@sort) or ../../@sort = 'true' or ../../@sort = '1']"/>
|
||||
<li>
|
||||
<xsl:call-template name="identifierLink"/>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<!-- contents -->
|
||||
<div id="contents">
|
||||
<h2>
|
||||
<h4>
|
||||
Contents
|
||||
</h2>
|
||||
</h4>
|
||||
<p>
|
||||
<xsl:value-of select="t:description"/>
|
||||
</p>
|
||||
@@ -369,8 +352,41 @@
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
<!-- XML: CONTENTS PANEL -->
|
||||
<div class="commandlist">
|
||||
CubeScript command & variable list
|
||||
</div>
|
||||
<div id="contentspanel">
|
||||
<xsl:if test="t:sections">
|
||||
<xsl:for-each select="t:sections/t:section">
|
||||
<xsl:sort select="@sortindex[not(../../@sort) or ../../@sort = 'true' or ../../@sort = '1']"/>
|
||||
<div class="sectiontitle">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>#section_</xsl:text>
|
||||
<xsl:value-of select="translate(@name, ' ', '_')"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@name"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="identifiers">
|
||||
<xsl:if test="t:identifiers">
|
||||
<ul>
|
||||
<xsl:for-each select="t:identifiers/*">
|
||||
<xsl:sort select="@name[not(../../@sort) or ../../@sort = 'true' or ../../@sort = '1']"/>
|
||||
<li>
|
||||
<xsl:call-template name="identifierLink"/>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</div>
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
</xsl:transform>
|
||||
|
||||
Reference in New Issue
Block a user