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 +4 -4
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +20 -1
- data/lib/spotlight/version.rb +1 -1
- data/spec/factories/pages.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b12afe1e6f1ab467dd5f467712531eefba3b6e3
|
4
|
+
data.tar.gz: 6013ba28f723ffae008846bb85ed2a8b01d818fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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;
|
data/lib/spotlight/version.rb
CHANGED
data/spec/factories/pages.rb
CHANGED
@@ -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
|