Skip to content

Commit

Permalink
Migrate it to suse2022-ns
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed Jul 26, 2022
1 parent 20f08d7 commit 7588360
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ div.variablelist


.glossary,
.variablelist
.variablelist,
.glosslist
dt
color: $c_pine
font-weight: 600
Expand Down Expand Up @@ -103,15 +104,17 @@ div.variablelist
.list-of-examples,
.list-of-figures,
.list-of-procedures,
.list-of-tables
.list-of-tables,
.glosslist
dl
margin: 5px 0 17px 0
padding: 0 0 0 30px


.glossary,
.toc,
.variablelist
.variablelist,
.glosslist
dd > p
margin: 0

Expand Down Expand Up @@ -188,6 +191,7 @@ div.figure

.example-title,
.figure-title,
.glosslist-title,
.itemizedlist-title,
.orderedlist-title,
.procedure-title,
Expand All @@ -204,6 +208,7 @@ div.figure
.example-title,
.itemizedlist-title,
.procedure-title,
.glosslist-title,
.table-title,
.variablelist-title
padding-top: 0
Expand Down Expand Up @@ -241,6 +246,7 @@ div.figure

.example-title,
.figure-title,
.glosslist-title,
.itemizedlist-title,
.orderedlist-title,
.procedure-title,
Expand Down
16 changes: 13 additions & 3 deletions suse2022-ns/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2692,7 +2692,8 @@ div.variablelist {
margin: 24px 0; }

.glossary dt,
.variablelist dt {
.variablelist dt,
.glosslist dt {
color: #0c322c;
font-weight: 600;
margin: 0;
Expand Down Expand Up @@ -2724,13 +2725,15 @@ div.variablelist {
.list-of-examples dl,
.list-of-figures dl,
.list-of-procedures dl,
.list-of-tables dl {
.list-of-tables dl,
.glosslist dl {
margin: 5px 0 17px 0;
padding: 0 0 0 30px; }

.glossary dd > p,
.toc dd > p,
.variablelist dd > p {
.variablelist dd > p,
.glosslist dd > p {
margin: 0; }

div.figure {
Expand Down Expand Up @@ -2795,6 +2798,7 @@ div.figure {

.example-title,
.figure-title,
.glosslist-title,
.itemizedlist-title,
.orderedlist-title,
.procedure-title,
Expand All @@ -2810,6 +2814,7 @@ div.figure {
.example-title,
.itemizedlist-title,
.procedure-title,
.glosslist-title,
.table-title,
.variablelist-title {
padding-top: 0;
Expand Down Expand Up @@ -2848,6 +2853,11 @@ div.figure {
.figure-title .package,
.figure-title .replaceable,
.figure-title code,
.glosslist-title .keycap,
.glosslist-title .literal,
.glosslist-title .package,
.glosslist-title .replaceable,
.glosslist-title code,
.itemizedlist-title .keycap,
.itemizedlist-title .literal,
.itemizedlist-title .package,
Expand Down
49 changes: 49 additions & 0 deletions suse2022-ns/xhtml/glossary.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,53 @@
<xsl:apply-templates select="d:indexterm|d:revhistory|d:glosssee|d:glossdef"/>
</xsl:template>


<xsl:template match="d:glossseealso">
<xsl:variable name="otherterm" select="(@otherterm|@linkend)[1]"/><!-- SUSE -->
<xsl:variable name="targets" select="key('id', $otherterm)"/>
<xsl:variable name="target" select="$targets[1]"/>
<xsl:variable name="xlink" select="@xlink:href"/>

<xsl:choose>
<xsl:when test="$target">
<a>
<xsl:apply-templates select="." mode="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:attribute name="href">
<xsl:call-template name="href.target">
<xsl:with-param name="object" select="$target"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="$target" mode="xref-to"/>
</a>
</xsl:when>
<xsl:when test="$xlink">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:text>Warning: glossseealso @otherterm reference not found: </xsl:text>
<xsl:value-of select="$otherterm"/>
</xsl:message>
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="position() = last()"/>
<xsl:otherwise>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'glossary'"/>
<xsl:with-param name="name" select="'seealso-separator'"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 7588360

Please sign in to comment.