sofa_gallery 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ script: "bundle exec rake db:drop db:create db:migrate test"
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ source 'http://rubygems.org'
3
3
  gem 'rails', '>=3.1.0'
4
4
  gem 'paperclip', '>=2.3.14'
5
5
  gem 'jquery-rails', '1.0.14'
6
- gem 'sass-rails'
7
6
 
8
7
  group :development do
9
8
  gem 'sqlite3'
data/Gemfile.lock CHANGED
@@ -83,11 +83,6 @@ GEM
83
83
  thor (~> 0.14.6)
84
84
  rake (0.9.2)
85
85
  rdoc (3.9.4)
86
- sass (3.1.7)
87
- sass-rails (3.1.0.rc.7)
88
- actionpack (~> 3.1.0.rc6)
89
- railties (~> 3.1.0.rc6)
90
- sass (>= 3.1.4)
91
86
  sprockets (2.0.0)
92
87
  hike (~> 1.2)
93
88
  rack (~> 1.0)
@@ -108,5 +103,4 @@ DEPENDENCIES
108
103
  jquery-rails (= 1.0.14)
109
104
  paperclip (>= 2.3.14)
110
105
  rails (>= 3.1.0)
111
- sass-rails
112
106
  sqlite3
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ begin
14
14
  gem.description = ''
15
15
  gem.email = 'stephen@theworkinggroup.ca'
16
16
  gem.authors = ['Oleg Khabarov', 'Stephen McLeod', 'The Working Group Inc.']
17
+ gem.version = File.read('VERSION').chomp
17
18
  end
18
19
  Jeweler::GemcutterTasks.new
19
20
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -10,4 +10,12 @@
10
10
 
11
11
  .submit_element .value span {
12
12
  margin: 0 5px;
13
+ }
14
+
15
+ #cms_body table.formatted td.preview {
16
+ height: 45px;
17
+ }
18
+
19
+ #cms_body table.formatted td.embed {
20
+ font-size: 8px;
13
21
  }
@@ -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,181 @@
1
+ ul.gallery {
2
+ padding-left: 0;
3
+ margin: 20px auto;
4
+ overflow: hidden;
5
+ list-style: none; }
6
+ ul.gallery li {
7
+ float: left;
8
+ text-align: center;
9
+ margin: 0 10px 10px 0;
10
+ border: none; }
11
+
12
+ div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px}
13
+ div.pp_default .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -78px -93px no-repeat}
14
+ div.pp_default .pp_top .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_x.png") %>) top left repeat-x}
15
+ div.pp_default .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -112px -93px no-repeat}
16
+ div.pp_default .pp_content .ppt{color:#f8f8f8}
17
+ div.pp_default .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_y.png") %>) -7px 0 repeat-y;padding-left:13px}
18
+ div.pp_default .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_y.png") %>) top right repeat-y;padding-right:13px}
19
+ div.pp_default .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_next.png") %>) center right no-repeat;cursor:pointer}
20
+ div.pp_default .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_prev.png") %>) center left no-repeat;cursor:pointer}
21
+ div.pp_default .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -29px no-repeat;cursor:pointer;height:28px;width:28px}
22
+ div.pp_default .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -56px no-repeat;cursor:pointer}
23
+ div.pp_default .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -84px no-repeat;cursor:pointer;height:28px;width:28px}
24
+ div.pp_default .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -113px no-repeat;cursor:pointer}
25
+ div.pp_default .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 2px 1px no-repeat;cursor:pointer;height:30px;width:30px}
26
+ div.pp_default .pp_gallery ul li a{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/default_thumb.png") %>) center center #f8f8f8;border:1px solid #aaa}
27
+ div.pp_default .pp_social{margin-top:7px}
28
+ div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{left:auto;position:static}
29
+ div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -51px 1px no-repeat;height:30px;width:30px}
30
+ div.pp_default .pp_nav .pp_pause{background-position:-51px -29px}
31
+ div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -31px -3px no-repeat;height:20px;margin:4px 0 0;width:20px}
32
+ div.pp_default a.pp_arrow_next{background-position:-82px -3px;left:52px}
33
+ div.pp_default .pp_content_container .pp_details{margin-top:5px}
34
+ div.pp_default .pp_nav{clear:none;height:30px;position:relative;width:110px}
35
+ div.pp_default .pp_nav .currentTextHolder{color:#999;font-family:Georgia;font-size:11px;font-style:italic;left:75px;line-height:25px;margin:0;padding:0 0 0 10px;position:absolute;top:2px}
36
+ div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7}
37
+ div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
38
+ div.pp_default .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -78px -127px no-repeat}
39
+ div.pp_default .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_x.png") %>) bottom left repeat-x}
40
+ div.pp_default .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -112px -127px no-repeat}
41
+ div.pp_default .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/loader.gif") %>) center center no-repeat}
42
+ div.light_rounded .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -88px -53px no-repeat}
43
+ div.light_rounded .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -110px -53px no-repeat}
44
+ div.light_rounded .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) center right no-repeat;cursor:pointer}
45
+ div.light_rounded .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
46
+ div.light_rounded .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
47
+ div.light_rounded .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
48
+ div.light_rounded .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
49
+ div.light_rounded .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
50
+ div.light_rounded .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
51
+ div.light_rounded .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
52
+ div.light_rounded .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
53
+ div.light_rounded .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -71px no-repeat}
54
+ div.light_rounded .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -22px -71px no-repeat}
55
+ div.light_rounded .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -88px -80px no-repeat}
56
+ div.light_rounded .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -110px -80px no-repeat}
57
+ div.dark_rounded .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -88px -53px no-repeat}
58
+ div.dark_rounded .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -110px -53px no-repeat}
59
+ div.dark_rounded .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top left repeat-y}
60
+ div.dark_rounded .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top right repeat-y}
61
+ div.dark_rounded .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/btnNext.png") %>) center right no-repeat;cursor:pointer}
62
+ div.dark_rounded .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
63
+ div.dark_rounded .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
64
+ div.dark_rounded .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
65
+ div.dark_rounded .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
66
+ div.dark_rounded .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
67
+ div.dark_rounded .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
68
+ div.dark_rounded .pp_description{color:#fff;margin-right:85px}
69
+ div.dark_rounded .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
70
+ div.dark_rounded .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
71
+ div.dark_rounded .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -71px no-repeat}
72
+ div.dark_rounded .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -22px -71px no-repeat}
73
+ div.dark_rounded .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -88px -80px no-repeat}
74
+ div.dark_rounded .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -110px -80px no-repeat}
75
+ div.dark_rounded .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/loader.gif") %>) center center no-repeat}
76
+ div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000}
77
+ div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}
78
+ div.dark_square .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/loader.gif") %>) center center no-repeat}
79
+ div.dark_square .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
80
+ div.dark_square .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
81
+ div.dark_square .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
82
+ div.dark_square .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
83
+ div.dark_square .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
84
+ div.dark_square .pp_nav{clear:none}
85
+ div.dark_square .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
86
+ div.dark_square .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
87
+ div.dark_square .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -71px no-repeat}
88
+ div.dark_square .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -22px -71px no-repeat}
89
+ div.dark_square .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/btnNext.png") %>) center right no-repeat;cursor:pointer}
90
+ div.dark_square .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
91
+ div.light_square .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
92
+ div.light_square .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
93
+ div.light_square .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
94
+ div.light_square .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
95
+ div.light_square .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
96
+ div.light_square .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
97
+ div.light_square .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
98
+ div.light_square .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -71px no-repeat}
99
+ div.light_square .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -22px -71px no-repeat}
100
+ div.light_square .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/btnNext.png") %>) center right no-repeat;cursor:pointer}
101
+ div.light_square .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
102
+ div.facebook .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -88px -53px no-repeat}
103
+ div.facebook .pp_top .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternTop.png") %>) top left repeat-x}
104
+ div.facebook .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -110px -53px no-repeat}
105
+ div.facebook .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternLeft.png") %>) top left repeat-y}
106
+ div.facebook .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternRight.png") %>) top right repeat-y}
107
+ div.facebook .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
108
+ div.facebook .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
109
+ div.facebook .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
110
+ div.facebook .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
111
+ div.facebook .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:22px}
112
+ div.facebook .pp_description{margin:0 37px 0 0}
113
+ div.facebook .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/loader.gif") %>) center center no-repeat}
114
+ div.facebook .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -71px no-repeat;height:22px;margin-top:0;width:22px}
115
+ div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default}
116
+ div.facebook .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -32px -71px no-repeat;height:22px;margin-top:0;width:22px}
117
+ div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default}
118
+ div.facebook .pp_nav{margin-top:0}
119
+ div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px}
120
+ div.facebook .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -1px -123px no-repeat;height:22px;width:22px}
121
+ div.facebook .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -32px -123px no-repeat;height:22px;width:22px}
122
+ div.facebook .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/btnNext.png") %>) center right no-repeat;cursor:pointer}
123
+ div.facebook .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
124
+ div.facebook .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -88px -80px no-repeat}
125
+ div.facebook .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternBottom.png") %>) top left repeat-x}
126
+ div.facebook .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -110px -80px no-repeat}
127
+ div.pp_pic_holder a:focus{outline:none}
128
+ div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500}
129
+ div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}
130
+ .pp_content{height:40px;min-width:40px}
131
+ * html .pp_content{width:40px}
132
+ .pp_content_container{position:relative;text-align:left;width:100%}
133
+ .pp_content_container .pp_left{padding-left:20px}
134
+ .pp_content_container .pp_right{padding-right:20px}
135
+ .pp_content_container .pp_details{float:left;margin:10px 0 2px}
136
+ .pp_description{display:none;margin:0}
137
+ .pp_social{float:left;margin:0}
138
+ .pp_social .facebook{float:left;margin-left:5px;overflow:hidden;width:55px}
139
+ .pp_social .twitter{float:left}
140
+ .pp_nav{clear:right;float:left;margin:3px 10px 0 0}
141
+ .pp_nav p{float:left;margin:2px 4px;white-space:nowrap}
142
+ .pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}
143
+ a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}
144
+ .pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}
145
+ .pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}
146
+ .pp_gallery div{float:left;overflow:hidden;position:relative}
147
+ .pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}
148
+ .pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}
149
+ .pp_gallery ul a img{border:0}
150
+ .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
151
+ .pp_gallery li.default a{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/default_thumbnail.gif") %>) 0 0 no-repeat;display:block;height:33px;width:50px}
152
+ .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
153
+ a.pp_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
154
+ a.pp_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
155
+ a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
156
+ a.pp_close{display:block;line-height:22px;position:absolute;right:0;text-indent:-10000px;top:0}
157
+ .pp_loaderIcon{display:block;height:24px;left:50%;margin:-12px 0 0 -12px;position:absolute;top:50%;width:24px}
158
+ #pp_full_res{line-height:1!important}
159
+ #pp_full_res .pp_inline{text-align:left}
160
+ #pp_full_res .pp_inline p{margin:0 0 15px}
161
+ div.ppt{color:#fff;display:none;font-size:17px;margin:0 0 5px 15px;z-index:9999}
162
+ div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}
163
+ div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000}
164
+ div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}
165
+ div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative}
166
+ div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff}
167
+ div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px}
168
+ div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important}
169
+ div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default}
170
+ div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default}
171
+ div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/loader.gif") %>) center center no-repeat}
172
+ div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top left repeat}
173
+ div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4}
174
+ div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff}
175
+ .pp_top,.pp_bottom{height:20px;position:relative}
176
+ * html .pp_top,* html .pp_bottom{padding:0 20px}
177
+ .pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}
178
+ .pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}
179
+ * html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
180
+ .pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
181
+ .pp_fade,.pp_gallery li.default a img{display:none}
@@ -4,7 +4,11 @@ class SofaGallery::Admin::GalleriesController < SofaGallery::Admin::BaseControll
4
4
  before_filter :build_gallery, :only => [:new, :create]
5
5
 
6
6
  def index
7
- @galleries = SofaGallery::Gallery.all
7
+ if params[:category].present?
8
+ @galleries = SofaGallery::Gallery.for_category(params[:category]).all
9
+ else
10
+ @galleries = SofaGallery::Gallery.all
11
+ end
8
12
  end
9
13
 
10
14
  def new
@@ -1,5 +1,11 @@
1
1
  class SofaGallery::GalleriesController < ApplicationController
2
2
 
3
+ def index
4
+ @galleries = SofaGallery::Gallery.all
5
+ rescue ActiveRecord::RecordNotFound
6
+ render :text => 'Gallery not found', :status => 404
7
+ end
8
+
3
9
  def show
4
10
  @gallery = SofaGallery::Gallery.find(params[:id])
5
11
  rescue ActiveRecord::RecordNotFound
@@ -1,5 +1,7 @@
1
1
  class SofaGallery::Gallery < ActiveRecord::Base
2
2
 
3
+ cms_is_categorized if defined?(ComfortableMexicanSofa)
4
+
3
5
  set_table_name :sofa_gallery_galleries
4
6
 
5
7
  # -- Relationships --------------------------------------------------------
@@ -47,6 +47,10 @@ class SofaGallery::Photo < ActiveRecord::Base
47
47
  @geometry[style] ||= Paperclip::Geometry.from_file(image.path(style))
48
48
  end
49
49
 
50
+ def force_aspect?
51
+ self.gallery.force_ratio_full? || self.gallery.force_ratio_thumb?
52
+ end
53
+
50
54
  def cropping?
51
55
  cropping_thumb? || cropping_full?
52
56
  end
@@ -0,0 +1,26 @@
1
+ <% if @galleries %>
2
+ <% content_for :head do %>
3
+ <%= stylesheet_link_tag "sofa_gallery/gallery_list.css" %>
4
+ <% end %>
5
+ <% @galleries.each do |gallery| %>
6
+ <div class="sofa_gallery">
7
+ <div class="photo_preview">
8
+ <% gallery.photos.limit(6).each do |photo| %>
9
+ <%= image_tag(photo.image.url(:admin_thumb), :alt => photo.description) %>
10
+ <% end %>
11
+ </div>
12
+ <div class="photo_text">
13
+ <h2><%= link_to gallery.title, sofa_gallery_gallery_path(gallery) %></h2>
14
+ <p><%= gallery.description.truncate(200) %></p>
15
+ <% if (count = gallery.photos.count) > 0 %>
16
+ <%= link_to "View all #{count} photos.", sofa_gallery_gallery_path(gallery), :class => 'view_more' %>
17
+ <% else %>
18
+ <em>No photos in this gallery.</em>
19
+ <% end %>
20
+ </div>
21
+ </div>
22
+ <% end %>
23
+ <% else %>
24
+ No galleries were found.
25
+ <% end %>
26
+
@@ -3,16 +3,23 @@
3
3
  <%= stylesheet_link_tag "sofa_gallery/thumbnails.css" %>
4
4
  <%= javascript_include_tag "sofa_gallery/thumbnails.js" %>
5
5
  <% end %>
6
- <ul id="<%= dom_id(@gallery)%>" class="gallery" style="width: <%= @gallery.gallery_width %>px;">
7
- <% @gallery.photos.each do |photo| %>
8
- <li id="<%= dom_id(photo) %>">
9
- <div class="photo" style="width: <%= @gallery.thumb_width %>px; height: <%= @gallery.thumb_height %>px;">
10
- <%= link_to photo.image.url(:full), :rel => "prettyPhoto[pp_gal]", :title => photo.description do %>
11
- <%= image_tag(photo.image.url(:thumb), :alt => photo.description) %>
12
- <% end %>
13
- </div>
14
- </li>
15
- <% end %>
6
+ <ul id="<%= dom_id(@gallery)%>" class="gallery">
7
+ <h2><%= @gallery.title %></h2>
8
+ <p><%= @gallery.description %></p>
9
+ <br />
10
+ <% if @gallery.photos.count > 0 %>
11
+ <% @gallery.photos.each do |photo| %>
12
+ <li id="<%= dom_id(photo) %>">
13
+ <div class="photo" style="width: <%= @gallery.thumb_width %>px; height: <%= @gallery.thumb_height %>px;">
14
+ <%= link_to photo.image.url(:full), :rel => "prettyPhoto[pp_gal]", :title => photo.description do %>
15
+ <%= image_tag(photo.image.url(:thumb), :alt => photo.description) %>
16
+ <% end %>
17
+ </div>
18
+ </li>
19
+ <% end %>
20
+ <% else %>
21
+ <em>No photos in this gallery.</em>
22
+ <% end %>
16
23
  </ul>
17
24
  <% else %>
18
25
  Gallery not found.
@@ -2,7 +2,6 @@
2
2
  <%= form.text_field :slug, :id => 'slug' %>
3
3
  <%= form.text_area :description%>
4
4
 
5
- <%= form.text_field :gallery_width %>
6
5
  <%= form.text_field :full_width %>
7
6
  <%= form.text_field :full_height %>
8
7
  <%= form.check_box :force_ratio_full, :label => "Force Ratio" %>
@@ -10,6 +9,8 @@
10
9
  <%= form.text_field :thumb_height %>
11
10
  <%= form.check_box :force_ratio_thumb, :label => "Force Ratio" %>
12
11
 
12
+ <%= render :partial => 'cms_admin/categories/form', :object => form if defined?(ComfortableMexicanSofa) %>
13
+
13
14
  <%= form.simple_field nil, nil, :class => 'submit_element' do %>
14
15
  <%= link_to "Cancel", sofa_gallery_admin_galleries_path, :id => 'cancel_btn' %>
15
16
  <span>or</span>
@@ -2,13 +2,17 @@
2
2
 
3
3
  <h1>Galleries</h1>
4
4
 
5
+ <%= render :partial => 'cms_admin/categories/index', :object => 'SofaGallery::Gallery' if defined?(ComfortableMexicanSofa) %>
6
+
7
+ <br />
8
+
5
9
  <table class='formatted'>
6
10
  <tr>
7
11
  <th>
8
- Name
12
+ Preview
9
13
  </th>
10
14
  <th>
11
- Preview
15
+ Name
12
16
  </th>
13
17
  <th>
14
18
  URL
@@ -22,20 +26,18 @@
22
26
  </tr>
23
27
  <% @galleries.each do |gallery| %>
24
28
  <tr>
25
- <td>
26
- <div class='title'>
27
- <%= link_to gallery.title, sofa_gallery_admin_gallery_photos_path(gallery) %>
28
- </div>
29
- </td>
30
- <td class='main'>
31
- <% gallery.photos.limit(4).each do |photo| %>
29
+ <td class='preview'>
30
+ <% gallery.photos.limit(1).each do |photo| %>
32
31
  <%= image_tag(photo.image.url(:admin_thumb)) %>
33
32
  <% end %>
34
33
  </td>
34
+ <td class='main'>
35
+ <%= link_to gallery.title, sofa_gallery_admin_gallery_photos_path(gallery) %>
36
+ </td>
35
37
  <td>
36
38
  <%= link_to sofa_gallery_gallery_path(gallery), sofa_gallery_gallery_path(gallery), :target => '_blank' %>
37
39
  </td>
38
- <td>
40
+ <td class='embed'>
39
41
  {{ cms:helper:render_gallery:<%= gallery.slug %> }}
40
42
  </td>
41
43
  <td class='action_links'>
@@ -4,7 +4,7 @@
4
4
  <%= form.simple_field 'Current Image' do %>
5
5
  <%= image_tag(@photo.image.url(:thumb)) %>
6
6
  <br/>
7
- <%= link_to 'Crop Image', crop_sofa_gallery_admin_gallery_photo_path(@gallery, @photo) %>
7
+ <%= link_to 'Crop Image', crop_sofa_gallery_admin_gallery_photo_path(@gallery, @photo) if @photo.force_aspect? %>
8
8
  <% end %>
9
9
  <% end %>
10
10
  <%= form.file_field :image %>
@@ -14,7 +14,7 @@
14
14
  <div class='sublabel'><%= photo.slug %></div>
15
15
  </td>
16
16
  <td class='action_links'>
17
- <%= link_to 'Crop', crop_sofa_gallery_admin_gallery_photo_path(@gallery, photo) %>
17
+ <%= link_to 'Crop', crop_sofa_gallery_admin_gallery_photo_path(@gallery, photo) if photo.force_aspect? %>
18
18
  <%= link_to 'Edit', edit_sofa_gallery_admin_gallery_photo_path(@gallery, photo) %>
19
19
  <%= link_to 'Delete', sofa_gallery_admin_gallery_photo_path(@gallery, photo), :method => :delete, :confirm => 'Are you sure?' %>
20
20
  </td>
@@ -0,0 +1 @@
1
+ <%= render :partial => 'sofa_gallery/list_galleries' %>
@@ -1 +1,7 @@
1
- <%= render :partial => 'sofa_gallery/thumbnails' %>
1
+ <% content_for :head do %>
2
+ <%= stylesheet_link_tag "sofa_gallery/gallery_list.css" %>
3
+ <% end %>
4
+ <div class="galleries">
5
+ <%= link_to "« View All Galleries", sofa_gallery_galleries_path %>
6
+ <%= render :partial => 'sofa_gallery/thumbnails' %>
7
+ </div>
data/config/routes.rb CHANGED
@@ -2,7 +2,7 @@ Rails.application.routes.draw do
2
2
 
3
3
  namespace :sofa_gallery, :path => '' do
4
4
 
5
- resources :galleries, :only => :show
5
+ resources :galleries, :only => [:show, :index]
6
6
 
7
7
  namespace :admin, :path => SofaGallery.config.admin_route_prefix do
8
8
  resources :galleries do
@@ -4,10 +4,8 @@ class CreateSofaGallery < ActiveRecord::Migration
4
4
  t.string :title
5
5
  t.string :slug
6
6
  t.text :description
7
- t.integer :gallery_width, :null => false, :default => 640
8
- t.integer :full_width, :null => false, :default => 600
9
- t.integer :full_width, :null => false, :default => 600
10
- t.integer :full_height, :null => false, :default => 450
7
+ t.integer :full_width, :null => false, :default => 640
8
+ t.integer :full_height, :null => false, :default => 480
11
9
  t.boolean :force_ratio_full, :null => false, :default => false
12
10
  t.integer :thumb_width, :null => false, :default => 150
13
11
  t.integer :thumb_height, :null => false, :default => 150
data/sofa_gallery.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sofa_gallery}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "Stephen McLeod", "The Working Group Inc."]
12
- s.date = %q{2011-09-20}
12
+ s.date = %q{2011-09-26}
13
13
  s.description = %q{}
14
14
  s.email = %q{stephen@theworkinggroup.ca}
15
15
  s.extra_rdoc_files = [
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ ".travis.yml",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE",
@@ -71,6 +72,7 @@ Gem::Specification.new do |s|
71
72
  "app/assets/stylesheets/sofa_gallery/admin.css",
72
73
  "app/assets/stylesheets/sofa_gallery/application.css",
73
74
  "app/assets/stylesheets/sofa_gallery/carousel.css",
75
+ "app/assets/stylesheets/sofa_gallery/gallery_list.css",
74
76
  "app/assets/stylesheets/sofa_gallery/jquery.jcrop.css",
75
77
  "app/assets/stylesheets/sofa_gallery/reset.css",
76
78
  "app/assets/stylesheets/sofa_gallery/tango/credits.txt",
@@ -78,7 +80,7 @@ Gem::Specification.new do |s|
78
80
  "app/assets/stylesheets/sofa_gallery/tango/next-vertical.png",
79
81
  "app/assets/stylesheets/sofa_gallery/tango/prev-horizontal.png",
80
82
  "app/assets/stylesheets/sofa_gallery/tango/prev-vertical.png",
81
- "app/assets/stylesheets/sofa_gallery/thumbnails.css.scss",
83
+ "app/assets/stylesheets/sofa_gallery/thumbnails.css.erb",
82
84
  "app/controllers/application_controller.rb",
83
85
  "app/controllers/sofa_gallery/admin/base_controller.rb",
84
86
  "app/controllers/sofa_gallery/admin/galleries_controller.rb",
@@ -89,6 +91,7 @@ Gem::Specification.new do |s|
89
91
  "app/models/sofa_gallery/photo.rb",
90
92
  "app/views/layouts/gallery_admin/application.html.erb",
91
93
  "app/views/sofa_gallery/_carousel.html.erb",
94
+ "app/views/sofa_gallery/_list_galleries.html.erb",
92
95
  "app/views/sofa_gallery/_thumbnails.html.erb",
93
96
  "app/views/sofa_gallery/admin/_html_head.html.erb",
94
97
  "app/views/sofa_gallery/admin/_navigation.html.erb",
@@ -101,6 +104,7 @@ Gem::Specification.new do |s|
101
104
  "app/views/sofa_gallery/admin/photos/edit.html.erb",
102
105
  "app/views/sofa_gallery/admin/photos/index.html.erb",
103
106
  "app/views/sofa_gallery/admin/photos/new.html.erb",
107
+ "app/views/sofa_gallery/galleries/index.html.erb",
104
108
  "app/views/sofa_gallery/galleries/show.html.erb",
105
109
  "config.ru",
106
110
  "config/application.rb",
@@ -149,14 +153,12 @@ Gem::Specification.new do |s|
149
153
  s.add_runtime_dependency(%q<rails>, [">= 3.1.0"])
150
154
  s.add_runtime_dependency(%q<paperclip>, [">= 2.3.14"])
151
155
  s.add_runtime_dependency(%q<jquery-rails>, ["= 1.0.14"])
152
- s.add_runtime_dependency(%q<sass-rails>, [">= 0"])
153
156
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
154
157
  s.add_development_dependency(%q<jeweler>, [">= 0"])
155
158
  else
156
159
  s.add_dependency(%q<rails>, [">= 3.1.0"])
157
160
  s.add_dependency(%q<paperclip>, [">= 2.3.14"])
158
161
  s.add_dependency(%q<jquery-rails>, ["= 1.0.14"])
159
- s.add_dependency(%q<sass-rails>, [">= 0"])
160
162
  s.add_dependency(%q<sqlite3>, [">= 0"])
161
163
  s.add_dependency(%q<jeweler>, [">= 0"])
162
164
  end
@@ -164,7 +166,6 @@ Gem::Specification.new do |s|
164
166
  s.add_dependency(%q<rails>, [">= 3.1.0"])
165
167
  s.add_dependency(%q<paperclip>, [">= 2.3.14"])
166
168
  s.add_dependency(%q<jquery-rails>, ["= 1.0.14"])
167
- s.add_dependency(%q<sass-rails>, [">= 0"])
168
169
  s.add_dependency(%q<sqlite3>, [">= 0"])
169
170
  s.add_dependency(%q<jeweler>, [">= 0"])
170
171
  end
@@ -2,7 +2,6 @@ default:
2
2
  title: Default Gallery
3
3
  slug: default-gallery
4
4
  description: Gallery Description
5
- gallery_width: 640
6
5
  full_width: 800
7
6
  full_height: 600
8
7
  force_ratio_full: false
@@ -2,6 +2,13 @@ require File.expand_path('../test_helper', File.dirname(__FILE__))
2
2
 
3
3
  class SofaGallery::GalleriesControllerTest < ActionController::TestCase
4
4
 
5
+ def test_get_index
6
+ get :index
7
+ assert_response :success
8
+ assert_template :index
9
+ assert assigns(:galleries)
10
+ end
11
+
5
12
  def test_get_show
6
13
  get :show, :id => sofa_gallery_galleries(:default)
7
14
  assert_response :success
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sofa_gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,12 +11,12 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-09-20 00:00:00.000000000 -04:00
14
+ date: 2011-09-26 00:00:00.000000000 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
19
- requirement: &70330706497480 !ruby/object:Gem::Requirement
19
+ requirement: &70292793950060 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 3.1.0
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70330706497480
27
+ version_requirements: *70292793950060
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: paperclip
30
- requirement: &70330706495760 !ruby/object:Gem::Requirement
30
+ requirement: &70292793947420 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 2.3.14
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70330706495760
38
+ version_requirements: *70292793947420
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: jquery-rails
41
- requirement: &70330706490540 !ruby/object:Gem::Requirement
41
+ requirement: &70292793939880 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - =
@@ -46,21 +46,10 @@ dependencies:
46
46
  version: 1.0.14
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70330706490540
50
- - !ruby/object:Gem::Dependency
51
- name: sass-rails
52
- requirement: &70330706488540 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ! '>='
56
- - !ruby/object:Gem::Version
57
- version: '0'
58
- type: :runtime
59
- prerelease: false
60
- version_requirements: *70330706488540
49
+ version_requirements: *70292793939880
61
50
  - !ruby/object:Gem::Dependency
62
51
  name: sqlite3
63
- requirement: &70330706483480 !ruby/object:Gem::Requirement
52
+ requirement: &70292793937040 !ruby/object:Gem::Requirement
64
53
  none: false
65
54
  requirements:
66
55
  - - ! '>='
@@ -68,10 +57,10 @@ dependencies:
68
57
  version: '0'
69
58
  type: :development
70
59
  prerelease: false
71
- version_requirements: *70330706483480
60
+ version_requirements: *70292793937040
72
61
  - !ruby/object:Gem::Dependency
73
62
  name: jeweler
74
- requirement: &70330706479080 !ruby/object:Gem::Requirement
63
+ requirement: &70292793935080 !ruby/object:Gem::Requirement
75
64
  none: false
76
65
  requirements:
77
66
  - - ! '>='
@@ -79,7 +68,7 @@ dependencies:
79
68
  version: '0'
80
69
  type: :development
81
70
  prerelease: false
82
- version_requirements: *70330706479080
71
+ version_requirements: *70292793935080
83
72
  description: ''
84
73
  email: stephen@theworkinggroup.ca
85
74
  executables: []
@@ -89,6 +78,7 @@ extra_rdoc_files:
89
78
  - README.md
90
79
  files:
91
80
  - .document
81
+ - .travis.yml
92
82
  - Gemfile
93
83
  - Gemfile.lock
94
84
  - LICENSE
@@ -142,6 +132,7 @@ files:
142
132
  - app/assets/stylesheets/sofa_gallery/admin.css
143
133
  - app/assets/stylesheets/sofa_gallery/application.css
144
134
  - app/assets/stylesheets/sofa_gallery/carousel.css
135
+ - app/assets/stylesheets/sofa_gallery/gallery_list.css
145
136
  - app/assets/stylesheets/sofa_gallery/jquery.jcrop.css
146
137
  - app/assets/stylesheets/sofa_gallery/reset.css
147
138
  - app/assets/stylesheets/sofa_gallery/tango/credits.txt
@@ -149,7 +140,7 @@ files:
149
140
  - app/assets/stylesheets/sofa_gallery/tango/next-vertical.png
150
141
  - app/assets/stylesheets/sofa_gallery/tango/prev-horizontal.png
151
142
  - app/assets/stylesheets/sofa_gallery/tango/prev-vertical.png
152
- - app/assets/stylesheets/sofa_gallery/thumbnails.css.scss
143
+ - app/assets/stylesheets/sofa_gallery/thumbnails.css.erb
153
144
  - app/controllers/application_controller.rb
154
145
  - app/controllers/sofa_gallery/admin/base_controller.rb
155
146
  - app/controllers/sofa_gallery/admin/galleries_controller.rb
@@ -160,6 +151,7 @@ files:
160
151
  - app/models/sofa_gallery/photo.rb
161
152
  - app/views/layouts/gallery_admin/application.html.erb
162
153
  - app/views/sofa_gallery/_carousel.html.erb
154
+ - app/views/sofa_gallery/_list_galleries.html.erb
163
155
  - app/views/sofa_gallery/_thumbnails.html.erb
164
156
  - app/views/sofa_gallery/admin/_html_head.html.erb
165
157
  - app/views/sofa_gallery/admin/_navigation.html.erb
@@ -172,6 +164,7 @@ files:
172
164
  - app/views/sofa_gallery/admin/photos/edit.html.erb
173
165
  - app/views/sofa_gallery/admin/photos/index.html.erb
174
166
  - app/views/sofa_gallery/admin/photos/new.html.erb
167
+ - app/views/sofa_gallery/galleries/index.html.erb
175
168
  - app/views/sofa_gallery/galleries/show.html.erb
176
169
  - config.ru
177
170
  - config/application.rb
@@ -222,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
215
  version: '0'
223
216
  segments:
224
217
  - 0
225
- hash: 3772243150081987713
218
+ hash: -4011211047910085487
226
219
  required_rubygems_version: !ruby/object:Gem::Requirement
227
220
  none: false
228
221
  requirements:
@@ -1,182 +0,0 @@
1
- ul.gallery {
2
- padding-left: 0;
3
- margin: 20px auto;
4
- overflow: hidden;
5
- list-style: none; }
6
- ul.gallery li {
7
- float: left;
8
- padding: 5px;
9
- text-align: center;
10
- margin: 0 10px 10px 0;
11
- border: none; }
12
-
13
- div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px}
14
- div.pp_default .pp_top .pp_left{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -78px -93px no-repeat}
15
- div.pp_default .pp_top .pp_middle{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_x.png', image) top left repeat-x}
16
- div.pp_default .pp_top .pp_right{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -112px -93px no-repeat}
17
- div.pp_default .pp_content .ppt{color:#f8f8f8}
18
- div.pp_default .pp_content_container .pp_left{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_y.png', image) -7px 0 repeat-y;padding-left:13px}
19
- div.pp_default .pp_content_container .pp_right{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_y.png', image) top right repeat-y;padding-right:13px}
20
- div.pp_default .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_next.png', image) center right no-repeat;cursor:pointer}
21
- div.pp_default .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_prev.png', image) center left no-repeat;cursor:pointer}
22
- div.pp_default .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) 0 -29px no-repeat;cursor:pointer;height:28px;width:28px}
23
- div.pp_default .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) 0 -56px no-repeat;cursor:pointer}
24
- div.pp_default .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) 0 -84px no-repeat;cursor:pointer;height:28px;width:28px}
25
- div.pp_default .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) 0 -113px no-repeat;cursor:pointer}
26
- div.pp_default .pp_close{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) 2px 1px no-repeat;cursor:pointer;height:30px;width:30px}
27
- div.pp_default .pp_gallery ul li a{background: asset-url('sofa_gallery/prettyPhoto/default/default_thumb.png', image) center center #f8f8f8;border:1px solid #aaa}
28
- div.pp_default .pp_social{margin-top:7px}
29
- div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{left:auto;position:static}
30
- div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -51px 1px no-repeat;height:30px;width:30px}
31
- div.pp_default .pp_nav .pp_pause{background-position:-51px -29px}
32
- div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -31px -3px no-repeat;height:20px;margin:4px 0 0;width:20px}
33
- div.pp_default a.pp_arrow_next{background-position:-82px -3px;left:52px}
34
- div.pp_default .pp_content_container .pp_details{margin-top:5px}
35
- div.pp_default .pp_nav{clear:none;height:30px;position:relative;width:110px}
36
- div.pp_default .pp_nav .currentTextHolder{color:#999;font-family:Georgia;font-size:11px;font-style:italic;left:75px;line-height:25px;margin:0;padding:0 0 0 10px;position:absolute;top:2px}
37
- div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7}
38
- div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
39
- div.pp_default .pp_bottom .pp_left{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -78px -127px no-repeat}
40
- div.pp_default .pp_bottom .pp_middle{background: asset-url('sofa_gallery/prettyPhoto/default/sprite_x.png', image) bottom left repeat-x}
41
- div.pp_default .pp_bottom .pp_right{background: asset-url('sofa_gallery/prettyPhoto/default/sprite.png', image) -112px -127px no-repeat}
42
- div.pp_default .pp_loaderIcon{background: asset-url('sofa_gallery/prettyPhoto/default/loader.gif', image) center center no-repeat}
43
- div.light_rounded .pp_top .pp_left{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -88px -53px no-repeat}
44
- div.light_rounded .pp_top .pp_right{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -110px -53px no-repeat}
45
- div.light_rounded .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/btnNext.png', image) center right no-repeat;cursor:pointer}
46
- div.light_rounded .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/btnPrevious.png', image) center left no-repeat;cursor:pointer}
47
- div.light_rounded .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -31px -26px no-repeat;cursor:pointer}
48
- div.light_rounded .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -31px -47px no-repeat;cursor:pointer}
49
- div.light_rounded .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) 0 -26px no-repeat;cursor:pointer}
50
- div.light_rounded .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) 0 -47px no-repeat;cursor:pointer}
51
- div.light_rounded .pp_close{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
52
- div.light_rounded .pp_nav .pp_play{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -1px -100px no-repeat;height:15px;width:14px}
53
- div.light_rounded .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -24px -100px no-repeat;height:15px;width:14px}
54
- div.light_rounded .pp_arrow_previous{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) 0 -71px no-repeat}
55
- div.light_rounded .pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -22px -71px no-repeat}
56
- div.light_rounded .pp_bottom .pp_left{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -88px -80px no-repeat}
57
- div.light_rounded .pp_bottom .pp_right{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/sprite.png', image) -110px -80px no-repeat}
58
- div.dark_rounded .pp_top .pp_left{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -88px -53px no-repeat}
59
- div.dark_rounded .pp_top .pp_right{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -110px -53px no-repeat}
60
- div.dark_rounded .pp_content_container .pp_left{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png', image) top left repeat-y}
61
- div.dark_rounded .pp_content_container .pp_right{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png', image) top right repeat-y}
62
- div.dark_rounded .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/btnNext.png', image) center right no-repeat;cursor:pointer}
63
- div.dark_rounded .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/btnPrevious.png', image) center left no-repeat;cursor:pointer}
64
- div.dark_rounded .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -31px -26px no-repeat;cursor:pointer}
65
- div.dark_rounded .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -31px -47px no-repeat;cursor:pointer}
66
- div.dark_rounded .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) 0 -26px no-repeat;cursor:pointer}
67
- div.dark_rounded .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) 0 -47px no-repeat;cursor:pointer}
68
- div.dark_rounded .pp_close{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
69
- div.dark_rounded .pp_description{color:#fff;margin-right:85px}
70
- div.dark_rounded .pp_nav .pp_play{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -1px -100px no-repeat;height:15px;width:14px}
71
- div.dark_rounded .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -24px -100px no-repeat;height:15px;width:14px}
72
- div.dark_rounded .pp_arrow_previous{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) 0 -71px no-repeat}
73
- div.dark_rounded .pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -22px -71px no-repeat}
74
- div.dark_rounded .pp_bottom .pp_left{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -88px -80px no-repeat}
75
- div.dark_rounded .pp_bottom .pp_right{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/sprite.png', image) -110px -80px no-repeat}
76
- div.dark_rounded .pp_loaderIcon{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/loader.gif', image) center center no-repeat}
77
- div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000}
78
- div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}
79
- div.dark_square .pp_loaderIcon{background: asset-url('sofa_gallery/prettyPhoto/dark_square/loader.gif', image) center center no-repeat}
80
- div.dark_square .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -31px -26px no-repeat;cursor:pointer}
81
- div.dark_square .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -31px -47px no-repeat;cursor:pointer}
82
- div.dark_square .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) 0 -26px no-repeat;cursor:pointer}
83
- div.dark_square .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) 0 -47px no-repeat;cursor:pointer}
84
- div.dark_square .pp_close{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
85
- div.dark_square .pp_nav{clear:none}
86
- div.dark_square .pp_nav .pp_play{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -1px -100px no-repeat;height:15px;width:14px}
87
- div.dark_square .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -24px -100px no-repeat;height:15px;width:14px}
88
- div.dark_square .pp_arrow_previous{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) 0 -71px no-repeat}
89
- div.dark_square .pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/dark_square/sprite.png', image) -22px -71px no-repeat}
90
- div.dark_square .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_square/btnNext.png', image) center right no-repeat;cursor:pointer}
91
- div.dark_square .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/dark_square/btnPrevious.png', image) center left no-repeat;cursor:pointer}
92
- div.light_square .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -31px -26px no-repeat;cursor:pointer}
93
- div.light_square .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -31px -47px no-repeat;cursor:pointer}
94
- div.light_square .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) 0 -26px no-repeat;cursor:pointer}
95
- div.light_square .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) 0 -47px no-repeat;cursor:pointer}
96
- div.light_square .pp_close{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
97
- div.light_square .pp_nav .pp_play{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -1px -100px no-repeat;height:15px;width:14px}
98
- div.light_square .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -24px -100px no-repeat;height:15px;width:14px}
99
- div.light_square .pp_arrow_previous{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) 0 -71px no-repeat}
100
- div.light_square .pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/light_square/sprite.png', image) -22px -71px no-repeat}
101
- div.light_square .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/light_square/btnNext.png', image) center right no-repeat;cursor:pointer}
102
- div.light_square .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/light_square/btnPrevious.png', image) center left no-repeat;cursor:pointer}
103
- div.facebook .pp_top .pp_left{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -88px -53px no-repeat}
104
- div.facebook .pp_top .pp_middle{background: asset-url('sofa_gallery/prettyPhoto/facebook/contentPatternTop.png', image) top left repeat-x}
105
- div.facebook .pp_top .pp_right{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -110px -53px no-repeat}
106
- div.facebook .pp_content_container .pp_left{background: asset-url('sofa_gallery/prettyPhoto/facebook/contentPatternLeft.png', image) top left repeat-y}
107
- div.facebook .pp_content_container .pp_right{background: asset-url('sofa_gallery/prettyPhoto/facebook/contentPatternRight.png', image) top right repeat-y}
108
- div.facebook .pp_expand{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -31px -26px no-repeat;cursor:pointer}
109
- div.facebook .pp_expand:hover{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -31px -47px no-repeat;cursor:pointer}
110
- div.facebook .pp_contract{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) 0 -26px no-repeat;cursor:pointer}
111
- div.facebook .pp_contract:hover{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) 0 -47px no-repeat;cursor:pointer}
112
- div.facebook .pp_close{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -1px -1px no-repeat;cursor:pointer;height:22px;width:22px}
113
- div.facebook .pp_description{margin:0 37px 0 0}
114
- div.facebook .pp_loaderIcon{background: asset-url('sofa_gallery/prettyPhoto/facebook/loader.gif', image) center center no-repeat}
115
- div.facebook .pp_arrow_previous{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) 0 -71px no-repeat;height:22px;margin-top:0;width:22px}
116
- div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default}
117
- div.facebook .pp_arrow_next{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -32px -71px no-repeat;height:22px;margin-top:0;width:22px}
118
- div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default}
119
- div.facebook .pp_nav{margin-top:0}
120
- div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px}
121
- div.facebook .pp_nav .pp_play{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -1px -123px no-repeat;height:22px;width:22px}
122
- div.facebook .pp_nav .pp_pause{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -32px -123px no-repeat;height:22px;width:22px}
123
- div.facebook .pp_next:hover{background: asset-url('sofa_gallery/prettyPhoto/facebook/btnNext.png', image) center right no-repeat;cursor:pointer}
124
- div.facebook .pp_previous:hover{background: asset-url('sofa_gallery/prettyPhoto/facebook/btnPrevious.png', image) center left no-repeat;cursor:pointer}
125
- div.facebook .pp_bottom .pp_left{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -88px -80px no-repeat}
126
- div.facebook .pp_bottom .pp_middle{background: asset-url('sofa_gallery/prettyPhoto/facebook/contentPatternBottom.png', image) top left repeat-x}
127
- div.facebook .pp_bottom .pp_right{background: asset-url('sofa_gallery/prettyPhoto/facebook/sprite.png', image) -110px -80px no-repeat}
128
- div.pp_pic_holder a:focus{outline:none}
129
- div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500}
130
- div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}
131
- .pp_content{height:40px;min-width:40px}
132
- * html .pp_content{width:40px}
133
- .pp_content_container{position:relative;text-align:left;width:100%}
134
- .pp_content_container .pp_left{padding-left:20px}
135
- .pp_content_container .pp_right{padding-right:20px}
136
- .pp_content_container .pp_details{float:left;margin:10px 0 2px}
137
- .pp_description{display:none;margin:0}
138
- .pp_social{float:left;margin:0}
139
- .pp_social .facebook{float:left;margin-left:5px;overflow:hidden;width:55px}
140
- .pp_social .twitter{float:left}
141
- .pp_nav{clear:right;float:left;margin:3px 10px 0 0}
142
- .pp_nav p{float:left;margin:2px 4px;white-space:nowrap}
143
- .pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}
144
- a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}
145
- .pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}
146
- .pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}
147
- .pp_gallery div{float:left;overflow:hidden;position:relative}
148
- .pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}
149
- .pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}
150
- .pp_gallery ul a img{border:0}
151
- .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
152
- .pp_gallery li.default a{background: asset-url('sofa_gallery/prettyPhoto/facebook/default_thumbnail.gif', image) 0 0 no-repeat;display:block;height:33px;width:50px}
153
- .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
154
- a.pp_next{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/btnNext.png', image) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
155
- a.pp_previous{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/btnNext.png', image) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
156
- a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
157
- a.pp_close{display:block;line-height:22px;position:absolute;right:0;text-indent:-10000px;top:0}
158
- .pp_loaderIcon{display:block;height:24px;left:50%;margin:-12px 0 0 -12px;position:absolute;top:50%;width:24px}
159
- #pp_full_res{line-height:1!important}
160
- #pp_full_res .pp_inline{text-align:left}
161
- #pp_full_res .pp_inline p{margin:0 0 15px}
162
- div.ppt{color:#fff;display:none;font-size:17px;margin:0 0 5px 15px;z-index:9999}
163
- div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}
164
- div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000}
165
- div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}
166
- div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative}
167
- div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff}
168
- div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px}
169
- div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important}
170
- div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default}
171
- div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default}
172
- div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background: asset-url('sofa_gallery/prettyPhoto/light_rounded/loader.gif', image) center center no-repeat}
173
- div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background: asset-url('sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png', image) top left repeat}
174
- div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4}
175
- div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff}
176
- .pp_top,.pp_bottom{height:20px;position:relative}
177
- * html .pp_top,* html .pp_bottom{padding:0 20px}
178
- .pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}
179
- .pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}
180
- * html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
181
- .pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
182
- .pp_fade,.pp_gallery li.default a img{display:none}