geoblacklight 2.4.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +152 -64
  3. data/.rubocop.yml +15 -13
  4. data/.rubocop_todo.yml +66 -10
  5. data/README.md +1 -1
  6. data/Rakefile +1 -0
  7. data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +1 -1
  8. data/app/assets/javascripts/geoblacklight/modules/svg_tooltips.js +31 -0
  9. data/app/assets/javascripts/geoblacklight/viewers/esri.js +2 -2
  10. data/app/assets/javascripts/geoblacklight/viewers/esri/tiled_map_layer.js +1 -1
  11. data/app/assets/javascripts/geoblacklight/viewers/wms.js +2 -2
  12. data/app/assets/stylesheets/geoblacklight/geoblacklight.scss +2 -0
  13. data/app/assets/stylesheets/geoblacklight/modules/_base.scss +33 -0
  14. data/app/assets/stylesheets/geoblacklight/{_blacklight_overrides.scss → modules/_blacklight_overrides.scss} +0 -0
  15. data/app/assets/stylesheets/geoblacklight/{_styles.scss → modules/_styles.scss} +1 -0
  16. data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +37 -54
  17. data/app/assets/stylesheets/geoblacklight/modules/item.scss +1 -0
  18. data/app/assets/stylesheets/geoblacklight/modules/results.scss +16 -28
  19. data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +12 -42
  20. data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +17 -59
  21. data/app/controllers/download_controller.rb +12 -12
  22. data/app/controllers/relation_controller.rb +1 -0
  23. data/app/controllers/wms_controller.rb +1 -0
  24. data/app/helpers/arcgis_helper.rb +1 -0
  25. data/app/helpers/blacklight_helper.rb +1 -0
  26. data/app/helpers/carto_helper.rb +1 -0
  27. data/app/helpers/geoblacklight_helper.rb +25 -72
  28. data/app/models/concerns/geoblacklight/solr_document.rb +7 -6
  29. data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +2 -1
  30. data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -13
  31. data/app/models/concerns/geoblacklight/solr_document/citation.rb +1 -0
  32. data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
  33. data/app/models/concerns/geoblacklight/solr_document/inspection.rb +2 -1
  34. data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +3 -1
  35. data/app/presenters/geoblacklight/document_presenter.rb +2 -1
  36. data/app/views/catalog/_arcgis.html.erb +4 -0
  37. data/app/views/catalog/_carto.html.erb +4 -0
  38. data/app/views/catalog/_downloads_primary.html.erb +8 -1
  39. data/app/views/catalog/_header_icons.html.erb +3 -3
  40. data/app/views/catalog/_home_text.html.erb +3 -0
  41. data/app/views/catalog/_index_split_default.html.erb +21 -21
  42. data/app/views/relation/_ancestors.html.erb +1 -4
  43. data/app/views/relation/_descendants.html.erb +2 -5
  44. data/app/views/relation/index.html.erb +20 -8
  45. data/app/views/relation/index.json.jbuilder +2 -1
  46. data/app/views/shared/_header_navbar.html.erb +0 -2
  47. data/bin/coverage.rb +36 -0
  48. data/config/initializers/rails_config.rb +1 -0
  49. data/config/locales/geoblacklight.en.yml +3 -2
  50. data/geoblacklight.gemspec +3 -6
  51. data/lib/generators/geoblacklight/assets_generator.rb +46 -0
  52. data/lib/generators/geoblacklight/install_generator.rb +3 -9
  53. data/lib/generators/geoblacklight/templates/assets/_blacklight.scss +1 -0
  54. data/lib/generators/geoblacklight/templates/assets/_customizations.scss +28 -0
  55. data/{app/assets/stylesheets/geoblacklight/application.scss → lib/generators/geoblacklight/templates/assets/_geoblacklight.scss} +0 -1
  56. data/lib/generators/geoblacklight/templates/assets/application.scss +7 -0
  57. data/lib/generators/geoblacklight/templates/{geoblacklight.js → assets/geoblacklight.js} +0 -0
  58. data/lib/generators/geoblacklight/templates/catalog_controller.rb +3 -2
  59. data/lib/generators/geoblacklight/templates/settings.yml +0 -6
  60. data/lib/generators/geoblacklight/webpacker_generator.rb +1 -0
  61. data/lib/geoblacklight.rb +1 -0
  62. data/lib/geoblacklight/bounding_box.rb +1 -0
  63. data/lib/geoblacklight/catalog_helper_override.rb +1 -0
  64. data/lib/geoblacklight/constants.rb +1 -0
  65. data/lib/geoblacklight/download.rb +2 -1
  66. data/lib/geoblacklight/download/geojson_download.rb +1 -0
  67. data/lib/geoblacklight/download/geotiff_download.rb +1 -0
  68. data/lib/geoblacklight/download/hgl_download.rb +1 -0
  69. data/lib/geoblacklight/download/kmz_download.rb +2 -1
  70. data/lib/geoblacklight/download/shapefile_download.rb +1 -0
  71. data/lib/geoblacklight/engine.rb +1 -2
  72. data/lib/geoblacklight/exceptions.rb +1 -0
  73. data/lib/geoblacklight/geoblacklight_helper_behavior.rb +1 -0
  74. data/lib/geoblacklight/item_viewer.rb +1 -0
  75. data/lib/geoblacklight/metadata.rb +1 -0
  76. data/lib/geoblacklight/metadata/base.rb +1 -0
  77. data/lib/geoblacklight/metadata/fgdc.rb +1 -0
  78. data/lib/geoblacklight/metadata/html.rb +2 -2
  79. data/lib/geoblacklight/metadata/iso19139.rb +1 -0
  80. data/lib/geoblacklight/metadata_transformer.rb +1 -0
  81. data/lib/geoblacklight/metadata_transformer/base.rb +1 -0
  82. data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
  83. data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
  84. data/lib/geoblacklight/reference.rb +1 -0
  85. data/lib/geoblacklight/references.rb +7 -3
  86. data/lib/geoblacklight/relation/ancestors.rb +1 -0
  87. data/lib/geoblacklight/relation/descendants.rb +1 -0
  88. data/lib/geoblacklight/relation/relation_response.rb +2 -1
  89. data/lib/geoblacklight/routes.rb +1 -0
  90. data/lib/geoblacklight/routes/downloadable.rb +1 -0
  91. data/lib/geoblacklight/routes/exportable.rb +1 -0
  92. data/lib/geoblacklight/routes/wms.rb +1 -0
  93. data/lib/geoblacklight/version.rb +2 -1
  94. data/lib/geoblacklight/view_helper_override.rb +1 -0
  95. data/lib/geoblacklight/wms_layer.rb +1 -0
  96. data/lib/geoblacklight/wms_layer/feature_info_response.rb +1 -0
  97. data/lib/tasks/geoblacklight.rake +33 -32
  98. data/spec/controllers/catalog_controller_spec.rb +1 -0
  99. data/spec/controllers/download_controller_spec.rb +1 -0
  100. data/spec/controllers/relation_controller_spec.rb +1 -0
  101. data/spec/controllers/wms_controller_spec.rb +1 -0
  102. data/spec/factories/user.rb +1 -0
  103. data/spec/features/bookmarks_spec.rb +1 -0
  104. data/spec/features/configurable_basemap_spec.rb +1 -0
  105. data/spec/features/data_dictionary_download_spec.rb +1 -0
  106. data/spec/features/download_layer_spec.rb +1 -0
  107. data/spec/features/empty_search_spec.rb +1 -0
  108. data/spec/features/esri_viewer_spec.rb +1 -5
  109. data/spec/features/exports_spec.rb +4 -12
  110. data/spec/features/help_text_spec.rb +1 -0
  111. data/spec/features/home_page_spec.rb +6 -0
  112. data/spec/features/iiif_viewer_spec.rb +1 -0
  113. data/spec/features/index_map_spec.rb +1 -0
  114. data/spec/features/layer_inspection_spec.rb +1 -0
  115. data/spec/features/layer_opacity_spec.rb +1 -0
  116. data/spec/features/layer_preview_spec.rb +1 -0
  117. data/spec/features/layer_with_no_references_spec.rb +1 -0
  118. data/spec/features/linkified_attribute_table_spec.rb +1 -0
  119. data/spec/features/metadata_panel_spec.rb +1 -0
  120. data/spec/features/missing_metadata_spec.rb +1 -0
  121. data/spec/features/multiple_downloads_spec.rb +15 -0
  122. data/spec/features/oembed_spec.rb +1 -0
  123. data/spec/features/relations_spec.rb +10 -29
  124. data/spec/features/saved_searches_spec.rb +1 -0
  125. data/spec/features/search_bar_spec.rb +1 -0
  126. data/spec/features/search_results_map_spec.rb +1 -6
  127. data/spec/features/search_results_overlap_ratio_spec.rb +4 -3
  128. data/spec/features/search_spec.rb +1 -0
  129. data/spec/features/show_page_metadata_spec.rb +1 -0
  130. data/spec/features/sms_spec.rb +1 -0
  131. data/spec/features/split_view.html.erb_spec.rb +2 -1
  132. data/spec/features/suppressed_records_spec.rb +1 -0
  133. data/spec/features/web_services_modal_spec.rb +1 -0
  134. data/spec/fixtures/solr_documents/multiple-downloads.json +30 -0
  135. data/spec/helpers/arcgis_helper_spec.rb +1 -0
  136. data/spec/helpers/carto_helper_spec.rb +1 -0
  137. data/spec/helpers/geoblacklight_helper_spec.rb +47 -14
  138. data/spec/javascripts/geoblacklight/viewers/esri/tiled_map_layer_spec.js +12 -0
  139. data/spec/lib/geoblacklight/bounding_box_spec.rb +1 -0
  140. data/spec/lib/geoblacklight/controller_override_spec.rb +1 -0
  141. data/spec/lib/geoblacklight/document_presenter_spec.rb +3 -2
  142. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -0
  143. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -0
  144. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -0
  145. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -0
  146. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -0
  147. data/spec/lib/geoblacklight/download_spec.rb +2 -1
  148. data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
  149. data/spec/lib/geoblacklight/item_viewer_spec.rb +1 -0
  150. data/spec/lib/geoblacklight/metadata/base_spec.rb +1 -0
  151. data/spec/lib/geoblacklight/metadata/html_spec.rb +1 -0
  152. data/spec/lib/geoblacklight/metadata_spec.rb +1 -0
  153. data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +3 -2
  154. data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +3 -2
  155. data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +3 -2
  156. data/spec/lib/geoblacklight/metadata_transformer_spec.rb +4 -3
  157. data/spec/lib/geoblacklight/reference_spec.rb +1 -0
  158. data/spec/lib/geoblacklight/references_spec.rb +2 -3
  159. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +1 -0
  160. data/spec/lib/geoblacklight/relation/descendants_spec.rb +1 -0
  161. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +1 -0
  162. data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -0
  163. data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +5 -4
  164. data/spec/lib/geoblacklight/wms_layer_spec.rb +1 -0
  165. data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +1 -20
  166. data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +1 -0
  167. data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +1 -0
  168. data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +1 -0
  169. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +1 -0
  170. data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +15 -2
  171. data/spec/routing/catalog_routing_spec.rb +1 -0
  172. data/spec/spec_helper.rb +12 -9
  173. data/spec/support/backport_test_helpers.rb +1 -0
  174. data/spec/support/features.rb +1 -0
  175. data/spec/support/features/session_helpers.rb +1 -0
  176. data/spec/support/fixtures.rb +1 -0
  177. data/spec/tasks/geoblacklight_spec.rb +4 -3
  178. data/spec/teaspoon_env.rb +1 -0
  179. data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -0
  180. data/spec/views/catalog/_document_split.html.erb_spec.rb +1 -0
  181. data/spec/views/catalog/_index_split.html.erb_spec.rb +1 -0
  182. data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -0
  183. data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -0
  184. data/spec/views/catalog/_show_tools.html.erb_spec.rb +2 -4
  185. data/template.rb +1 -0
  186. metadata +42 -68
  187. data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +0 -36
  188. data/app/assets/stylesheets/geoblacklight/modules/relations.scss +0 -15
  189. data/app/views/catalog/_exports.html.erb +0 -3
  190. data/app/views/catalog/_show_tools.html.erb +0 -25
  191. data/lib/generators/geoblacklight/templates/geoblacklight.scss +0 -4
  192. data/vendor/assets/javascripts/readmore.js +0 -0
  193. data/vendor/assets/javascripts/readmore.min.js +0 -0
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
  require 'rails'
3
4
  begin
4
5
  require 'bundler/setup'
@@ -3,7 +3,7 @@
3
3
 
4
4
  var Downloader = L.Class.extend({
5
5
  options: {
6
- spinner: $('<i class="fa fa-spinner fa-spin fa-2x fa-align-center"></i>')
6
+ spinner: $('<div class="spinner-border spinner-border-sm float-right" role="status"><span class="sr-only">Downloading</span></div>')
7
7
  },
8
8
 
9
9
  initialize: function(el, options) {
@@ -0,0 +1,31 @@
1
+ /* global Blacklight */
2
+
3
+ Blacklight.onLoad(function() {
4
+ 'use strict';
5
+
6
+ $('body').on('mouseenter', '.blacklight-icons.svg_tooltip svg', function() {
7
+ var svgTitle = $(this).find('title');
8
+ var titleText = svgTitle && svgTitle.text();
9
+
10
+ if (titleText !== undefined && titleText !== '') {
11
+ $(this).tooltip({ placement: 'bottom', title: titleText });
12
+ $(this).tooltip('show');
13
+
14
+ // Store the original title in the data-original-title attribute
15
+ // and remove the title element on mouseenter.
16
+ // This prevents the title from interfering w/ Bootstrap's tooltip.
17
+ $(this).attr('data-original-title', titleText);
18
+ svgTitle.remove();
19
+ }
20
+ });
21
+
22
+ $('body').on('mouseleave', '.blacklight-icons.svg_tooltip svg', function() {
23
+ var originalTitle = $(this).attr('data-original-title');
24
+
25
+ if (originalTitle !== undefined && originalTitle !== '') {
26
+ // Restore the SVG title element from data-original-title on mouseleave
27
+ $(this).prepend($('<title>' + originalTitle + '</title>'));
28
+ $(this).attr('data-original-title', '');
29
+ }
30
+ });
31
+ });
@@ -50,8 +50,8 @@ GeoBlacklight.Viewer.Esri = GeoBlacklight.Viewer.Map.extend({
50
50
  appendLoadingMessage: function() {
51
51
  var spinner = '<tbody class="attribute-table-body"><tr><td colspan="2">' +
52
52
  '<span id="attribute-table">' +
53
- '<i class="fa fa-spinner fa-spin fa-align-center">' +
54
- '</i></span>' +
53
+ '<div class="spinner-border" role="status"><span class="sr-only">Inspecting</span></div>' +
54
+ '</span>' +
55
55
  '</td></tr></tbody>';
56
56
 
57
57
  $('.attribute-table-body').html(spinner);
@@ -30,7 +30,7 @@ GeoBlacklight.Viewer.TiledMapLayer = GeoBlacklight.Viewer.Esri.extend({
30
30
  _this.appendLoadingMessage();
31
31
 
32
32
  // query layer at click location
33
- L.esri.Tasks.identifyFeatures({
33
+ L.esri.identifyFeatures({
34
34
  url: layer.options.url,
35
35
  useCors: true
36
36
  })
@@ -23,7 +23,7 @@ GeoBlacklight.Viewer.Wms = GeoBlacklight.Viewer.Map.extend({
23
23
  format: 'image/png',
24
24
  transparent: true,
25
25
  tiled: true,
26
- CRS: 'EPSG:900913',
26
+ CRS: 'EPSG:3857',
27
27
  opacity: this.options.opacity,
28
28
  detectRetina: _this.detectRetina()
29
29
  });
@@ -34,7 +34,7 @@ GeoBlacklight.Viewer.Wms = GeoBlacklight.Viewer.Map.extend({
34
34
  setupInspection: function() {
35
35
  var _this = this;
36
36
  this.map.on('click', function(e) {
37
- spinner = '<tbody class="attribute-table-body"><tr><td colspan="2"><span id="attribute-table"><i class="fa fa-spinner fa-spin fa-align-center"></i></span></td></tr></tbody>';
37
+ spinner = '<tbody class="attribute-table-body"><tr><td colspan="2"><span id="attribute-table"><div class="spinner-border" role="status"><span class="sr-only">Inspecting</span></div></span></td></tr></tbody>';
38
38
  $('.attribute-table-body').replaceWith(spinner);
39
39
  var wmsoptions = {
40
40
  URL: _this.data.url,
@@ -0,0 +1,2 @@
1
+ @import 'leaflet';
2
+ @import 'modules/base';
@@ -0,0 +1,33 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ */
12
+
13
+ @import 'styles';
14
+ @import 'facets';
15
+ @import 'mixins';
16
+ @import 'icon-customization';
17
+ @import 'home';
18
+ @import 'index_maps';
19
+ @import 'item';
20
+ @import 'layer_opacity';
21
+ @import 'metadata';
22
+ @import 'metadata_content';
23
+ @import 'metadata_missing';
24
+ @import 'metadata_markup';
25
+ @import 'modal';
26
+ @import 'results';
27
+ @import 'geosearch';
28
+ @import 'search_widgets';
29
+ @import 'sidebar';
30
+ @import 'toolbar';
31
+ @import 'web_services';
32
+ @import 'blacklight_overrides';
33
+ @import 'downloads';
@@ -1,4 +1,5 @@
1
1
  #table-container{
2
2
  overflow:scroll;
3
+ margin-top: 20px;
3
4
  max-height: 450px;
4
5
  }
@@ -1,91 +1,74 @@
1
- %downloads-exports {
2
- .list-group-item {
3
- display: inline-block;
4
- width: 100%;
5
- }
6
- }
7
-
8
- %download-export-links {
9
- a {
10
- width: 100%;
11
- font-weight: 600;
12
- background-color: $link-color;
13
- color: #ffffff;
14
- border-color: darken($link-color, 6.5%);
15
- white-space: inherit;
16
- }
17
- }
1
+ // Common styling for the Downloads, Export, and Authentication cards
2
+ .downloads,
3
+ .card.exports,
4
+ .authentication {
5
+ @include sidebar-children;
18
6
 
19
- @mixin download-export {
20
- &-link {
21
- &-container {
22
- text-align: center;
23
- @extend %download-export-links;
7
+ .list-group {
8
+ &.list-group-nested .list-group-item:last-child {
9
+ padding-bottom: 0;
24
10
  }
25
- }
26
- }
27
11
 
28
- .downloads {
29
- @include sidebar-children;
30
- @extend %downloads-exports;
12
+ .list-group-item {
13
+ padding: 8px 20px;
31
14
 
32
- .download {
33
- @include download-export;
15
+ a {
16
+ @extend .btn-primary;
17
+ }
18
+ }
34
19
  }
35
20
  }
36
21
 
22
+ // This section could be eliminated if we update the Authentication card
23
+ // to follow the pattern of Dowloads and Exports (put the button in a
24
+ // list-group rather than the card header).
37
25
  .authentication {
38
- @include sidebar-children;
39
26
  .card-header {
40
27
  background-color: inherit;
41
28
  border-bottom: inherit;
42
29
 
43
- @extend %download-export-links;
30
+ a {
31
+ @extend .btn-primary;
32
+ }
44
33
  }
45
34
  }
46
35
 
47
- .exports {
48
- @include sidebar-children;
49
- @extend %downloads-exports;
50
-
36
+ // Specific to the Export card (mostly because of the current external
37
+ // label + button approach, which could be mostly eliminated by reworking
38
+ // as suggested in https://github.com/sul-dlss/earthworks/issues/646)
39
+ .card.exports {
51
40
  .card-header {
52
- .fa-spinner {
53
- float: right;
41
+ .spinner-border { // if this is used, it probably should go in the card body rather than the card header
42
+ position: absolute;
43
+ right: 1rem;
44
+ top: 1rem;
54
45
  }
55
46
  }
56
47
 
57
48
  .export {
58
- @include download-export;
59
-
60
- padding-left: 0px;
61
- padding-right: 0px;
62
49
  text-align: center;
63
- width: 100%;
64
50
 
65
51
  @include media-breakpoint-up(xl) {
66
52
  text-align: left;
67
53
  }
68
54
 
69
- &-label {
70
- padding: 6px 12px;
55
+ .export-label {
56
+ padding: 6px 6px 6px 0;
71
57
 
72
58
  @include media-breakpoint-up(xl) {
73
59
  display: inline-block;
74
60
  }
75
61
  }
76
62
 
77
- &-link {
78
- &-container {
63
+ .export-link-container {
64
+ @include media-breakpoint-up(xl) {
65
+ display: inline-block;
66
+ float: right;
67
+ }
79
68
 
69
+ a {
80
70
  @include media-breakpoint-up(xl) {
81
- display: inline-block;
82
- float: right;
83
- }
84
-
85
- a {
86
- @include media-breakpoint-up(xl) {
87
- width: inherit;
88
- }
71
+ width: inherit;
89
72
  }
90
73
  }
91
74
  }
@@ -7,6 +7,7 @@
7
7
 
8
8
  #viewer-container {
9
9
  [data-map="item"] {
10
+ border: 1px solid $gray-400;
10
11
  height: 27.5rem;
11
12
  }
12
13
 
@@ -5,52 +5,40 @@
5
5
  .more-info-area {
6
6
  max-height: 100px;
7
7
  overflow:hidden;
8
+ padding-left: 2ch;
8
9
  }
9
10
 
10
- .index_title {
11
- @extend h5;
12
- display: flex;
13
- justify-content: space-between;
14
- font-size:1rem;
15
- width:80%;
11
+ .documents-list {
12
+ @extend .mb-4;
13
+ }
16
14
 
17
- .title-wrapper {
18
- @extend .d-flex;
19
- @extend .justify-content-start;
20
- flex: 1;
21
- min-width: 0;
15
+ .index-split {
16
+ .index_title {
17
+ display: flex;
18
+ font-size: 1rem;
19
+ padding-right: 0;
22
20
  }
23
21
 
24
22
  .document-counter {
25
23
  @extend .pr-1;
26
24
  }
27
25
 
28
- a {
29
- white-space: nowrap;
30
- overflow-x: hidden;
31
- min-width: 0;
32
- text-overflow: ellipsis;
33
- position: relative;
34
- z-index: 2; // get the link above the toggle
35
- }
36
-
37
26
  .caret-toggle {
38
- @extend .fa, .fa-caret-right;
39
- flex-grow: 0;
40
- width: 10px;
27
+ @include caret('right');
28
+ padding-left: 0;
29
+ width: 28px;
41
30
 
42
31
  &[aria-expanded="true"] {
43
- @extend .fa, .fa-caret-down;
32
+ @include caret('down');
44
33
  }
45
34
  }
46
35
 
47
- .document-counter {
48
- flex-grow: 0;
49
- }
50
-
51
36
  .status-icons {
37
+ cursor: pointer;
52
38
  margin-left: 0.5rem;
39
+ margin-top: -3px;
53
40
  white-space: nowrap;
41
+ z-index: 2; // get the icons above the toggle
54
42
  }
55
43
  }
56
44
 
@@ -1,59 +1,29 @@
1
1
  // Mixins and shared properties for sidebar elements
2
-
3
2
  @mixin sidebar-children {
4
- %list-group-item-children {
5
- padding: 10px 15px;
6
- }
7
-
8
- %list-group-item-anchors {
9
- text-align: center;
10
- width: 1.4em;
11
- }
12
-
13
- margin-top: 16px;
14
- margin-bottom: 16px;
3
+ margin-bottom: 20px;
4
+ margin-top: 20px;
15
5
 
16
- .card-header {
17
- h2 {
18
- display: inline-block;
19
- padding-top: 8px;
20
- padding-bottom: 8px;
21
- margin-bottom: 0px;
22
- font-size: 1rem;
23
- }
6
+ .card-header h2 {
7
+ @extend .h6;
8
+ margin-bottom: 0px;
24
9
  }
25
10
 
26
11
  .card-subtitle {
27
- margin: 1rem 0 .2rem;
28
- font-size: .9rem;
12
+ margin: 1rem 0 0;
13
+ font-size: 1rem;
29
14
  font-weight: normal;
30
- color: $gray-600;
31
15
  }
32
16
 
33
17
  .list-group {
34
- padding-top: 24px;
35
- padding-bottom: 24px;
36
- padding-left: 4px;
37
- padding-right: 4px;
18
+ border: 0;
19
+ margin: 8px 0;
38
20
 
39
21
  .list-group-item {
40
- border-color: $white;
41
- padding: 8px 16px;
22
+ border: 0;
23
+ padding: 0 0 0 20px;
42
24
 
43
25
  a {
44
- @extend %list-group-item-children;
45
-
46
- .geoblacklight {
47
- color: $gray-600;
48
- }
49
- }
50
- }
51
-
52
- &-nested {
53
- padding: 0;
54
-
55
- .list-group-item {
56
- padding: 8px 0;
26
+ display: block;
57
27
  }
58
28
  }
59
29
  }
@@ -1,70 +1,28 @@
1
1
  .show-tools {
2
2
  @include sidebar-children;
3
3
 
4
- .list-group {
5
-
6
- .list-group-item.exports {
7
- margin-top:0px;
8
- }
9
-
10
- .list-group-item {
11
-
12
- form {
13
- @extend %list-group-item-children;
14
-
15
- .checkbox {
16
- margin-left: 4px;
17
- margin-right: 4px;
18
-
19
- label {
20
- margin-bottom: inherit;
21
- }
22
- }
4
+ .list-group .list-group-item {
5
+ // Adjustments to give Bookmark same spacing as other Tools links
6
+ .checkbox {
7
+ label {
8
+ margin-bottom: 0;
23
9
  }
24
10
 
25
- a {
26
-
27
- .geoblacklight {
28
-
29
- &-citation {
30
- @extend %list-group-item-anchors;
31
- }
32
-
33
- &-data-dictionary {
34
- @extend %list-group-item-anchors;
35
- }
36
-
37
- &-sms {
38
- @extend %list-group-item-anchors;
39
- }
40
-
41
- &-email {
42
- @extend %list-group-item-anchors;
43
- }
44
-
45
- &-web_services {
46
- @extend %list-group-item-anchors;
47
- }
48
-
49
- &-metadata {
50
- @extend %list-group-item-anchors;
51
- }
52
-
53
- &-carto {
54
- @extend %list-group-item-anchors;
55
- }
56
-
57
- // DEPRECATED: Will be removed in GeoBlacklight v2.0
58
- &-cartodb {
59
- @extend %list-group-item-anchors;
60
- }
61
- }
11
+ .toggle-bookmark {
12
+ margin-right: 4px;
13
+ padding-bottom: 8px;
14
+ padding-top: 8px;
62
15
  }
63
16
  }
64
17
 
65
- .downloads {
66
- margin-left: 4px;
67
- margin-right: 4px;
18
+ // Spacing for Tools links other than Bookmark
19
+ a {
20
+ padding: 8px 1rem 8px 0;
68
21
  }
69
22
  }
23
+
24
+ // Spacing between Tools icons and their labels
25
+ .blacklight-icons {
26
+ padding-right: 2px;
27
+ }
70
28
  }