~ubuntu-branches/ubuntu/wily/yelp-xsl/wily

« back to all changes in this revision

Viewing changes to xslt/common/html.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-02-24 12:16:11 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224121611-x4kl2quo97a6xrer
Tags: 2.91.90-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
  font-weight: bold;
685
685
  color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
686
686
}
 
687
div.title h1, div.title h2, div.title h3, div.title h4, div.title h5, div.title h6 {
 
688
  margin: 0;
 
689
  font-size: inherit;
 
690
  font-weight: inherit;
 
691
  color: inherit;
 
692
}
687
693
div.desc { margin: 0 0 0.2em 0; }
688
694
div.contents + div.desc { margin: 0.2em 0 0 0; }
689
695
pre.contents {
690
696
  padding: 0.5em 1em 0.5em 1em;
691
697
}
692
 
div.links &gt; div.title {
693
 
  margin-top: 1em;
694
 
  margin-bottom: 0.5em;
695
 
  margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
696
 
}
697
698
div.links &gt; div.title &gt; span.title {
698
699
  border-bottom: solid 1px </xsl:text>
699
700
    <xsl:value-of select="$color.gray_border"/><xsl:text>;
1242
1243
  var fig = $(this);
1243
1244
  if (fig.is('img'))
1244
1245
    fig = fig.parents('div.figure').eq(0);
 
1246
  if (fig.data('yelp-zoom-timeout') != undefined) {
 
1247
    clearInterval(fig.data('yelp-zoom-timeout'));
 
1248
    fig.removeData('yelp-zoom-timeout');
 
1249
  }
1245
1250
  var imgs = fig.find('img');
1246
1251
  for (var i = 0; i < imgs.length; i++) {
1247
1252
    var img = $(imgs[i]);
1285
1290
};
1286
1291
yelp_resize_imgs = function () {
1287
1292
  $('div.figure img').parents('div.figure').each(function () {
1288
 
    $(this).yelp_auto_resize();
 
1293
    var div = $(this);
 
1294
    if (div.data('yelp-zoom-timeout') == undefined)
 
1295
      div.data('yelp-zoom-timeout', setTimeout(function () { div.yelp_auto_resize() }, 1));
1289
1296
  });
1290
1297
  return false;
1291
1298
};