blacklight-spotlight 0.20.1 → 0.20.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: 8bbcf2a1345345225ba7a4b727b64400e3cd131c
4
- data.tar.gz: b615a1e22a0aee185b8d1dc137112c98c9127713
3
+ metadata.gz: 67c958d969ca32275b0a601a62193550a72ff895
4
+ data.tar.gz: 11af2709ad72c89efaec127a523d81adf5514a4e
5
5
  SHA512:
6
- metadata.gz: e1f9b62f158841ea8532700ab082e0a08e12fbbdd3a4454afa790bd94f382c81a1eb86875300d2984292efbc8ba87dbb38e9155e82a19284ec927a1b03c73369
7
- data.tar.gz: fbd96d89826869e5742a48aaaa9515a5767e2151f282a991759925e933463b3bc8f938d598f47038eeef363297eba9a938dacb035fc9589a383fd25c7b4dd237
6
+ metadata.gz: 6925061b77a27a85c903bbe2d28752c69f0aea0d89c120fc4ca8a5e97bbd5c37faed52105dc92248110660887227ccdeebb604de186eb70d1365cbd4f10b9471
7
+ data.tar.gz: cc014078433c7f278038fc9607f78ff1cc9f10160eef8c605acfcf72d30912f5114e0226803fd312eb6ee27858191c1969f5d8e40bd7dc936eb04be618a1e0b2
@@ -116,7 +116,13 @@
116
116
  }
117
117
 
118
118
  .item-grid-block {
119
- h3 {margin-top: 0;}
119
+ h3 { margin-top: 0; }
120
+
121
+ .text-col {
122
+ float: none;
123
+ width: auto;
124
+ }
125
+
120
126
  .items-col {
121
127
  margin-bottom: 1em;
122
128
  z-index: 1;
@@ -125,68 +131,71 @@
125
131
  justify-content: space-between;
126
132
  align-content: stretch;
127
133
 
128
- .box {
129
- align-self: auto;
130
- order: 1;
131
- margin: auto;
132
- flex: 1 0 25%;
133
-
134
- .thumbnail {
135
- border: 1px solid $gray-lighter;
136
- padding: 0;
137
- margin: 0;
138
- border-radius: 0;
139
-
140
- a {
141
- & > img {
142
- border: 1px solid $gray-light;
143
- width: 100%;
144
- height: 100%;
145
- object-fit: cover;
146
- overflow: hidden;
147
- }
148
- }
134
+ @media (max-width: $screen-sm-max) {
135
+ margin-bottom: $line-height-computed;
136
+ }
137
+ }
149
138
 
150
- }
139
+ .box {
140
+ align-self: auto;
141
+ flex: 1 0 25%;
142
+ margin: auto;
143
+ min-width: 25%;
144
+ order: 1;
145
+ padding: 5px;
146
+
147
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
148
+ min-width: 128px;
149
+ }
150
+ }
151
+
152
+ .thumbnail {
153
+ border: 1px solid $gray-lighter;
154
+ border-radius: 0;
155
+ margin: 0;
156
+ padding: 0;
157
+
158
+ img {
159
+ border: 1px solid $gray-light;
160
+ width: 100%;
161
+ height: 110px;
162
+ object-fit: cover;
163
+ overflow: hidden;
151
164
 
152
- min-width: 25%;
153
- height: 120px;
154
165
  @media (min-width: $screen-lg-min) {
155
- height: 170px; // default: no sidebar, no text column
166
+ height: 160px; // default: no sidebar, no text column
156
167
  // reduce height if on a page with a sidebar or text column, because will be less wide
157
168
  .col-md-9 & {
158
- height: 135px;
169
+ height: 125px;
159
170
  }
160
171
  }
161
- padding: 5px;
162
172
  }
173
+ }
163
174
 
164
- .item-0 {
165
- flex: 3 1 41%;
166
- }
175
+ .item-0 {
176
+ flex: 3 1 41%;
177
+ }
167
178
 
168
- .item-2 {
169
- flex: 2 1 33%;
170
- }
179
+ .item-2 {
180
+ flex: 2 1 33%;
181
+ }
182
+
183
+ .item-0,
184
+ .item-1,
185
+ .item-2 {
186
+ order: 0;
171
187
 
172
- .item-0, .item-1, .item-2 {
173
- height: 220px;
174
- order: 0;
188
+ .thumbnail img {
189
+ height: 210px;
175
190
  @media (min-width: $screen-lg-min) {
176
- height: 280px; // default: no sidebar, no text column
191
+ height: 270px; // default: no sidebar, no text column
177
192
  // reduce height if on a page with a sidebar or text column, because will be less wide
178
193
  .col-md-9 & {
179
- height: 240px;
194
+ height: 230px;
180
195
  }
181
196
  }
182
197
  }
183
198
  }
184
- @media (max-width: $screen-sm-max) {
185
- &.items-block .items-col {margin-bottom: $line-height-computed;}
186
- }
187
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
188
- &.items-block .items-col .box {min-width: 128px;}
189
- }
190
199
  }
191
200
 
192
201
  .preview-btn, .preview-exit-btn {
@@ -1,5 +1,5 @@
1
1
  <% solr_documents_grid_block.with_solr_helper(self) %>
2
- <div class="content-block items-block item-grid-block row">
2
+ <div class="content-block item-grid-block row">
3
3
  <div class="items-col <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> pull-<%= solr_documents_grid_block.content_align %>">
4
4
  <% if solr_documents_grid_block.documents? %>
5
5
  <% solr_documents_grid_block.each_document.each_with_index do |(block_options, document), index| %>
@@ -1,3 +1,3 @@
1
1
  module Spotlight
2
- VERSION = '0.20.1'.freeze
2
+ VERSION = '0.20.2'.freeze
3
3
  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.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-27 00:00:00.000000000 Z
14
+ date: 2016-07-28 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -1385,7 +1385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1385
1385
  version: '0'
1386
1386
  requirements: []
1387
1387
  rubyforge_project:
1388
- rubygems_version: 2.5.1
1388
+ rubygems_version: 2.6.4
1389
1389
  signing_key:
1390
1390
  specification_version: 4
1391
1391
  summary: Enable librarians, curators, and others who are responsible for digital collections