comfy_gallery 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. data/.document +5 -0
  2. data/.travis.yml +2 -0
  3. data/Gemfile +10 -0
  4. data/LICENSE +20 -0
  5. data/README.md +29 -0
  6. data/Rakefile +21 -0
  7. data/VERSION +1 -0
  8. data/app/assets/images/sofa_gallery/jcrop.gif +0 -0
  9. data/app/assets/images/sofa_gallery/orbit/bullets.jpg +0 -0
  10. data/app/assets/images/sofa_gallery/orbit/left-arrow.png +0 -0
  11. data/app/assets/images/sofa_gallery/orbit/loading.gif +0 -0
  12. data/app/assets/images/sofa_gallery/orbit/mask-black.png +0 -0
  13. data/app/assets/images/sofa_gallery/orbit/pause-black.png +0 -0
  14. data/app/assets/images/sofa_gallery/orbit/right-arrow.png +0 -0
  15. data/app/assets/images/sofa_gallery/orbit/rotator-black.png +0 -0
  16. data/app/assets/images/sofa_gallery/orbit/timer-black.png +0 -0
  17. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/btnNext.png +0 -0
  18. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  19. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  20. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  21. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/loader.gif +0 -0
  22. data/app/assets/images/sofa_gallery/prettyPhoto/dark_rounded/sprite.png +0 -0
  23. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/btnNext.png +0 -0
  24. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/btnPrevious.png +0 -0
  25. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/contentPattern.png +0 -0
  26. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  27. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/loader.gif +0 -0
  28. data/app/assets/images/sofa_gallery/prettyPhoto/dark_square/sprite.png +0 -0
  29. data/app/assets/images/sofa_gallery/prettyPhoto/default/default_thumb.png +0 -0
  30. data/app/assets/images/sofa_gallery/prettyPhoto/default/loader.gif +0 -0
  31. data/app/assets/images/sofa_gallery/prettyPhoto/default/sprite.png +0 -0
  32. data/app/assets/images/sofa_gallery/prettyPhoto/default/sprite_next.png +0 -0
  33. data/app/assets/images/sofa_gallery/prettyPhoto/default/sprite_prev.png +0 -0
  34. data/app/assets/images/sofa_gallery/prettyPhoto/default/sprite_x.png +0 -0
  35. data/app/assets/images/sofa_gallery/prettyPhoto/default/sprite_y.png +0 -0
  36. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/btnNext.png +0 -0
  37. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/btnPrevious.png +0 -0
  38. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  39. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  40. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/contentPatternRight.png +0 -0
  41. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/contentPatternTop.png +0 -0
  42. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  43. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/loader.gif +0 -0
  44. data/app/assets/images/sofa_gallery/prettyPhoto/facebook/sprite.png +0 -0
  45. data/app/assets/images/sofa_gallery/prettyPhoto/light_rounded/btnNext.png +0 -0
  46. data/app/assets/images/sofa_gallery/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  47. data/app/assets/images/sofa_gallery/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  48. data/app/assets/images/sofa_gallery/prettyPhoto/light_rounded/loader.gif +0 -0
  49. data/app/assets/images/sofa_gallery/prettyPhoto/light_rounded/sprite.png +0 -0
  50. data/app/assets/images/sofa_gallery/prettyPhoto/light_square/btnNext.png +0 -0
  51. data/app/assets/images/sofa_gallery/prettyPhoto/light_square/btnPrevious.png +0 -0
  52. data/app/assets/images/sofa_gallery/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  53. data/app/assets/images/sofa_gallery/prettyPhoto/light_square/loader.gif +0 -0
  54. data/app/assets/images/sofa_gallery/prettyPhoto/light_square/sprite.png +0 -0
  55. data/app/assets/javascripts/sofa_gallery/admin.js +72 -0
  56. data/app/assets/javascripts/sofa_gallery/application.js +15 -0
  57. data/app/assets/javascripts/sofa_gallery/jquery.jcrop.js +246 -0
  58. data/app/assets/javascripts/sofa_gallery/jquery.orbit-1.2.3.min.js +17 -0
  59. data/app/assets/javascripts/sofa_gallery/thumbnails.js +85 -0
  60. data/app/assets/stylesheets/comfy_gallery/admin.css +57 -0
  61. data/app/assets/stylesheets/comfy_gallery/application.css +67 -0
  62. data/app/assets/stylesheets/comfy_gallery/carousel.css.erb +208 -0
  63. data/app/assets/stylesheets/comfy_gallery/gallery_list.css +18 -0
  64. data/app/assets/stylesheets/comfy_gallery/jquery.jcrop.css +32 -0
  65. data/app/assets/stylesheets/comfy_gallery/reset.css +1 -0
  66. data/app/assets/stylesheets/comfy_gallery/thumbnails.css.erb +181 -0
  67. data/app/controllers/admin/gallery/base_controller.rb +3 -0
  68. data/app/controllers/admin/gallery/galleries_controller.rb +63 -0
  69. data/app/controllers/admin/gallery/photos_controller.rb +96 -0
  70. data/app/controllers/application_controller.rb +7 -0
  71. data/app/controllers/gallery/galleries_controller.rb +15 -0
  72. data/app/helpers/gallery/application_helper.rb +30 -0
  73. data/app/models/gallery/gallery.rb +19 -0
  74. data/app/models/gallery/photo.rb +78 -0
  75. data/app/views/admin/gallery/_html_head.html.erb +1 -0
  76. data/app/views/admin/gallery/_navigation.html.erb +5 -0
  77. data/app/views/admin/gallery/galleries/_form.html.erb +18 -0
  78. data/app/views/admin/gallery/galleries/edit.html.erb +5 -0
  79. data/app/views/admin/gallery/galleries/index.html.erb +40 -0
  80. data/app/views/admin/gallery/galleries/new.html.erb +5 -0
  81. data/app/views/admin/gallery/photos/_form.html.erb +16 -0
  82. data/app/views/admin/gallery/photos/crop.html.erb +64 -0
  83. data/app/views/admin/gallery/photos/edit.html.erb +5 -0
  84. data/app/views/admin/gallery/photos/index.html.erb +24 -0
  85. data/app/views/admin/gallery/photos/new.html.erb +5 -0
  86. data/app/views/gallery/_carousel.html.erb +31 -0
  87. data/app/views/gallery/_list_galleries.html.erb +26 -0
  88. data/app/views/gallery/_thumbnails.html.erb +26 -0
  89. data/app/views/gallery/galleries/index.html.erb +1 -0
  90. data/app/views/gallery/galleries/show.html.erb +7 -0
  91. data/app/views/layouts/gallery/application.html.erb +16 -0
  92. data/comfy_gallery.gemspec +177 -0
  93. data/config/application.rb +51 -0
  94. data/config/boot.rb +13 -0
  95. data/config/database.yml +16 -0
  96. data/config/environment.rb +5 -0
  97. data/config/environments/development.rb +25 -0
  98. data/config/environments/production.rb +52 -0
  99. data/config/environments/test.rb +39 -0
  100. data/config/initializers/comfy_gallery.rb +15 -0
  101. data/config/initializers/paperclip.rb +3 -0
  102. data/config/routes.rb +17 -0
  103. data/config.ru +4 -0
  104. data/db/migrate/01_create_comfy_gallery.rb +36 -0
  105. data/lib/comfy_gallery/configuration.rb +26 -0
  106. data/lib/comfy_gallery/engine.rb +22 -0
  107. data/lib/comfy_gallery/form_builder.rb +50 -0
  108. data/lib/comfy_gallery.rb +23 -0
  109. data/lib/generators/README +10 -0
  110. data/lib/generators/comfy_gallery_generator.rb +33 -0
  111. data/lib/paperclip_processors/cropper.rb +31 -0
  112. data/lib/tasks/comfy_gallery.rake +4 -0
  113. data/script/rails +6 -0
  114. data/sofa_gallery.gemspec +175 -0
  115. data/test/fixtures/files/default.jpg +0 -0
  116. data/test/fixtures/files/default.txt +1 -0
  117. data/test/fixtures/files/default2.jpg +0 -0
  118. data/test/fixtures/gallery/galleries.yml +11 -0
  119. data/test/fixtures/gallery/photos.yml +9 -0
  120. data/test/functional/admin/gallery/galleries_controller_test.rb +87 -0
  121. data/test/functional/admin/gallery/photos_controller_test.rb +234 -0
  122. data/test/functional/gallery/galleries_controller_test.rb +24 -0
  123. data/test/test_helper.rb +39 -0
  124. data/test/unit/configuration_test.rb +18 -0
  125. data/test/unit/gallery_test.rb +33 -0
  126. data/test/unit/photo_test.rb +33 -0
  127. metadata +233 -0
@@ -0,0 +1,85 @@
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
+ });
@@ -0,0 +1,57 @@
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
+
@@ -0,0 +1,67 @@
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
+ }
@@ -0,0 +1,208 @@
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; }
@@ -0,0 +1,18 @@
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; }
@@ -0,0 +1,32 @@
1
+ /* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */
2
+ .jcrop-holder { text-align: left; }
3
+
4
+ .jcrop-vline, .jcrop-hline {
5
+ font-size: 0px;
6
+ position: absolute;
7
+ background: white url('/assets/sofa_gallery/jcrop.gif') top left repeat;
8
+ }
9
+ .jcrop-vline { height: 100%; width: 1px !important; }
10
+ .jcrop-hline { width: 100%; height: 1px !important; }
11
+ .jcrop-vline.right { right: 0px; }
12
+ .jcrop-hline.bottom { bottom: 0px; }
13
+ .jcrop-handle {
14
+ font-size: 1px;
15
+ width: 7px !important;
16
+ height: 7px !important;
17
+ border: 1px #eee solid;
18
+ background-color: #333;
19
+ }
20
+
21
+ .jcrop-tracker { width: 100%; height: 100%; }
22
+
23
+ .custom .jcrop-vline,
24
+ .custom .jcrop-hline {
25
+ background: yellow;
26
+ }
27
+ .custom .jcrop-handle {
28
+ border-color: black;
29
+ background-color: #C7BB00;
30
+ -moz-border-radius: 3px;
31
+ -webkit-border-radius: 3px;
32
+ }
@@ -0,0 +1 @@
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%;}