rails_admin_featured_content 1.1.0 → 1.2.1

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/app/assets/images/fc-snippet-float-one.jpg +0 -0
  4. data/app/assets/images/fc-snippet-float-one.psd +0 -0
  5. data/app/assets/images/fc-snippet-float-three.jpg +0 -0
  6. data/app/assets/images/fc-snippet-float-three.psd +0 -0
  7. data/app/assets/images/fc-snippet-float-two.jpg +0 -0
  8. data/app/assets/images/fc-snippet-float-two.psd +0 -0
  9. data/app/assets/images/fc-snippet-one.jpg +0 -0
  10. data/app/assets/images/fc-snippet-one.psd +0 -0
  11. data/app/assets/images/fc-snippet-text-one.jpg +0 -0
  12. data/app/assets/images/fc-snippet-text-one.psd +0 -0
  13. data/app/assets/images/fc-snippet-text-three.jpg +0 -0
  14. data/app/assets/images/fc-snippet-text-three.psd +0 -0
  15. data/app/assets/images/fc-snippet-text-two.jpg +0 -0
  16. data/app/assets/images/fc-snippet-text-two.psd +0 -0
  17. data/app/assets/javascripts/rails_admin/featured_content.js.erb +265 -2
  18. data/app/assets/stylesheets/rails_admin/featured_content.scss +7 -13
  19. data/app/views/rails_admin/main/featured_content.html.erb +51 -2
  20. data/config/initializers/assets.rb +7 -0
  21. data/config/locales/featured_content.en.yml +10 -3
  22. data/config/locales/featured_content.pt-BR.yml +10 -3
  23. data/lib/rails_admin_featured_content/version.rb +1 -1
  24. data/spec/version_spec.rb +1 -1
  25. data/vendor/assets/stylesheets/rails_admin_featured_content.scss +56 -42
  26. metadata +53 -49
  27. data/spec/dummy/db/test.sqlite3 +0 -0
  28. data/spec/dummy/log/development.log +0 -17
  29. data/spec/dummy/log/test.log +0 -332
  30. data/spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/example.jpg +0 -0
  31. data/spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/thumb_example.jpg +0 -0
@@ -16,13 +16,14 @@
16
16
  }
17
17
 
18
18
  .fc-date {
19
+ margin-bottom: 1em;
20
+
19
21
  color: rgba(#000, .4);
20
22
  font-size: .7em;
21
23
 
22
- margin-bottom: 1em;
24
+ line-height: 1;
23
25
  padding-bottom: 1em;
24
-
25
- border-bottom: solid .1em rgba(#111, .06);
26
+ border-bottom: solid 1px rgba(#111, .1);
26
27
  }
27
28
 
28
29
  .fc-item {
@@ -42,7 +43,7 @@
42
43
  margin-bottom: 1em;
43
44
  padding-bottom: 1em;
44
45
 
45
- border-bottom: solid 1px rgba(#111, .05);
46
+ border-bottom: solid 1px rgba(#111, .1);
46
47
  }
47
48
 
48
49
  .fc-item--last-borderless {
@@ -90,11 +91,11 @@
90
91
  }
91
92
 
92
93
  .fc-figure {
93
- margin: 0 1em 0 0;
94
- float: left;
94
+ margin: 0 0 0 1rem;
95
+ float: right;
95
96
 
96
- width: 6em;
97
- height: 4.5em;
97
+ width: 100px;
98
+ height: 65px;
98
99
  border-radius: 4px;
99
100
 
100
101
  overflow: hidden;
@@ -111,11 +112,14 @@
111
112
  }
112
113
 
113
114
  .fc-time {
114
- line-height: 1.6;
115
+ line-height: 1;
115
116
 
116
117
  float: right;
117
118
  color: rgba(#000, .4);
119
+ font-family: Arial, sans-serif;
118
120
  font-size: .7em;
121
+ font-weight: 400;
122
+ text-transform: uppercase;
119
123
  }
120
124
 
121
125
  .fc-time--block {
@@ -126,26 +130,31 @@
126
130
  }
127
131
 
128
132
  .fc-caption {
133
+ margin: 0 0 .5em;
134
+
135
+ line-height: 1;
136
+
129
137
  color: rgba(#000, .4);
138
+ font-family: Arial, sans-serif;
130
139
  font-size: .7em;
131
- font-weight: 400;
140
+ font-weight: 600;
132
141
  text-transform: uppercase;
133
-
134
- margin: 0 0 .5em;
135
142
  }
136
143
 
137
144
  .fc-title {
145
+ margin: 0 0 .5em;
146
+
138
147
  line-height: 1.3;
139
148
 
140
149
  color: rgba(#000, .7);
141
150
  font-size: .9em;
142
151
  font-weight: 700;
143
152
  letter-spacing: -.04em;
144
-
145
- margin: 0;
146
153
  }
147
154
 
148
155
  .fc-title--highlight {
156
+ margin: 0;
157
+
149
158
  padding: .6em;
150
159
  background: #222;
151
160
  border-radius: 4px;
@@ -155,21 +164,33 @@
155
164
  }
156
165
 
157
166
  .fc-text {
167
+ margin: 0;
168
+
169
+ display: inline;
158
170
  line-height: 1.4;
171
+ overflow: hidden;
159
172
 
160
- color: lighten(#111, 40%);
173
+ color: lighten(#111, 50%);
161
174
  font-size: .75em;
162
-
163
- margin: .5em 0 0;
164
-
165
- overflow: hidden;
166
175
  }
167
176
 
168
177
 
169
178
  @media screen and (min-width: 460px) {
170
179
  .fc-figure {
171
- width: 9em;
172
- height: 6.2em;
180
+ float: left;
181
+ margin: 0 1em 0 0;
182
+ width: 150px;
183
+ height: 100px;
184
+ }
185
+
186
+ .fc-figure--small {
187
+ width: 90px;
188
+ height: 60px;
189
+ }
190
+
191
+ .fc-figure--large {
192
+ width: 150px;
193
+ height: 100px;
173
194
  }
174
195
 
175
196
  .fc-text {
@@ -180,6 +201,7 @@
180
201
  @media screen and (min-width: 768px) {
181
202
  .fc-row--flex {
182
203
  display: flex;
204
+ flex-wrap: wrap;
183
205
  }
184
206
 
185
207
  .fc-item--border {
@@ -236,26 +258,26 @@
236
258
  height: calc(100% - 1.5em);
237
259
  }
238
260
 
239
- .fc-time {
261
+ .fc-date {
240
262
  font-size: .9em;
263
+ margin-bottom: 1.5em;
264
+ padding-bottom: 1.5em;
241
265
  }
242
266
 
243
- .fc-time--small {
267
+ .fc-date--small {
244
268
  font-size: .7em;
245
269
  }
246
270
 
247
- .fc-date {
248
- font-size: .9em;
249
- margin-bottom: 1.5em;
250
- padding-bottom: 1.5em;
271
+ .fc-time {
272
+ font-size: .8em;
251
273
  }
252
274
 
253
- .fc-date--small {
275
+ .fc-time--small {
254
276
  font-size: .7em;
255
277
  }
256
278
 
257
279
  .fc-caption {
258
- font-size: .9em;
280
+ font-size: .8em;
259
281
  }
260
282
 
261
283
  .fc-caption--small {
@@ -303,14 +325,6 @@
303
325
  transform: translateY(-50%);
304
326
  }
305
327
  }
306
-
307
- .fc-figure--small {
308
- padding-bottom: 40%;
309
- }
310
-
311
- .fc-figure--large {
312
- padding-bottom: 60%;
313
- }
314
328
  }
315
329
 
316
330
  // fc slide
@@ -382,8 +396,6 @@
382
396
  }
383
397
 
384
398
  .fc-slide__title {
385
- margin: 0;
386
-
387
399
  color: rgba(#000, .7);
388
400
  font-size: .9em;
389
401
  letter-spacing: -.03em;
@@ -393,11 +405,11 @@
393
405
  .fc-slide__text {
394
406
  margin: .5em 0 0;
395
407
 
408
+ display: block;
396
409
  line-height: 1.4;
397
410
  max-height: 2.8em;
398
411
 
399
412
  color: rgba(#000, .6);
400
- font-size: .9em;
401
413
 
402
414
  overflow: hidden;
403
415
  }
@@ -407,8 +419,9 @@
407
419
  position: relative;
408
420
 
409
421
  color: #666;
422
+ font-family: Arial, sans-serif;
410
423
  font-size: .8em;
411
- font-weight: 700;
424
+ font-weight: 600;
412
425
  text-transform: uppercase;
413
426
 
414
427
  box-sizing: border-box;
@@ -424,7 +437,7 @@
424
437
 
425
438
  display: block;
426
439
  width: 3em;
427
- height: .2em;
440
+ height: 2px;
428
441
 
429
442
  background: #666;
430
443
  }
@@ -562,6 +575,7 @@
562
575
 
563
576
  .fc-slide__text {
564
577
  max-height: none;
578
+
565
579
  color: rgba(#fff, .8);
566
580
  font-size: 1.2em;
567
581
  text-shadow: 1px 1px 0 rgba(0,0,0,.6);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_featured_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Picolo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-21 00:00:00.000000000 Z
12
+ date: 2017-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -370,12 +370,26 @@ files:
370
370
  - Rakefile
371
371
  - app/assets/images/fc-image-default.jpg
372
372
  - app/assets/images/fc-loading.svg
373
+ - app/assets/images/fc-snippet-float-one.jpg
374
+ - app/assets/images/fc-snippet-float-one.psd
375
+ - app/assets/images/fc-snippet-float-three.jpg
376
+ - app/assets/images/fc-snippet-float-three.psd
377
+ - app/assets/images/fc-snippet-float-two.jpg
378
+ - app/assets/images/fc-snippet-float-two.psd
373
379
  - app/assets/images/fc-snippet-four.jpg
374
380
  - app/assets/images/fc-snippet-four.psd
375
381
  - app/assets/images/fc-snippet-highlight.jpg
376
382
  - app/assets/images/fc-snippet-highlight.psd
383
+ - app/assets/images/fc-snippet-one.jpg
384
+ - app/assets/images/fc-snippet-one.psd
377
385
  - app/assets/images/fc-snippet-slide.jpg
378
386
  - app/assets/images/fc-snippet-slide.psd
387
+ - app/assets/images/fc-snippet-text-one.jpg
388
+ - app/assets/images/fc-snippet-text-one.psd
389
+ - app/assets/images/fc-snippet-text-three.jpg
390
+ - app/assets/images/fc-snippet-text-three.psd
391
+ - app/assets/images/fc-snippet-text-two.jpg
392
+ - app/assets/images/fc-snippet-text-two.psd
379
393
  - app/assets/images/fc-snippet-text.jpg
380
394
  - app/assets/images/fc-snippet-text.psd
381
395
  - app/assets/images/fc-snippet-three.jpg
@@ -451,16 +465,11 @@ files:
451
465
  - spec/dummy/db/migrate/20160729105947_create_featured_contents.rb
452
466
  - spec/dummy/db/migrate/20160729105948_create_featured_content_images.rb
453
467
  - spec/dummy/db/schema.rb
454
- - spec/dummy/db/test.sqlite3
455
468
  - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
456
- - spec/dummy/log/development.log
457
- - spec/dummy/log/test.log
458
469
  - spec/dummy/public/404.html
459
470
  - spec/dummy/public/422.html
460
471
  - spec/dummy/public/500.html
461
472
  - spec/dummy/public/favicon.ico
462
- - spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/example.jpg
463
- - spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/thumb_example.jpg
464
473
  - spec/factories/featured_content.rb
465
474
  - spec/factories/featured_content_image.rb
466
475
  - spec/fixtures/assets/example.jpg
@@ -492,63 +501,58 @@ signing_key:
492
501
  specification_version: 4
493
502
  summary: Easy way for create featured contents using rails_admin
494
503
  test_files:
495
- - spec/spec_helper.rb
496
- - spec/version_spec.rb
497
- - spec/fixtures/assets/example.jpg
498
504
  - spec/controllers/rails_admin_featured_content/featured_content_controller_spec.rb
499
- - spec/factories/featured_content.rb
500
- - spec/factories/featured_content_image.rb
505
+ - spec/dummy/app/assets/javascripts/application.js
506
+ - spec/dummy/app/assets/stylesheets/application.css
507
+ - spec/dummy/app/controllers/application_controller.rb
508
+ - spec/dummy/app/helpers/application_helper.rb
509
+ - spec/dummy/app/uploaders/content_builder_image_uploader.rb
510
+ - spec/dummy/app/uploaders/featured_content_image_uploader.rb
511
+ - spec/dummy/app/views/layouts/application.html.erb
512
+ - spec/dummy/bin/bundle
501
513
  - spec/dummy/bin/rails
502
- - spec/dummy/bin/setup
503
514
  - spec/dummy/bin/rake
504
- - spec/dummy/bin/bundle
505
- - spec/dummy/log/test.log
506
- - spec/dummy/log/development.log
507
- - spec/dummy/config.ru
515
+ - spec/dummy/bin/setup
516
+ - spec/dummy/config/application.rb
517
+ - spec/dummy/config/boot.rb
518
+ - spec/dummy/config/database.yml
519
+ - spec/dummy/config/environment.rb
520
+ - spec/dummy/config/environments/development.rb
521
+ - spec/dummy/config/environments/production.rb
522
+ - spec/dummy/config/environments/test.rb
523
+ - spec/dummy/config/initializers/assets.rb
524
+ - spec/dummy/config/initializers/backtrace_silencers.rb
508
525
  - spec/dummy/config/initializers/cookies_serializer.rb
509
- - spec/dummy/config/initializers/mime_types.rb
510
- - spec/dummy/config/initializers/wrap_parameters.rb
526
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
511
527
  - spec/dummy/config/initializers/inflections.rb
512
- - spec/dummy/config/initializers/rails_admin_featured_content.rb
513
- - spec/dummy/config/initializers/simple_form.rb
528
+ - spec/dummy/config/initializers/mime_types.rb
514
529
  - spec/dummy/config/initializers/rails_admin.rb
515
- - spec/dummy/config/initializers/backtrace_silencers.rb
516
- - spec/dummy/config/initializers/filter_parameter_logging.rb
517
530
  - spec/dummy/config/initializers/rails_admin_content_builder.rb
531
+ - spec/dummy/config/initializers/rails_admin_featured_content.rb
518
532
  - spec/dummy/config/initializers/session_store.rb
519
- - spec/dummy/config/initializers/assets.rb
520
- - spec/dummy/config/environment.rb
521
- - spec/dummy/config/secrets.yml
522
- - spec/dummy/config/application.rb
523
- - spec/dummy/config/locales/simple_form.en.yml
533
+ - spec/dummy/config/initializers/simple_form.rb
534
+ - spec/dummy/config/initializers/wrap_parameters.rb
524
535
  - spec/dummy/config/locales/en.yml
525
- - spec/dummy/config/boot.rb
526
- - spec/dummy/config/database.yml
536
+ - spec/dummy/config/locales/simple_form.en.yml
527
537
  - spec/dummy/config/routes.rb
528
- - spec/dummy/config/environments/production.rb
529
- - spec/dummy/config/environments/test.rb
530
- - spec/dummy/config/environments/development.rb
531
- - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
532
- - spec/dummy/Gemfile.lock
533
- - spec/dummy/Rakefile
538
+ - spec/dummy/config/secrets.yml
539
+ - spec/dummy/config.ru
540
+ - spec/dummy/db/migrate/20160729105801_create_content_builder_categories.rb
541
+ - spec/dummy/db/migrate/20160729105802_create_content_builders.rb
534
542
  - spec/dummy/db/migrate/20160729105803_create_content_builder_images.rb
535
543
  - spec/dummy/db/migrate/20160729105947_create_featured_contents.rb
536
- - spec/dummy/db/migrate/20160729105802_create_content_builders.rb
537
544
  - spec/dummy/db/migrate/20160729105948_create_featured_content_images.rb
538
- - spec/dummy/db/migrate/20160729105801_create_content_builder_categories.rb
539
545
  - spec/dummy/db/schema.rb
540
- - spec/dummy/db/test.sqlite3
541
- - spec/dummy/app/views/layouts/application.html.erb
542
- - spec/dummy/app/assets/stylesheets/application.css
543
- - spec/dummy/app/assets/javascripts/application.js
544
- - spec/dummy/app/helpers/application_helper.rb
545
- - spec/dummy/app/controllers/application_controller.rb
546
- - spec/dummy/app/uploaders/featured_content_image_uploader.rb
547
- - spec/dummy/app/uploaders/content_builder_image_uploader.rb
548
546
  - spec/dummy/Gemfile
549
- - spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/thumb_example.jpg
550
- - spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/example.jpg
547
+ - spec/dummy/Gemfile.lock
548
+ - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
551
549
  - spec/dummy/public/404.html
552
- - spec/dummy/public/favicon.ico
553
550
  - spec/dummy/public/422.html
554
551
  - spec/dummy/public/500.html
552
+ - spec/dummy/public/favicon.ico
553
+ - spec/dummy/Rakefile
554
+ - spec/factories/featured_content.rb
555
+ - spec/factories/featured_content_image.rb
556
+ - spec/fixtures/assets/example.jpg
557
+ - spec/spec_helper.rb
558
+ - spec/version_spec.rb
Binary file
@@ -1,17 +0,0 @@
1
-  (6.8ms) CREATE TABLE "content_builder_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
-  (0.8ms) CREATE TABLE "content_builder_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar, "content_builder_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (1.1ms) CREATE INDEX "index_content_builder_images_on_content_builder_id" ON "content_builder_images" ("content_builder_id")
5
-  (0.7ms) CREATE TABLE "content_builders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "written_by" varchar, "date_publish" datetime, "content" text, "status" boolean DEFAULT 'f', "slug" varchar, "summary" text, "content_builder_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
6
-  (0.7ms) CREATE INDEX "index_content_builders_on_content_builder_category_id" ON "content_builders" ("content_builder_category_id")
7
-  (0.8ms) CREATE TABLE "featured_content_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar, "featured_content_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
8
-  (0.7ms) CREATE INDEX "index_featured_content_images_on_featured_content_id" ON "featured_content_images" ("featured_content_id")
9
-  (0.7ms) CREATE TABLE "featured_contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "status" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
10
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
11
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
-  (0.0ms) SELECT version FROM "schema_migrations"
13
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729105948')
14
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729105803')
15
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729105947')
16
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729105802')
17
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729105801')