mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 14:35:49 +01:00
Linkify option types.
This commit is contained in:
@@ -511,10 +511,17 @@
|
|||||||
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="dactyl:str | dactyl:type" mode="help-2">
|
<xsl:template match="dactyl:type" mode="help-2">
|
||||||
<span>
|
<a dactyl:highlight="HelpType">
|
||||||
<xsl:if test="self::dactyl:str"><xsl:attribute name="dactyl:highlight">HelpString</xsl:attribute></xsl:if>
|
<xsl:if test="not(. = 'boolean' or . = 'number' or . = 'string')">
|
||||||
<xsl:if test="self::dactyl:type"><xsl:attribute name="dactyl:highlight">HelpType</xsl:attribute></xsl:if>
|
<!-- 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"/>
|
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|||||||
@@ -749,7 +749,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
HelpTag;;;FontCode display: inline-block; color: #527BBD; margin-left: 1ex; font-weight: normal;
|
HelpTag;;;FontCode display: inline-block; color: #527BBD; margin-left: 1ex; font-weight: normal;
|
||||||
HelpTags display: block; float: right; clear: right;
|
HelpTags display: block; float: right; clear: right;
|
||||||
HelpTopic;;;FontCode color: #102663;
|
HelpTopic;;;FontCode color: #102663;
|
||||||
HelpType;;;FontCode margin-right: 2ex;
|
HelpType;;;FontCode color: #102663 !important; margin-right: 2ex;
|
||||||
|
|
||||||
HelpWarning color: red; font-weight: bold;
|
HelpWarning color: red; font-weight: bold;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user