1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 04:34:12 +01:00

Linkify option types.

This commit is contained in:
Kris Maglione
2011-05-26 12:31:27 -04:00
parent fb0c09b8c6
commit 4ba3b0d62a
2 changed files with 12 additions and 5 deletions

View File

@@ -511,10 +511,17 @@
<xsl:apply-templates select="@*|node()" mode="help-1"/>
</div>
</xsl:template>
<xsl:template match="dactyl:str | dactyl:type" mode="help-2">
<span>
<xsl:if test="self::dactyl:str"><xsl:attribute name="dactyl:highlight">HelpString</xsl:attribute></xsl:if>
<xsl:if test="self::dactyl:type"><xsl:attribute name="dactyl:highlight">HelpType</xsl:attribute></xsl:if>
<xsl:template match="dactyl:type" mode="help-2">
<a dactyl:highlight="HelpType">
<xsl:if test="not(. = 'boolean' or . = 'number' or . = 'string')">
<!-- test="contains(ancestor::*/@document-tags, concat(' ', ., ' '))" -->
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
</xsl:if>
<xsl:apply-templates select="@*|node()" mode="help-1"/>
</a>
</xsl:template>
<xsl:template match="dactyl:str" mode="help-2">
<span dactyl:highlight="HelpString">
<xsl:apply-templates select="@*|node()" mode="help-1"/>
</span>
</xsl:template>

View File

@@ -749,7 +749,7 @@ var ConfigBase = Class("ConfigBase", {
HelpTag;;;FontCode display: inline-block; color: #527BBD; margin-left: 1ex; font-weight: normal;
HelpTags display: block; float: right; clear: right;
HelpTopic;;;FontCode color: #102663;
HelpType;;;FontCode margin-right: 2ex;
HelpType;;;FontCode color: #102663 !important; margin-right: 2ex;
HelpWarning color: red; font-weight: bold;