[yelp-xsl] [xslt/mallard/html] Animate facet link hiding



commit fadf481c11ab762fbbd449ae2a9fa0662177288e
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Dec 17 11:25:31 2010 -0500

    [xslt/mallard/html] Animate facet link hiding
    
    This requires explicitly marking linkdiv a elements as display:block
    in the CSS. Otherwise, the width is reported as 0 and jQuery can't
    animate it.

 xslt/mallard/html/mal2html-facets.xsl |    4 ++--
 xslt/mallard/html/mal2html-page.xsl   |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-facets.xsl b/xslt/mallard/html/mal2html-facets.xsl
index df789b3..5f3f94d 100644
--- a/xslt/mallard/html/mal2html-facets.xsl
+++ b/xslt/mallard/html/mal2html-facets.xsl
@@ -162,9 +162,9 @@ $(document).ready(function () {
         }
       }
       if (!visible)
-        link.hide();
+        link.hide('fast');
       else
-        link.show();
+        link.show('fast');
     });
   });
 });
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 2de6b9d..3104038 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -81,7 +81,7 @@ REMARK: Describe this template
   <xsl:param name="source" select="."/>
   <xsl:param name="target"/>
   <xsl:param name="attrs"/>
-  <a>
+  <a class="linkdiv">
     <xsl:attribute name="href">
       <xsl:call-template name="mal.link.target">
         <xsl:with-param name="node" select="$source"/>
@@ -788,6 +788,7 @@ td.twocolumnright {
   -moz-padding-end: 0;
 }
 
+a.linkdiv { display: block; }
 div.linkdiv div.title {
   font-size: 1em;
   color: inherit;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]