[yelp-xsl] mal2html-ui: Change ui:thumbs="grid" to "tiles"
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-ui: Change ui:thumbs="grid" to "tiles"
- Date: Sat, 27 Oct 2012 18:18:09 +0000 (UTC)
commit 25b9265db99361d5c314bb2cf7eb309788e3a062
Author: Shaun McCance <shaunm gnome org>
Date: Sat Oct 27 14:10:56 2012 -0400
mal2html-ui: Change ui:thumbs="grid" to "tiles"
It really wasn't a grid.
xslt/mallard/html/mal2html-links.xsl | 6 +++---
xslt/mallard/html/mal2html-page.xsl | 14 +++++++-------
xslt/mallard/html/mal2html-ui.xsl | 14 +++++++-------
3 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index 55af40f..f218895 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -122,7 +122,7 @@ parameter will be used if provided.
<xsl:variable name="uithumbs">
<xsl:variable name="uithumbs_">
<xsl:for-each select="str:split(@ui:thumbs)">
- <xsl:if test="string(.)='grid' or string(.)='hover'">
+ <xsl:if test="string(.)='tiles' or string(.)='hover'">
<xsl:value-of select="."/>
</xsl:if>
<xsl:text> </xsl:text>
@@ -137,8 +137,8 @@ parameter will be used if provided.
<xsl:with-param name="links" select="$links"/>
</xsl:call-template>
</xsl:when>
- <xsl:when test="$uithumbs = 'grid'">
- <xsl:call-template name="mal2html.ui.links.grid">
+ <xsl:when test="$uithumbs = 'tiles'">
+ <xsl:call-template name="mal2html.ui.links.tiles">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="links" select="$links"/>
<xsl:with-param name="role" select="$role"/>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index f09e442..79bb82e 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -918,13 +918,13 @@ ul.mouseovers a img {
div.mouseovers { display: none; }
}
-div.links-ui-grid {
+div.links-ui-tiles {
display: inline-block;
vertical-align: top;
clear: both
margin: 0;
}
-div.links-ui-grid > a {
+div.links-ui-tiles > a {
display: inline-block;
vertical-align: top;
margin: 0;
@@ -932,19 +932,19 @@ div.links-ui-grid > a {
padding: 1em;
border-radius: 6px;
}
-div.links-ui-grid > a { border: none; }
-div.links-ui-grid > a:hover {
+div.links-ui-tiles > a { border: none; }
+div.links-ui-tiles > a:hover {
box-shadow: 0 1px 2px </xsl:text><xsl:value-of select="$color.blue_border"/><xsl:text>;
}
-div.links-ui-grid > a > * {
+div.links-ui-tiles > a > * {
display: block;
overflow: hidden;
}
-div.links-ui-grid > a > span.title {
+div.links-ui-tiles > a > span.title {
margin-top: 0.5em;
font-weight: bold;
}
-span.links-ui-grid-img { text-align: center; }
+span.links-ui-tiles-img { text-align: center; }
div.links-ui-hover {
text-align: center;
diff --git a/xslt/mallard/html/mal2html-ui.xsl b/xslt/mallard/html/mal2html-ui.xsl
index 82053f2..dc5a194 100644
--- a/xslt/mallard/html/mal2html-ui.xsl
+++ b/xslt/mallard/html/mal2html-ui.xsl
@@ -90,14 +90,14 @@ for blocks that produce automatic titles.
<!--**==========================================================================
-mal2html.ui.links.grid
-Output links as a grid of thumbnails.
-:Revision:version="3.4" date="2012-02-25" status="final"
+mal2html.ui.links.tiles
+Output links as thumbnail tiles.
+:Revision:version="3.8" date="2012-10-27" status="final"
$node: A #{links} element to link from.
$links: A list of links, as from a template in !{mal-link}.
$role: A link role, used to select the appropriate title.
-This template outputs links as a grid of thumbnails, as per the UI extension.
+This template outputs links as thumbnail tiles, as per the UI extension.
For each link, it outputs an inline-block #{div} element with a thumbnail,
title, and desc (unless the #{nodesc} style hint is used). This template calls
*{mal2html.ui.links.img} to find the best-match thumbnail and output the HTML
@@ -105,7 +105,7 @@ title, and desc (unless the #{nodesc} style hint is used). This template calls
This template handles link sorting.
-->
-<xsl:template name="mal2html.ui.links.grid">
+<xsl:template name="mal2html.ui.links.tiles">
<xsl:param name="node" select="."/>
<xsl:param name="links"/>
<xsl:param name="role"/>
@@ -135,7 +135,7 @@ This template handles link sorting.
<xsl:variable name="link" select="."/>
<xsl:for-each select="$mal.cache">
<xsl:variable name="target" select="key('mal.cache.key', $link/@xref)"/>
- <div class="links-ui-grid {$link/@class}">
+ <div class="links-ui-tiles {$link/@class}">
<xsl:for-each select="$link/@*">
<xsl:if test="starts-with(name(.), 'data-')">
<xsl:copy-of select="."/>
@@ -155,7 +155,7 @@ This template handles link sorting.
<xsl:with-param name="xref" select="$link/@xref"/>
</xsl:call-template>
</xsl:attribute>
- <span class="links-ui-grid-img" style="width: {$width}px; height: {$height}px;">
+ <span class="links-ui-tiles-img" style="width: {$width}px; height: {$height}px;">
<xsl:call-template name="mal2html.ui.links.img">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="thumbs" select="$thumbs"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]