comfy_gallery 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/README.md +11 -0
  2. data/VERSION +1 -1
  3. data/app/assets/images/comfy_gallery/border.png +0 -0
  4. data/app/assets/images/comfy_gallery/controls.png +0 -0
  5. data/app/assets/images/comfy_gallery/loading.gif +0 -0
  6. data/app/assets/images/comfy_gallery/loading_background.png +0 -0
  7. data/app/assets/images/comfy_gallery/overlay.png +0 -0
  8. data/app/assets/javascripts/comfy_gallery/jquery.colorbox.js +4 -0
  9. data/app/assets/stylesheets/comfy_gallery/colorbox.css +61 -0
  10. data/app/helpers/gallery/application_helper.rb +0 -18
  11. data/app/views/admin/gallery/galleries/index.html.erb +0 -8
  12. data/app/views/admin/gallery/photos/_form.html.erb +1 -1
  13. data/comfy_gallery.gemspec +9 -66
  14. data/config/routes.rb +0 -4
  15. data/lib/comfy_gallery/engine.rb +0 -1
  16. metadata +20 -77
  17. data/app/assets/images/comfy_gallery/orbit/bullets.jpg +0 -0
  18. data/app/assets/images/comfy_gallery/orbit/left-arrow.png +0 -0
  19. data/app/assets/images/comfy_gallery/orbit/loading.gif +0 -0
  20. data/app/assets/images/comfy_gallery/orbit/mask-black.png +0 -0
  21. data/app/assets/images/comfy_gallery/orbit/pause-black.png +0 -0
  22. data/app/assets/images/comfy_gallery/orbit/right-arrow.png +0 -0
  23. data/app/assets/images/comfy_gallery/orbit/rotator-black.png +0 -0
  24. data/app/assets/images/comfy_gallery/orbit/timer-black.png +0 -0
  25. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/btnNext.png +0 -0
  26. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  27. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  28. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  29. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/loader.gif +0 -0
  30. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/sprite.png +0 -0
  31. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/btnNext.png +0 -0
  32. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/btnPrevious.png +0 -0
  33. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/contentPattern.png +0 -0
  34. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  35. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/loader.gif +0 -0
  36. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/sprite.png +0 -0
  37. data/app/assets/images/comfy_gallery/prettyPhoto/default/default_thumb.png +0 -0
  38. data/app/assets/images/comfy_gallery/prettyPhoto/default/loader.gif +0 -0
  39. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite.png +0 -0
  40. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_next.png +0 -0
  41. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_prev.png +0 -0
  42. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_x.png +0 -0
  43. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_y.png +0 -0
  44. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/btnNext.png +0 -0
  45. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/btnPrevious.png +0 -0
  46. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  47. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  48. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternRight.png +0 -0
  49. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternTop.png +0 -0
  50. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  51. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/loader.gif +0 -0
  52. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/sprite.png +0 -0
  53. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/btnNext.png +0 -0
  54. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  55. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  56. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/loader.gif +0 -0
  57. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/sprite.png +0 -0
  58. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/btnNext.png +0 -0
  59. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/btnPrevious.png +0 -0
  60. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  61. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/loader.gif +0 -0
  62. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/sprite.png +0 -0
  63. data/app/assets/javascripts/comfy_gallery/admin.js +0 -72
  64. data/app/assets/javascripts/comfy_gallery/application.js +0 -15
  65. data/app/assets/javascripts/comfy_gallery/jquery.orbit-1.2.3.min.js +0 -17
  66. data/app/assets/javascripts/comfy_gallery/thumbnails.js +0 -85
  67. data/app/assets/stylesheets/comfy_gallery/admin.css +0 -57
  68. data/app/assets/stylesheets/comfy_gallery/application.css +0 -67
  69. data/app/assets/stylesheets/comfy_gallery/carousel.css.erb +0 -208
  70. data/app/assets/stylesheets/comfy_gallery/gallery_list.css +0 -18
  71. data/app/assets/stylesheets/comfy_gallery/reset.css +0 -1
  72. data/app/assets/stylesheets/comfy_gallery/thumbnails.css.erb +0 -181
  73. data/app/controllers/gallery/galleries_controller.rb +0 -15
  74. data/app/views/admin/gallery/_html_head.html.erb +0 -1
  75. data/app/views/gallery/_carousel.html.erb +0 -31
  76. data/app/views/gallery/_list_galleries.html.erb +0 -26
  77. data/app/views/gallery/_thumbnails.html.erb +0 -26
  78. data/app/views/gallery/galleries/index.html.erb +0 -1
  79. data/app/views/gallery/galleries/show.html.erb +0 -7
  80. data/test/functional/gallery/galleries_controller_test.rb +0 -24
@@ -1,72 +0,0 @@
1
- $.CMS_Gallery = function(){
2
- var current_path = window.location.pathname;
3
- var admin_path_prefix = current_path.split('/')[1]
4
-
5
- $(document).ready(function(){
6
- if($('#file_container').get(0)) $.CMS_Gallery.enable_photo_uploader();
7
- $.CMS_Gallery.enable_sortable_list();
8
- });
9
-
10
- return {
11
- enable_sortable_list: function(){
12
- $('ul.sortable_photos, ul.sortable_photos ul').sortable({
13
- handle: 'div.photo_dragger',
14
- axis: 'xy',
15
- update: function(){
16
- $.post(current_path + '/reorder', '_method=put&'+$(this).sortable('serialize'));
17
- }
18
- })
19
- },
20
- enable_photo_uploader : function(){
21
- var photos_path = '/' + current_path.split('/')[1] + '/' +
22
- current_path.split('/')[2] + '/' +
23
- current_path.split('/')[3] + '/' +
24
- current_path.split('/')[4]
25
-
26
- auth_token = $("meta[name=csrf-token]").attr('content');
27
- var uploader = new plupload.Uploader({
28
- container: 'file_container',
29
- browse_button: 'pickfiles',
30
- runtimes: 'html5',
31
- unique_names: true,
32
- multipart: true,
33
- multipart_params: { authenticity_token: auth_token, format: 'js' },
34
- url: photos_path
35
- });
36
-
37
-
38
- $('#uploadfiles').click(function(e) {
39
- uploader.start();
40
- e.preventDefault();
41
- });
42
-
43
- uploader.init();
44
-
45
- uploader.bind('FilesAdded', function(up, files) {
46
- $.each(files, function(i, file) {
47
- $('#filelist').append(
48
- '<div id="' + file.id + '">' +
49
- file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' +
50
- '</div>');
51
- });
52
- });
53
-
54
- uploader.bind('UploadProgress', function(up, file) {
55
- $('#' + file.id + " b").html(file.percent + "%");
56
- });
57
-
58
- uploader.bind('Error', function(up, err) {
59
- $('#filelist').append("<div>Error: " + err.code +
60
- ", Message: " + err.message +
61
- (err.file ? ", File: " + err.file.name : "") +
62
- "</div>"
63
- );
64
- });
65
-
66
- uploader.bind('FileUploaded', function(up, file, response) {
67
- $('#' + file.id + " b").html("100%");
68
- $('ul#gallery_photos').append(response.response);
69
- });
70
- }
71
- }
72
- }();
@@ -1,15 +0,0 @@
1
- //= require comfy_gallery/jquery.js
2
- //= require comfy_gallery/jquery_ui.js
3
- //= require comfy_gallery/rails.js
4
-
5
- $.SofaGallery = function(){
6
- $(function(){
7
- $('.sortable').sortable({
8
- handle: '.dragger',
9
- axis: 'y',
10
- update: function(){
11
- $.post(window.location.pathname + '/reorder', '_method=put&'+$(this).sortable('serialize'));
12
- }
13
- });
14
- });
15
- }();
@@ -1,17 +0,0 @@
1
- /*
2
- * jQuery Orbit Plugin 1.2.3
3
- * www.ZURB.com/playground
4
- * Copyright 2010, ZURB
5
- * Free to use under the MIT license.
6
- * http://www.opensource.org/licenses/mit-license.php
7
- */
8
-
9
- (function(d){d.fn.orbit=function(a){a=d.extend({animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4E3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1E3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",afterSlideChange:function(){}},a);return this.each(function(){function q(){if(!a.timer||a.timer=="false")return!1;else r.is(":hidden")?s=setInterval(function(){l("next")},a.advanceSpeed):
10
- (o=!0,x.removeClass("active"),s=setInterval(function(){var a="rotate("+m+"deg)";m+=2;t.css({"-webkit-transform":a,"-moz-transform":a,"-o-transform":a});m>180&&(t.addClass("move"),y.addClass("move"));m>360&&(t.removeClass("move"),y.removeClass("move"),m=0,l("next"))},a.advanceSpeed/180))}function n(){if(!a.timer||a.timer=="false")return!1;else o=!1,clearInterval(s),x.addClass("active")}function z(){if(!a.captions||a.captions=="false")return!1;else{var c=e.eq(b).data("caption");(_captionHTML=d(c).html())?
11
- (j.attr("id",c).html(_captionHTML),a.captionAnimation=="none"&&j.show(),a.captionAnimation=="fade"&&j.fadeIn(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideDown(a.captionAnimationSpeed)):(a.captionAnimation=="none"&&j.hide(),a.captionAnimation=="fade"&&j.fadeOut(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideUp(a.captionAnimationSpeed))}}function A(){if(a.bullets)C.children("li").removeClass("active").eq(b).addClass("active");else return!1}function l(c){function d(){e.eq(f).css({"z-index":1});
12
- u=!1;a.afterSlideChange.call(this)}var f=b,g=c;if(f==g)return!1;if(e.length=="1")return!1;u||(u=!0,c=="next"?(b++,b==p&&(b=0)):c=="prev"?(b--,b<0&&(b=p-1)):(b=c,f<b?g="next":f>b&&(g="prev")),A(),e.eq(f).css({"z-index":2}),a.animation=="fade"&&e.eq(b).css({opacity:0,"z-index":3}).animate({opacity:1},a.animationSpeed,d),a.animation=="horizontal-slide"&&(g=="next"&&e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,d),g=="prev"&&e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,
13
- d)),a.animation=="vertical-slide"&&(g=="prev"&&e.eq(b).css({top:v,"z-index":3}).animate({top:0},a.animationSpeed,d),g=="next"&&e.eq(b).css({top:-v,"z-index":3}).animate({top:0},a.animationSpeed,d)),a.animation=="horizontal-push"&&(g=="next"&&(e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,d),e.eq(f).animate({left:-h},a.animationSpeed)),g=="prev"&&(e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,d),e.eq(f).animate({left:h},a.animationSpeed))),z())}var b=0,
14
- p=0,h,v,u,f=d(this).addClass("orbit"),c=f.wrap('<div class="orbit-wrapper" />').parent();f.add(h).width("1px").height("1px");var e=f.children("img, a, div");e.each(function(){var a=d(this),b=a.width(),a=a.height();b>f.width()&&(f.add(c).width(b),h=f.width());a>f.height()&&(f.add(c).height(a),v=f.height());p++});if(e.length==1)a.directionalNav=!1,a.timer=!1,a.bullets=!1;e.eq(b).css({"z-index":3}).fadeIn(function(){e.css({display:"block"})});if(a.timer){c.append('<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>');
15
- var r=c.children("div.timer"),o;if(r.length!=0){var t=d("div.timer span.rotator"),y=d("div.timer span.mask"),x=d("div.timer span.pause"),m=0,s;q();r.click(function(){o?n():q()});if(a.startClockOnMouseOut){var B;c.mouseleave(function(){B=setTimeout(function(){o||q()},a.startClockOnMouseOutAfter)});c.mouseenter(function(){clearTimeout(B)})}}}a.pauseOnHover&&c.mouseenter(function(){n()});if(a.captions){c.append('<div class="orbit-caption"></div>');var j=c.children(".orbit-caption");z()}if(a.directionalNav){if(a.directionalNav==
16
- "false")return!1;c.append('<div class="slider-nav"><span class="right">Right</span><span class="left">Left</span></div>');var k=c.children("div.slider-nav").children("span.left"),w=c.children("div.slider-nav").children("span.right");k.click(function(){n();l("prev")});w.click(function(){n();l("next")})}if(a.bullets){c.append('<ul class="orbit-bullets"></ul>');var C=c.children("ul.orbit-bullets");for(i=0;i<p;i++){k=d("<li>"+(i+1)+"</li>");if(a.bulletThumbs&&(w=e.eq(i).data("thumb")))k=d('<li class="has-thumb">'+
17
- i+"</li>"),k.css({background:"url("+a.bulletThumbLocation+w+") no-repeat"});c.children("ul.orbit-bullets").append(k);k.data("index",i);k.click(function(){n();l(d(this).data("index"))})}A()}})}})(jQuery);
@@ -1,85 +0,0 @@
1
- /* ------------------------------------------------------------------------
2
- Class: prettyPhoto
3
- Use: Lightbox clone for jQuery
4
- Author: Stephane Caron (http://www.no-margin-for-errors.com)
5
- Version: 3.1.3
6
- ------------------------------------------------------------------------- */
7
-
8
- (function($){$.prettyPhoto={version:'3.1.3'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> \
9
- <div class="ppt">&nbsp;</div> \
10
- <div class="pp_top"> \
11
- <div class="pp_left"></div> \
12
- <div class="pp_middle"></div> \
13
- <div class="pp_right"></div> \
14
- </div> \
15
- <div class="pp_content_container"> \
16
- <div class="pp_left"> \
17
- <div class="pp_right"> \
18
- <div class="pp_content"> \
19
- <div class="pp_loaderIcon"></div> \
20
- <div class="pp_fade"> \
21
- <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
22
- <div class="pp_hoverContainer"> \
23
- <a class="pp_next" href="#">next</a> \
24
- <a class="pp_previous" href="#">previous</a> \
25
- </div> \
26
- <div id="pp_full_res"></div> \
27
- <div class="pp_details"> \
28
- <div class="pp_nav"> \
29
- <a href="#" class="pp_arrow_previous">Previous</a> \
30
- <p class="currentTextHolder">0/0</p> \
31
- <a href="#" class="pp_arrow_next">Next</a> \
32
- </div> \
33
- <p class="pp_description"></p> \
34
- <div class="pp_social">{pp_social}</div> \
35
- <a class="pp_close" href="#">Close</a> \
36
- </div> \
37
- </div> \
38
- </div> \
39
- </div> \
40
- </div> \
41
- </div> \
42
- <div class="pp_bottom"> \
43
- <div class="pp_left"></div> \
44
- <div class="pp_middle"></div> \
45
- <div class="pp_right"></div> \
46
- </div> \
47
- </div> \
48
- <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \
49
- <a href="#" class="pp_arrow_previous">Previous</a> \
50
- <div> \
51
- <ul> \
52
- {gallery} \
53
- </ul> \
54
- </div> \
55
- <a href="#" class="pp_arrow_next">Next</a> \
56
- </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:'',social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
57
- $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>30)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize)
58
- $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;}
59
- $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_build_overlay(event.target);}
60
- if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking)
61
- setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);}
62
- if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();}
63
- movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
64
- if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
65
- $pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html('&nbsp;');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0)
66
- movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0)
67
- movie_id=movie_id.substr(0,movie_id.indexOf('&'));}
68
- movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&amp;byline=0&amp;portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
69
- $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
70
- $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
71
- if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}
72
- if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
73
- function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight)
74
- return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();}else{$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css('margin-left',-((galleryWidth/2)+(navWidth/2))).find('div:first').width(galleryWidth+5).find('ul').width(fullGalleryWidth).find('li.selected').removeClass('selected');goToPage=(Math.floor(set_position/itemsPerPage)<totalPage)?Math.floor(set_position/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');}}
75
- function _build_overlay(caller){if(settings.social_tools)
76
- facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));settings.markup=settings.markup.replace('{pp_social}',(settings.social_tools)?facebook_like_link:'');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i<pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';img_src='';}else{classname='';img_src=pp_images[i];}
77
- toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
78
- $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
79
- $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);}
80
- return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#!')!=-1)?decodeURI(url.substring(url.indexOf('#!')+2,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+rel_index+'/';};function clearHashtag(){url=location.href;hashtag=(url.indexOf('#!prettyPhoto'))?true:false;if(hashtag)location.hash="!prettyPhoto";}
81
- function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;
82
-
83
- $(document).ready(function() {
84
- $("a[rel^='prettyPhoto']").prettyPhoto();
85
- });
@@ -1,57 +0,0 @@
1
- .dragger {
2
- cursor: move;
3
- }
4
-
5
- .submit_element .value span, #cancel_btn {
6
- margin-right: 5px;
7
- float: right;
8
- padding: 3px 0;
9
- }
10
-
11
- .submit_element .value span {
12
- margin: 0 5px;
13
- }
14
-
15
- /* -- Table --------------------------------------------------------------- */
16
-
17
- #cms_body table.formatted td.preview {
18
- height: 45px;
19
- }
20
-
21
- #cms_body table.formatted td.embed {
22
- font-size: 8px;
23
- }
24
-
25
- #cms_body table.formatted {
26
- width: 100%;
27
- }
28
-
29
- #cms_body table.formatted th, td {
30
- white-space: nowrap;
31
- padding: 6px;
32
- background-color: #f1f1f1;
33
- border-bottom: 2px solid #e6e6e6;
34
- }
35
-
36
-
37
-
38
- #cms_body table.formatted th.main, td.main {
39
- white-space: normal;
40
- width: 100%;
41
- }
42
- #cms_body table.formatted th {
43
- background-color: #252525;
44
- color: #f7f7f7;
45
- font-size: 12px;
46
- }
47
- #cms_body table.formatted th:first-child {
48
- border-radius: 5px 0px 0px 5px;
49
- }
50
- #cms_body table.formatted th:last-child {
51
- border-radius: 0px 5px 5px 0px
52
- }
53
-
54
- #cms_body table.formatted tr:hover td {
55
- background-color: #fff
56
- }
57
-
@@ -1,67 +0,0 @@
1
- /*
2
- = require sofa_gallery/reset.css
3
- */
4
-
5
- body {
6
- padding: 25px;
7
- font: 13px/18px Arial, sans-serif;
8
- }
9
- h1 {
10
- font: bold 26px/34px Arial, sans-serif;
11
- margin-bottom: 15px;
12
- }
13
- a {
14
- color: #3875D7;
15
- text-decoration: none;
16
- }
17
- a:hover {
18
- text-decoration: underline;
19
- }
20
- table.formatted td,
21
- table.formatted th {
22
- padding: 2px 5px;
23
- border-bottom: 1px dotted #ccc;
24
- }
25
- table.formatted th {
26
- background-color: #666;
27
- color: #fff;
28
- }
29
- table.formatted td img {
30
- float: left;
31
- padding: 2px;
32
- margin-right: 2px;
33
- }
34
- table.formatted td .sublabel {
35
- font-size: 11px;
36
- line-height: 11px;
37
- color: #888;
38
- }
39
-
40
- .form_element {
41
- overflow: hidden;
42
- margin-bottom: 5px;
43
- }
44
- .form_element .label {
45
- width: 125px;
46
- float: left;
47
- text-align: right;
48
- }
49
- .form_element .value,
50
- .form_element .errors {
51
- margin-left: 135px;
52
- }
53
- .form_element .value input[type='text'],
54
- .form_element .value textarea {
55
- width: 400px;
56
- }
57
-
58
- .jcrop-holder {
59
- margin-bottom: 15px;
60
- }
61
-
62
- .flash{
63
- border: 2px solid #ccc;
64
- padding: 10px;
65
- margin-bottom: 15px;
66
- text-align: center;
67
- }
@@ -1,208 +0,0 @@
1
- /* CSS for jQuery Orbit Plugin 1.2.3
2
- * www.ZURB.com/playground
3
- * Copyright 2010, ZURB
4
- * Free to use under the MIT license.
5
- * http://www.opensource.org/licenses/mit-license.php
6
-
7
-
8
-
9
- /* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY
10
- ================================================== */
11
- #featured {
12
- width: 960px;
13
- height: 480px;
14
- background: #000 url(<%= asset_path('sofa_gallery/orbit/loading.gif') %>) no-repeat center center;
15
- overflow: hidden; }
16
- #featured>img,
17
- #featured>div,
18
- #featured>a { display: none; }
19
-
20
-
21
- /* CONTAINER
22
- ================================================== */
23
-
24
- div.orbit-wrapper {
25
- width: 1px;
26
- height: 1px;
27
- position: relative; }
28
-
29
- div.orbit {
30
- width: 1px;
31
- height: 1px;
32
- position: relative;
33
- overflow: hidden }
34
-
35
- div.orbit>img {
36
- position: absolute;
37
- top: 0;
38
- left: 0;
39
- display: none; }
40
-
41
- div.orbit>a {
42
- border: none;
43
- position: absolute;
44
- top: 0;
45
- left: 0;
46
- line-height: 0;
47
- display: none; }
48
-
49
- .orbit>div {
50
- position: absolute;
51
- top: 0;
52
- left: 0;
53
- width: 100%;
54
- height: 100%; }
55
-
56
- /* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */
57
-
58
-
59
- /* TIMER
60
- ================================================== */
61
-
62
- div.timer {
63
- width: 40px;
64
- height: 40px;
65
- overflow: hidden;
66
- position: absolute;
67
- top: 10px;
68
- right: 10px;
69
- opacity: .6;
70
- cursor: pointer;
71
- z-index: 1001; }
72
-
73
- span.rotator {
74
- display: block;
75
- width: 40px;
76
- height: 40px;
77
- position: absolute;
78
- top: 0;
79
- left: -20px;
80
- background: url(<%= asset_path('sofa_gallery/orbit/rotator-black.png') %>) no-repeat;
81
- z-index: 3; }
82
-
83
- span.mask {
84
- display: block;
85
- width: 20px;
86
- height: 40px;
87
- position: absolute;
88
- top: 0;
89
- right: 0;
90
- z-index: 2;
91
- overflow: hidden; }
92
-
93
- span.rotator.move {
94
- left: 0 }
95
-
96
- span.mask.move {
97
- width: 40px;
98
- left: 0;
99
- background: url(<%= asset_path('sofa_gallery/orbit/timer-black.png') %>) repeat 0 0; }
100
-
101
- span.pause {
102
- display: block;
103
- width: 40px;
104
- height: 40px;
105
- position: absolute;
106
- top: 0;
107
- left: 0;
108
- background: url(<%= asset_path('sofa_gallery/orbit/pause-black.png') %>) no-repeat;
109
- z-index: 4;
110
- opacity: 0; }
111
-
112
- span.pause.active {
113
- background: url(<%= asset_path('sofa_gallery/orbit/pause-black.png') %>) no-repeat 0 -40px }
114
-
115
- div.timer:hover span.pause,
116
- span.pause.active {
117
- opacity: 1 }
118
-
119
-
120
- /* CAPTIONS
121
- ================================================== */
122
-
123
- .orbit-caption {
124
- display: none; }
125
-
126
- .orbit-wrapper .orbit-caption {
127
- background: #000;
128
- background: rgba(0,0,0,.6);
129
- z-index: 1000;
130
- color: #fff;
131
- text-align: center;
132
- padding: 7px 0;
133
- font-size: 13px;
134
- position: absolute;
135
- right: 0;
136
- bottom: 0;
137
- width: 100%; }
138
-
139
-
140
- /* DIRECTIONAL NAV
141
- ================================================== */
142
-
143
- div.slider-nav {
144
- display: block;
145
- overflow: hidden; }
146
-
147
- div.slider-nav span {
148
- width: 78px;
149
- height: 100px;
150
- text-indent: -9999px;
151
- position: absolute;
152
- z-index: 1000;
153
- top: 50%;
154
- top: 0;
155
- /* margin-top: -50px;*/
156
- cursor: pointer; }
157
-
158
- div.slider-nav span.right {
159
- width: 45%;
160
- height: 100%;
161
- right: 0; }
162
-
163
- div.slider-nav span.right:hover {
164
- background: url(<%= asset_path('sofa_gallery/orbit/right-arrow.png') %>) center right no-repeat; }
165
-
166
- div.slider-nav span.left {
167
- width: 45%;
168
- height: 100%;
169
- left: 0; }
170
-
171
- div.slider-nav span.left:hover {
172
- background: url(<%= asset_path('sofa_gallery/orbit/left-arrow.png') %>) center left no-repeat; }
173
-
174
- /* BULLET NAV
175
- ================================================== */
176
-
177
- .orbit-bullets {
178
- position: absolute;
179
- z-index: 1000;
180
- list-style: none;
181
- bottom: -40px;
182
- left: 50%;
183
- margin-left: -50px;
184
- padding: 0; }
185
-
186
- .orbit-bullets li {
187
- float: left;
188
- margin-left: 5px;
189
- cursor: pointer;
190
- color: #999;
191
- text-indent: -9999px;
192
- background: url(<%= asset_path('sofa_gallery/orbit/bullets.jpg') %>) no-repeat 4px 0;
193
- width: 13px;
194
- height: 12px;
195
- overflow: hidden; }
196
-
197
- .orbit-bullets li.active {
198
- color: #222;
199
- background-position: -8px 0; }
200
-
201
- .orbit-bullets li.has-thumb {
202
- background: none;
203
- width: 100px;
204
- height: 75px; }
205
-
206
- .orbit-bullets li.active.has-thumb {
207
- background-position: 0 0;
208
- border-top: 2px solid #000; }
@@ -1,18 +0,0 @@
1
- .galleries {
2
- overflow: hidden;
3
- margin: 0 auto;
4
- width: 720px; }
5
- .sofa_gallery {
6
- background: #eee;
7
- overflow: hidden;
8
- padding: 20px;
9
- border-radius: 5px;
10
- margin: 0 auto 15px;
11
- width: 675px; }
12
- .sofa_gallery .photo_preview {
13
- width: 150px;
14
- float: left;
15
- min-height: 50px;}
16
- .sofa_gallery .photo_text {
17
- width: 520px;
18
- float: left; }
@@ -1 +0,0 @@
1
- html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}