blacklight-spotlight 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fda223f9dfa6a6776e95f2ee9cca7a7848c32af
4
- data.tar.gz: fa0e94ecb2ef6d20be13860246861cb9c7083054
3
+ metadata.gz: 2b12afe1e6f1ab467dd5f467712531eefba3b6e3
4
+ data.tar.gz: 6013ba28f723ffae008846bb85ed2a8b01d818fd
5
5
  SHA512:
6
- metadata.gz: 84e4e3b37e07dbb3a37c0642a5839641bc508edad850e9340bdc255cfd80e7d76ad8345704305626cf49054970c3f1282d34ad2aa0872f01a1a71237b295d655
7
- data.tar.gz: 9dce25bed97cd0ac824711dc49e2b9fae1c2d94e548d78439f34b014c1ade41675a0925bc9418b1b03b99b16f01e76f801c085f992e814268287df2c62543732
6
+ metadata.gz: d424c79909a478c681e245d548dbcbe1246a90715ce3a5df852d81c6f21b0aa90e64644cac8ac08372981f2db5750cff3f27efb78d0983b2e0153842d45af125
7
+ data.tar.gz: 585cf4431078a9401d7d7726117545cb7d7dae8e867da5888bcef48e8c2ced5a8346f8646ba0bbce0812de1277faf05a600d1b6b5ace2eac3431a5cd8cc9a198
@@ -50,7 +50,7 @@
50
50
  img {
51
51
  height: $exhibit-card-image-size;
52
52
  object-fit: cover;
53
- width: $exhibit-card-image-size;
53
+ width: 100%;
54
54
  }
55
55
 
56
56
  .card-title {
@@ -86,6 +86,25 @@
86
86
  }
87
87
  }
88
88
 
89
+ // between the small and medium breakpoints, reduce the size of the image by a little bit
90
+ @media (min-width: $screen-sm-min) and (max-width: $screen-md-max) {
91
+
92
+ // calculate the size of one full grid column
93
+ $reduce-exhibit-card-image-size: ((($container-sm - $grid-gutter-width) / $grid-columns) - ($grid-gutter-width / 2));
94
+
95
+ .exhibit-card,
96
+ .card-face {
97
+ height: $exhibit-card-height - $reduce-exhibit-card-image-size;
98
+ }
99
+
100
+ .card-front,
101
+ .card-back {
102
+ img {
103
+ height: $exhibit-card-image-size - $reduce-exhibit-card-image-size;
104
+ }
105
+ }
106
+ }
107
+
89
108
  .center-btn {
90
109
  left: 50%;
91
110
  position: absolute;
@@ -1,4 +1,4 @@
1
1
  #
2
2
  module Spotlight
3
- VERSION = '0.9.1'
3
+ VERSION = '0.9.2'
4
4
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :feature_page, class: Spotlight::FeaturePage do
2
+ factory :feature_page, class: 'Spotlight::FeaturePage' do
3
3
  exhibit
4
4
  sequence(:title) { |n| "FeaturePage#{n}" }
5
5
  published true
@@ -13,14 +13,14 @@ FactoryGirl.define do
13
13
  content '[]'
14
14
  after(:build) { |subpage, evaluator| subpage.parent_page = FactoryGirl.create(:feature_page, exhibit: evaluator.exhibit) }
15
15
  end
16
- factory :about_page, class: Spotlight::AboutPage do
16
+ factory :about_page, class: 'Spotlight::AboutPage' do
17
17
  exhibit
18
18
  sequence(:title) { |n| "AboutPage#{n}" }
19
19
  content '[]'
20
20
  published true
21
21
  end
22
22
 
23
- factory :home_page, class: Spotlight::HomePage do
23
+ factory :home_page, class: 'Spotlight::HomePage' do
24
24
  exhibit
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer