diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-02-25 20:01:53 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-02-28 08:18:54 +0100 |
commit | 66271602df53b2072fb6b9e896e9fd9b292678c8 (patch) | |
tree | b8faca2e8d848bfefd4dfac186642c24cc3d1824 /devbook.xsl | |
parent | devbook.xsl: Suppress // in URIs with literal ## fragments. (diff) | |
download | devmanual-66271602df53b2072fb6b9e896e9fd9b292678c8.tar.gz devmanual-66271602df53b2072fb6b9e896e9fd9b292678c8.tar.bz2 devmanual-66271602df53b2072fb6b9e896e9fd9b292678c8.zip |
Revise the navbar items
The navbar links have been shortened using css resulting in a
fixed navbar size. In addition the searchbar in the lower navbar
has been centered vertically.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r-- | devbook.xsl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/devbook.xsl b/devbook.xsl index e3bb38d..11b4fd5 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -701,7 +701,7 @@ --> <xsl:when test="count(/guide/include) > 0"> <xsl:variable name="doc" select="/guide/include[1]/@href"/> - <a href="{concat($doc, 'index.html')}"><xsl:value-of select="document(concat(/guide/@self, $doc, 'text.xml'))/guide/chapter[1]/title"/>  <span class="fa fa-arrow-right"/></a> + <a class="w-250 text-center" href="{concat($doc, 'index.html')}"><span class="truncated-text d-inline-block max-w-200 mr-2"><xsl:value-of select="document(concat(/guide/@self, $doc, 'text.xml'))/guide/chapter[1]/title"/></span><span class="fa fa-arrow-right"/></a> </xsl:when> <xsl:otherwise> <!-- This document's path --> @@ -734,7 +734,7 @@ <xsl:with-param name="append">../</xsl:with-param> </xsl:call-template> </xsl:variable> - <a href="{concat($relative_path_depth_recursion, $relative_path, 'index.html')}"><xsl:value-of select="document(concat($parentItem_actual, 'text.xml'))/guide/chapter[1]/title"/>  <span class="fa fa-arrow-right"/></a> + <a class="w-250 text-center" href="{concat($relative_path_depth_recursion, $relative_path, 'index.html')}"> <span class="truncated-text d-inline-block max-w-200 mr-2"><xsl:value-of select="document(concat($parentItem_actual, 'text.xml'))/guide/chapter[1]/title"/></span><span class="fa fa-arrow-right"/></a> </xsl:when> <xsl:otherwise> <!-- We need to recurse downwards; so we need to strip off a directory element off our absolute path to feed @@ -781,7 +781,7 @@ * Fully recurse up the node to get the last extremity * Otherwise list the parent --> <xsl:when test="/guide/@root"> - <a href="#"><span class="fa fa-arrow-left"/>  <xsl:value-of select="/guide/chapter[1]/title"/></a> + <a class="w-250 text-center" href="#"><span class="fa fa-arrow-left"/><span class="truncated-text d-inline-block max-w-200 ml-2"><xsl:value-of select="/guide/chapter[1]/title"/></span></a> </xsl:when> <xsl:otherwise> <!-- This document's path --> @@ -804,10 +804,10 @@ </xsl:call-template> </xsl:variable> <!-- Make a relative <a> link; we need an absolute reference for the XSLT processor though... --> - <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 'index.html')}"><span class="fa fa-arrow-left"/>  <xsl:value-of select="document(concat($parentItem_path, $myItem_path))/guide/chapter[1]/title"/></a> + <a class="w-250 text-center" href="{concat('../', substring-before($myItem_path, 'text.xml'), 'index.html')}"><span class="fa fa-arrow-left"/><span class="truncated-text d-inline-block max-w-200 ml-2"><xsl:value-of select="document(concat($parentItem_path, $myItem_path))/guide/chapter[1]/title"/></span></a> </xsl:when> <xsl:otherwise> - <a href="../index.html"><span class="fa fa-arrow-left"/>  <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a> + <a class="w-250 text-center" href="../index.html"><span class="fa fa-arrow-left"/><span class="truncated-text d-inline-block max-w-200 ml-2"><xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></span></a> </xsl:otherwise> </xsl:choose> </xsl:otherwise> |