gallerize-cli 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -4
  3. data/Gemfile +2 -2
  4. data/{assets/css → app/assets/images}/blank.gif +0 -0
  5. data/{assets/css → app/assets/images}/fancybox_loading.gif +0 -0
  6. data/{assets/css → app/assets/images}/fancybox_loading@2x.gif +0 -0
  7. data/{assets/css → app/assets/images}/fancybox_overlay.png +0 -0
  8. data/{assets/css → app/assets/images}/fancybox_sprite.png +0 -0
  9. data/{assets/css → app/assets/images}/fancybox_sprite@2x.png +0 -0
  10. data/{assets/js → app/assets/javascripts/plugins}/jquery-1.10.1.min.js +0 -0
  11. data/{assets/js → app/assets/javascripts/plugins}/jquery.fancybox.js +0 -0
  12. data/app/assets/javascripts/ready.js +14 -0
  13. data/app/assets/stylesheets/_gallerize.scss +144 -0
  14. data/app/assets/stylesheets/_jquery.fancybox.scss +273 -0
  15. data/app/assets/stylesheets/styles.scss +2 -0
  16. data/app/config/gallerize_cli.yml +28 -0
  17. data/app/templates/layout.html.haml +37 -0
  18. data/bin/{gallerize → gallerize_cli} +5 -2
  19. data/gallerize-cli.gemspec +15 -15
  20. data/lib/gallerize_cli/directory.rb +113 -0
  21. data/lib/gallerize_cli/image/version.rb +99 -0
  22. data/lib/gallerize_cli/image.rb +87 -0
  23. data/lib/gallerize_cli/render.rb +70 -0
  24. data/lib/gallerize_cli.rb +42 -0
  25. data/readme.md +35 -0
  26. metadata +35 -34
  27. data/Gemfile.lock +0 -37
  28. data/README.md +0 -50
  29. data/assets/css/jquery.fancybox.css +0 -274
  30. data/assets/css/styles.css +0 -76
  31. data/assets/js/imagesloaded.js +0 -7
  32. data/assets/js/jquery.masonry.js +0 -9
  33. data/config/global.yml.example +0 -10
  34. data/lib/gallerize/output_dir.rb +0 -44
  35. data/lib/gallerize/source_dir.rb +0 -17
  36. data/lib/gallerize.rb +0 -210
  37. data/templates/layout.html.erb +0 -59
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c575c4f467f417894f8475e42c28bf890d089d8c
4
- data.tar.gz: 6dc46814ef69a1af69100cf828539f3661ec0b89
3
+ metadata.gz: e985a3a6392bccc8851bfc82b93d491479ed29a4
4
+ data.tar.gz: 639aedbe16625a2a06e4985966f4dbe06fe63e19
5
5
  SHA512:
6
- metadata.gz: a4be71dd19582f8899e51fa7c16028602bdcd7d90392d62628e14eb892455e066693270b243633722bf7ad5f7b4fc87ebd8f2c82c40455cffa2d465067c9a19e
7
- data.tar.gz: 16612b0a0913f925af688472921c98ff1a1c0de1b883370cf340262fb9705b1e50f8d52ee3222dd81ed47206ae0b3a73ae026f1d9ab2ec9d15d491b4cb5f5786
6
+ metadata.gz: 74d05535c3e892c6349599791d85c286e615e935b300ddda7adba99551a96863f5c5bae064b4bcd28ad74baab8128639320d02327eb93d3edb604ae5bba90028
7
+ data.tar.gz: 895e90cca2d3d1cb9fe2068b5edce30f4ca41bb82a3bfd546b4164a3c66d0c9746b88cc31aa365bedc80e10ce88c95e5fb6deeb424f4dbb763818579d2826dad
data/.gitignore CHANGED
@@ -1,5 +1,3 @@
1
+ .idea
1
2
  .DS_Store
2
- *.gem
3
- .htpasswd
4
- tmp/*
5
- config/global.yml
3
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'mini_magick'
4
- gem 'activesupport'
5
4
  gem 'pry'
6
5
  gem 'parallel'
7
- gem 'exifr'
6
+ gem 'sass'
7
+ gem 'uglifier'
File without changes
@@ -0,0 +1,14 @@
1
+ (function () {
2
+ $(document).ready(function () {
3
+ if ($(window).width() > 800) {
4
+ $('.fancybox').fancybox();
5
+ } else {
6
+ $('.image-link').each(function () {
7
+ var image = $(this);
8
+ var original = image.data('original');
9
+ image.attr('href', original);
10
+ image.attr('target', 'blank')
11
+ });
12
+ }
13
+ });
14
+ })();
@@ -0,0 +1,144 @@
1
+ $base_color: #852800;
2
+
3
+ $faint_color: desaturate(lighten($base_color, 65%), 50%);
4
+ $light_color: desaturate(lighten($base_color, 40%), 50%);
5
+ $dark_color: darken($base_color, 40%);
6
+
7
+ body {
8
+ font-family: arial;
9
+ }
10
+
11
+ .fancybox-title.fancybox-title-float-wrap {
12
+ bottom: -20px;
13
+ a {
14
+ color: #fff;
15
+ text-decoration: none;
16
+ font-weight: normal;
17
+ padding: 10px;
18
+ display: block;
19
+ }
20
+ }
21
+
22
+ .images {
23
+ overflow: hidden;
24
+ .image {
25
+ float: left;
26
+ .image-inner{
27
+ margin: 5px;
28
+ }
29
+ .original-link{
30
+ color: $base_color;
31
+ text-decoration: none;
32
+ font-weight: bold;
33
+ display: block;
34
+ padding: 5px 10px;
35
+ background-color: $faint_color;
36
+ font-size: 14px;
37
+ &:hover{
38
+ background-color: $base_color;
39
+ color: #fff;
40
+ }
41
+ }
42
+ .image-link {
43
+ overflow: hidden;
44
+ display: block;
45
+ text-align: center;
46
+ }
47
+ }
48
+ }
49
+
50
+ .inner-image {
51
+ margin: 5px;
52
+ overflow: hidden;
53
+ background-color: #f2f2f2;
54
+ }
55
+
56
+ .image img {
57
+ width: 100%;
58
+ }
59
+
60
+ .navigation {
61
+ overflow: auto;
62
+ margin: 20px 10px;
63
+ ul, li {
64
+ list-style-type: none;
65
+ margin: 0;
66
+ padding: 0;
67
+ }
68
+ li {
69
+ float: left;
70
+ margin-right: 2px;
71
+ margin-bottom: 2px;
72
+
73
+ }
74
+ a {
75
+ display: inline-block;
76
+ text-decoration: none;
77
+ padding: 7px 10px 5px;
78
+
79
+ background: #ddd;
80
+
81
+ color: $base_color;
82
+ font-weight: bold;
83
+ }
84
+ a:hover {
85
+ background-color: $base_color;
86
+ color: #fff;
87
+ }
88
+
89
+ .active {
90
+ a {
91
+ background-color: $base_color;
92
+ color: #fff;
93
+ }
94
+ }
95
+ }
96
+
97
+ .page-title {
98
+ margin: 20px 5px 5px 5px;
99
+ color: $base_color;
100
+ }
101
+
102
+ @media (min-width: 0px) and (max-width: 500px) {
103
+ .image {
104
+ width: 100%;
105
+ }
106
+ }
107
+
108
+ @media (min-width: 501px) and (max-width: 1000px) {
109
+ .image {
110
+ width: 50%;
111
+ }
112
+ }
113
+
114
+ @media (min-width: 1001px) and (max-width: 1600px) {
115
+ .image {
116
+ width: 33%;
117
+ }
118
+ }
119
+
120
+ @media (min-width: 1601px) and (max-width: 2000px) {
121
+ .image {
122
+ width: 25%;
123
+ }
124
+ }
125
+
126
+ @media (min-width: 2001px) and (max-width: 2800px) {
127
+ .image {
128
+ width: 20%;
129
+ }
130
+ }
131
+
132
+ @media (min-width: 2801px) {
133
+ .image {
134
+ width: 15%;
135
+ }
136
+ }
137
+
138
+ .fancybox-title-float-wrap .child{
139
+ background-color: $base_color;
140
+ text-shadow: 0 1px 2px $dark_color;
141
+ a{
142
+ font-weight: bold;
143
+ }
144
+ }
@@ -0,0 +1,273 @@
1
+ /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
2
+ .fancybox-wrap,
3
+ .fancybox-skin,
4
+ .fancybox-outer,
5
+ .fancybox-inner,
6
+ .fancybox-image,
7
+ .fancybox-wrap iframe,
8
+ .fancybox-wrap object,
9
+ .fancybox-nav,
10
+ .fancybox-nav span,
11
+ .fancybox-tmp {
12
+ padding: 0;
13
+ margin: 0;
14
+ border: 0;
15
+ outline: none;
16
+ vertical-align: top;
17
+ }
18
+
19
+ .fancybox-wrap {
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ z-index: 8020;
24
+ }
25
+
26
+ .fancybox-skin {
27
+ position: relative;
28
+ background: #f9f9f9;
29
+ color: #444;
30
+ text-shadow: none;
31
+ -webkit-border-radius: 4px;
32
+ -moz-border-radius: 4px;
33
+ border-radius: 4px;
34
+ }
35
+
36
+ .fancybox-opened {
37
+ z-index: 8030;
38
+ }
39
+
40
+ .fancybox-opened .fancybox-skin {
41
+ -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
42
+ -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
43
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
44
+ }
45
+
46
+ .fancybox-outer, .fancybox-inner {
47
+ position: relative;
48
+ }
49
+
50
+ .fancybox-inner {
51
+ overflow: hidden;
52
+ }
53
+
54
+ .fancybox-type-iframe .fancybox-inner {
55
+ -webkit-overflow-scrolling: touch;
56
+ }
57
+
58
+ .fancybox-error {
59
+ color: #444;
60
+ font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
61
+ margin: 0;
62
+ padding: 15px;
63
+ white-space: nowrap;
64
+ }
65
+
66
+ .fancybox-image, .fancybox-iframe {
67
+ display: block;
68
+ width: 100%;
69
+ height: 100%;
70
+ }
71
+
72
+ .fancybox-image {
73
+ max-width: 100%;
74
+ max-height: 100%;
75
+ }
76
+
77
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
78
+ background-image: url('images/fancybox_sprite.png');
79
+ }
80
+
81
+ #fancybox-loading {
82
+ position: fixed;
83
+ top: 50%;
84
+ left: 50%;
85
+ margin-top: -22px;
86
+ margin-left: -22px;
87
+ background-position: 0 -108px;
88
+ opacity: 0.8;
89
+ cursor: pointer;
90
+ z-index: 8060;
91
+ }
92
+
93
+ #fancybox-loading div {
94
+ width: 44px;
95
+ height: 44px;
96
+ background: url('images/fancybox_loading.gif') center center no-repeat;
97
+ }
98
+
99
+ .fancybox-close {
100
+ position: absolute;
101
+ top: -18px;
102
+ right: -18px;
103
+ width: 36px;
104
+ height: 36px;
105
+ cursor: pointer;
106
+ z-index: 8040;
107
+ }
108
+
109
+ .fancybox-nav {
110
+ position: absolute;
111
+ top: 0;
112
+ width: 40%;
113
+ height: 100%;
114
+ cursor: pointer;
115
+ text-decoration: none;
116
+ background: transparent url('images/blank.gif'); /* helps IE */
117
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
118
+ z-index: 8040;
119
+ }
120
+
121
+ .fancybox-prev {
122
+ left: 0;
123
+ }
124
+
125
+ .fancybox-next {
126
+ right: 0;
127
+ }
128
+
129
+ .fancybox-nav span {
130
+ position: absolute;
131
+ top: 50%;
132
+ width: 36px;
133
+ height: 34px;
134
+ margin-top: -18px;
135
+ cursor: pointer;
136
+ z-index: 8040;
137
+ visibility: hidden;
138
+ }
139
+
140
+ .fancybox-prev span {
141
+ left: 10px;
142
+ background-position: 0 -36px;
143
+ }
144
+
145
+ .fancybox-next span {
146
+ right: 10px;
147
+ background-position: 0 -72px;
148
+ }
149
+
150
+ .fancybox-nav:hover span {
151
+ visibility: visible;
152
+ }
153
+
154
+ .fancybox-tmp {
155
+ position: absolute;
156
+ top: -99999px;
157
+ left: -99999px;
158
+ visibility: hidden;
159
+ max-width: 99999px;
160
+ max-height: 99999px;
161
+ overflow: visible !important;
162
+ }
163
+
164
+ /* Overlay helper */
165
+
166
+ .fancybox-lock {
167
+ overflow: hidden !important;
168
+ width: auto;
169
+ }
170
+
171
+ .fancybox-lock body {
172
+ overflow: hidden !important;
173
+ }
174
+
175
+ .fancybox-lock-test {
176
+ overflow-y: hidden !important;
177
+ }
178
+
179
+ .fancybox-overlay {
180
+ position: absolute;
181
+ top: 0;
182
+ left: 0;
183
+ overflow: hidden;
184
+ display: none;
185
+ z-index: 8010;
186
+ background: url('images/fancybox_overlay.png');
187
+ }
188
+
189
+ .fancybox-overlay-fixed {
190
+ position: fixed;
191
+ bottom: 0;
192
+ right: 0;
193
+ }
194
+
195
+ .fancybox-lock .fancybox-overlay {
196
+ overflow: auto;
197
+ overflow-y: scroll;
198
+ }
199
+
200
+ /* Title helper */
201
+
202
+ .fancybox-title {
203
+ visibility: hidden;
204
+ font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
205
+ position: relative;
206
+ text-shadow: none;
207
+ z-index: 8050;
208
+ }
209
+
210
+ .fancybox-opened .fancybox-title {
211
+ visibility: visible;
212
+ }
213
+
214
+ .fancybox-title-float-wrap {
215
+ position: absolute;
216
+ bottom: 0;
217
+ right: 50%;
218
+ margin-bottom: -35px;
219
+ z-index: 8050;
220
+ text-align: center;
221
+ }
222
+
223
+ .fancybox-title-float-wrap .child {
224
+ display: inline-block;
225
+ margin-right: -100%;
226
+ padding: 2px 20px;
227
+ background: transparent; /* Fallback for web browsers that doesn't support RGBa */
228
+ background: rgba(0, 0, 0, 0.8);
229
+ -webkit-border-radius: 15px;
230
+ -moz-border-radius: 15px;
231
+ border-radius: 15px;
232
+ text-shadow: 0 1px 2px #222;
233
+ color: #FFF;
234
+ font-weight: bold;
235
+ line-height: 24px;
236
+ white-space: nowrap;
237
+ }
238
+
239
+ .fancybox-title-outside-wrap {
240
+ position: relative;
241
+ margin-top: 10px;
242
+ color: #fff;
243
+ }
244
+
245
+ .fancybox-title-inside-wrap {
246
+ padding-top: 10px;
247
+ }
248
+
249
+ .fancybox-title-over-wrap {
250
+ position: absolute;
251
+ bottom: 0;
252
+ left: 0;
253
+ color: #fff;
254
+ padding: 10px;
255
+ background: #000;
256
+ background: rgba(0, 0, 0, .8);
257
+ }
258
+
259
+ /*Retina graphics!*/
260
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
261
+ only screen and (min--moz-device-pixel-ratio: 1.5),
262
+ only screen and (min-device-pixel-ratio: 1.5) {
263
+
264
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
265
+ background-image: url('images/fancybox_sprite@2x.png');
266
+ background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
267
+ }
268
+
269
+ #fancybox-loading div {
270
+ background-image: url('images/fancybox_loading@2x.gif');
271
+ background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
272
+ }
273
+ }