summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2017-09-13 17:24:30 -0400
committerShaun McCance <shaunm@redhat.com>2017-09-13 17:25:07 -0400
commit3f2a19c4366257ff5846720b28f7db1b103f541c (patch)
treef6195209fb07536cfdcab619e4ef3405240f9c9c /xslt
parentb8ceabebc487cd9810be458ffc14fc194751942d (diff)
downloadyelp-xsl-3f2a19c4366257ff5846720b28f7db1b103f541c.tar.gz
Rework editor mode banners for new layout
Diffstat (limited to 'xslt')
-rw-r--r--xslt/mallard/html/mal2html-page.xsl20
1 files changed, 7 insertions, 13 deletions
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 5639a829..0a053e10 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -483,7 +483,7 @@ of ${node}. It only outputs a banner if @{mal2html.editor_mode} is #{true}.
select="$node/mal:info/mal:revision
[@date = $date or (not(@date) and $date = '')][last()]"/>
<xsl:if test="$revision/@status != ''">
- <div class="version">
+ <div class="note note-version pagewide"><div class="inner">
<!-- FIXME: i18n -->
<div class="title">
<xsl:choose>
@@ -524,6 +524,7 @@ of ${node}. It only outputs a banner if @{mal2html.editor_mode} is #{true}.
</xsl:when>
</xsl:choose>
</div>
+ <div class="region"><div class="contents">
<xsl:variable name="version">
<xsl:choose>
<xsl:when test="$revision/@version">
@@ -548,7 +549,8 @@ of ${node}. It only outputs a banner if @{mal2html.editor_mode} is #{true}.
</p>
</xsl:if>
<xsl:apply-templates mode="mal2html.block.mode" select="$revision/*"/>
- </div>
+ </div></div>
+ </div></div>
</xsl:if>
</xsl:if>
</xsl:template>
@@ -1354,20 +1356,12 @@ a.gloss-term:hover span.gloss-desc, a.gloss-term:focus span.gloss-desc {
</xsl:text>
<xsl:if test="$mal2html.editor_mode">
<xsl:text>
-div.version {
- position: absolute;
- </xsl:text><xsl:value-of select="$right"/><xsl:text>: 12px;
- opacity: 0.2;
- margin-top: -1em;
- padding: 0.5em 1em 0.5em 1em;
- max-width: 24em;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$color.gray"/><xsl:text>;
+div.note-version {
background-color: </xsl:text>
<xsl:value-of select="$color.bg.yellow"/><xsl:text>;
+ margin-top: 1em;
+ margin-bottom: 1em;
}
-div.version:hover { opacity: 0.8; }
-div.version p.version { margin-top: 0.2em; }
span.status {
font-size: 0.83em;
font-weight: normal;