From 00cb4dca9e4c60d81043702849e4740381c1fa15 Mon Sep 17 00:00:00 2001 From: Nate Tovo Date: Tue, 30 Sep 2014 15:57:13 -0500 Subject: [PATCH] correcting style.jst to use the generated js fotorama class names --- src/js/fotorama.js | 12 +++++++++++- src/templates/style.jst | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/js/fotorama.js b/src/js/fotorama.js index 600d0f77..53d1ce84 100644 --- a/src/js/fotorama.js +++ b/src/js/fotorama.js @@ -301,7 +301,17 @@ jQuery.Fotorama = function ($fotorama, opts) { $navFrame = $navThumbFrame; navFrameKey = NAV_THUMB_FRAME_KEY; - setStyle($style, $.Fotorama.jst.style({w: o_thumbSide, h: o_thumbSide2, b: opts.thumbborderwidth, m: opts.thumbmargin, s: stamp, q: !COMPAT})); + setStyle($style, $.Fotorama.jst.style({ + w: o_thumbSide, + h: o_thumbSide2, + b: opts.thumbborderwidth, + m: opts.thumbmargin, + s: stampClass, + nt: navThumbsClass, + nf: navFrameClass, + tb: thumbBorderClass, + q: !COMPAT + })); $nav .addClass(navThumbsClass) diff --git a/src/templates/style.jst b/src/templates/style.jst index 651ec64d..235e2925 100644 --- a/src/templates/style.jst +++ b/src/templates/style.jst @@ -1,7 +1,7 @@ -.fotorama<%= v.s %> .fotorama__nav--thumbs .fotorama__nav__frame{ +.<%= v.s %> .<%= v.nt %> .<%= v.nf %>{ padding:<%= v.m %>px; height:<%= v.h %>px} -.fotorama<%= v.s %> .fotorama__thumb-border{ +.<%= v.s %> .<%= v.tb %>{ height:<%= v.h - v.b * (v.q ? 0 : 2) %>px; border-width:<%= v.b %>px; margin-top:<%= v.m %>px} \ No newline at end of file