blacklight 7.4.2 → 7.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e934144a8f41701622a5173bbafbc5ed5e362035ab2b8e1385a44b62e1e9fb0e
4
- data.tar.gz: 7f70a70e1cd8912173c85a4e6f75e5dc0616735a80ddaa1a92b3f8c8718bdca4
3
+ metadata.gz: 9494eb9f9c98dc35a06a369d93d30095cb05718427599f49c2179c3ab0d44456
4
+ data.tar.gz: fafdd89b5d4bf169f303e2673a7369b32b14894dfb983405cb37f556dcab1a3b
5
5
  SHA512:
6
- metadata.gz: 60909c87a1875508abe174257d0d80448113d2e62a1dc66b65a382f8acf8f539b91e70439b9bb3f1ecd7d30c9ccc6136f2ea586711866eabd0d453244d4db6c3
7
- data.tar.gz: c042494903310dfb577677e7b98aa82a4551c877beb2b1082dd6d356057f50e0539291e943118667b6f33b912f9600bd5841f8132e9dc19e32b7ffac7fa5957c
6
+ metadata.gz: 5011b8be264ee25f7b701e77e0e099add0f382d7f95e85123e53a6f2b215fe867b4bc5fdbb0ff02845c125fe0d89674f83750bb044650acdad103d6eb4fcb1ac
7
+ data.tar.gz: c772cdf8efef43a8c86c81b7ff445f5a7a6a7ab6ebdb8d6d2bac4654a558528522e6e76eec8e330996288f2e0d991fb531fb7852ded86c4bd8f0f69f0db53563
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.4.2
1
+ 7.5.0
@@ -1 +1 @@
1
- <svg width="14" height="14" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1"/><circle cx="1" cy="5" r="1"/><circle cx="1" cy="9" r="1"/><circle cx="1" cy="13" r="1"/><path d="M4 8.5h9v1H4zM4 4.5h9v1H4zM4 .5h9v1H4zM4 12.5h9v1H4z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
@@ -36,6 +36,13 @@
36
36
  }
37
37
  }
38
38
 
39
+ .facets-header {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ padding-bottom: 0.5rem;
43
+ padding-top: 0.5rem;
44
+ }
45
+
39
46
  .facets-heading {
40
47
  @extend .h4;
41
48
  line-height: inherit;
@@ -132,8 +139,6 @@
132
139
  -------------------------------------------------- */
133
140
 
134
141
  .facet-pagination {
135
- @extend .clearfix;
136
-
137
142
  &.top {
138
143
  padding: $modal-inner-padding;
139
144
  }
@@ -1,35 +1,21 @@
1
- .blacklight-icons {
2
- display: inline-flex;
3
- height: $font-size-base;
4
- width: $font-size-base;
5
- }
6
-
7
- .blacklight-icons svg {
8
- height: 1rem;
9
- width: 1rem;
10
- top: .125rem;
11
- position: relative;
12
- }
13
-
14
1
  @each $color, $value in $theme-colors {
15
2
  .btn-#{$color} {
16
3
  .blacklight-icons svg {
17
- @include fill-yiq(theme-color($color));
4
+ fill: currentColor;
18
5
  }
19
6
  }
20
7
 
21
8
  .btn-outline-#{$color} {
22
9
  .blacklight-icons svg {
23
- fill: $value;
10
+ fill: currentColor;
24
11
  }
12
+ }
13
+ }
25
14
 
26
- &.hover,
27
- &:hover,
28
- &:active,
29
- &.active {
30
- .blacklight-icons svg {
31
- @include fill-yiq(theme-color($color));
32
- }
33
- }
15
+ .btn.btn-icon {
16
+ padding: $btn-padding-y;
17
+
18
+ &.btn-sm {
19
+ padding: $btn-padding-y-sm;
34
20
  }
35
21
  }
@@ -2,7 +2,7 @@
2
2
  <% if has_facet_values? facet_field_names(groupname), @response %>
3
3
  <div id="facets<%= "-#{groupname}" unless groupname.nil? %>" class="facets sidenav facets-toggleable-md">
4
4
 
5
- <div class="navbar">
5
+ <div class="facets-header">
6
6
  <h2 class="facets-heading">
7
7
  <%= groupname.blank? ? t('blacklight.search.facets.title') : t("blacklight.search.facets-#{groupname}.title") %>
8
8
  </h2>
@@ -1,4 +1,4 @@
1
- <div class="prev_next_links btn-group float-md-left">
1
+ <div class="prev_next_links btn-group">
2
2
  <%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), params: search_state.to_h, param_name: blacklight_config.facet_paginator_class.request_keys[:page], class: 'btn btn-link', data: { blacklight_modal: "preserve" } do %>
3
3
  <span class="disabled btn btn-disabled"><%= raw(t('views.pagination.previous')) %></span>
4
4
  <% end %>
@@ -8,7 +8,7 @@
8
8
  <% end %>
9
9
  </div>
10
10
 
11
- <div class="sort-options btn-group float-md-right">
11
+ <div class="sort-options btn-group">
12
12
  <% if @pagination.sort == 'index' -%>
13
13
  <span class="active az btn btn-outline-secondary"><%= t('blacklight.search.facets.sort.index') %></span>
14
14
  <%= link_to(t('blacklight.search.facets.sort.count'), @pagination.params_for_resort_url('count', search_state.to_h), class: "sort_change numeric btn btn-outline-secondary", data: { blacklight_modal: "preserve" }) %>
@@ -1,4 +1,4 @@
1
- <div id="sortAndPerPage" class="sort-pagination clearfix">
1
+ <div id="sortAndPerPage" class="sort-pagination d-md-flex justify-content-between">
2
2
  <%= render partial: "paginate_compact", object: @response if show_pagination? %>
3
- <%= render_results_collection_tools wrapping_class: "search-widgets float-md-right" %>
3
+ <%= render_results_collection_tools wrapping_class: "search-widgets" %>
4
4
  </div>
@@ -3,7 +3,7 @@
3
3
  <span class="sr-only"><%= t('blacklight.search.view_title') %></span>
4
4
  <div class="view-type-group btn-group">
5
5
  <% document_index_view_controls.each do |view, config| %>
6
- <%= link_to url_for(search_state.to_h.merge(view: view)), title: view_label(view), class: "btn btn-outline-secondary view-type-#{ view.to_s.parameterize } #{"active" if document_index_view_type == view}" do %>
6
+ <%= link_to url_for(search_state.to_h.merge(view: view)), title: view_label(view), class: "btn btn-outline-secondary btn-icon view-type-#{ view.to_s.parameterize } #{"active" if document_index_view_type == view}" do %>
7
7
  <%= render_view_type_group_icon view %>
8
8
  <span class="caption"><%= view_label(view) %></span>
9
9
  <% end %>
@@ -1,4 +1,4 @@
1
- <div class="facet-pagination top">
1
+ <div class="facet-pagination top row justify-content-between">
2
2
  <%= render :partial=>'facet_pagination' %>
3
3
  </div>
4
4
 
@@ -18,8 +18,7 @@
18
18
  </div>
19
19
 
20
20
  <div class="modal-footer">
21
-
22
- <div class="facet-pagination bottom">
21
+ <div class="facet-pagination bottom row justify-content-between">
23
22
  <%= render :partial=>'facet_pagination' %>
24
23
  </div>
25
24
  </div>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-frontend",
3
- "version": "7.2.0",
3
+ "version": "7.5.0",
4
4
  "description": "[![Build Status](https://travis-ci.org/projectblacklight/blacklight.png?branch=master)](https://travis-ci.org/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=master)](https://coveralls.io/github/projectblacklight/blacklight?branch=master)",
5
5
  "main": "app/assets/javascripts/blacklight",
6
6
  "scripts": {
@@ -56,7 +56,7 @@ RSpec.describe "Facets" do
56
56
 
57
57
  expect(page).to have_css('#facet-format', visible: false)
58
58
 
59
- within('#facets .navbar') do
59
+ within('#facets .facets-header') do
60
60
  page.find('button.navbar-toggler').click
61
61
  end
62
62
 
@@ -170,7 +170,7 @@ RSpec.describe "Facets" do
170
170
  skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
171
171
  visit root_path
172
172
 
173
- within('#facets .navbar') do
173
+ within('#facets .facets-header') do
174
174
  page.find('button.navbar-toggler').click
175
175
  end
176
176
 
@@ -182,7 +182,7 @@ RSpec.describe "Facets" do
182
182
  skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
183
183
  visit root_path
184
184
 
185
- within('#facets .navbar') do
185
+ within('#facets .facets-header') do
186
186
  page.find('button.navbar-toggler').click
187
187
  end
188
188
 
@@ -196,7 +196,7 @@ RSpec.describe "Facets" do
196
196
  skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
197
197
  visit root_path
198
198
 
199
- within('#facets .navbar') do
199
+ within('#facets .facets-header') do
200
200
  page.find('button.navbar-toggler').click
201
201
  end
202
202
 
@@ -210,7 +210,7 @@ RSpec.describe "Facets" do
210
210
  skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
211
211
  visit root_path
212
212
 
213
- within('#facets .navbar') do
213
+ within('#facets .facets-header') do
214
214
  page.find('button.navbar-toggler').click
215
215
  end
216
216
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.2
4
+ version: 7.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2019-12-10 00:00:00.000000000 Z
20
+ date: 2019-12-18 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -737,7 +737,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
737
737
  - !ruby/object:Gem::Version
738
738
  version: '0'
739
739
  requirements: []
740
- rubygems_version: 3.0.3
740
+ rubygems_version: 3.1.1
741
741
  signing_key:
742
742
  specification_version: 4
743
743
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)